X-Git-Url: http://mj.ucw.cz/gitweb/?a=blobdiff_plain;ds=sidebyside;f=lib%2Fsemaphore.h;h=fa2e0ee473d58318e59bc3683d22eb33d94a8895;hb=ed4e86de76d1c3bfb685207fe00078950f67355a;hp=d33280bda725f60507309c2ffd87d416f2f75b44;hpb=18fcca1138ad1b480854cb1e64fa10a84660dcba;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);