X-Git-Url: http://mj.ucw.cz/gitweb/?a=blobdiff_plain;f=lib%2Fsemaphore.h;h=fa2e0ee473d58318e59bc3683d22eb33d94a8895;hb=ba9c448bb5446d0100173e7a594bcb1d849b4e39;hp=d33280bda725f60507309c2ffd87d416f2f75b44;hpb=e380eaaa0cd05e90d84407af58123762ab25e120;p=libucw.git diff --git a/lib/semaphore.h b/lib/semaphore.h index d33280bd..fa2e0ee4 100644 --- a/lib/semaphore.h +++ b/lib/semaphore.h @@ -24,7 +24,7 @@ static inline sem_t * sem_alloc(void) { static uns cnt = 0; - byte buf[20]; + char buf[20]; sprintf(buf, "tmp/sem-%d-%d", getpid(), cnt++); sem_t *sem = sem_open(buf, O_CREAT, 0777, 0); ASSERT(sem != (sem_t*) SEM_FAILED);