Changeset 4885 for zzuf


Ignore:
Timestamp:
Nov 5, 2014, 1:23:12 AM (5 years ago)
Author:
Sam Hocevar
Message:

build: fix a few compilation warnings.

Location:
zzuf/trunk/src
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • zzuf/trunk/src/common/fd.c

    r4884 r4885  
    7373static volatile int fd_spinlock = 0;
    7474
    75 static void fd_lock()
     75static void fd_lock(void)
    7676{
    7777    while (__sync_lock_test_and_set(&fd_spinlock, 1))
     
    7979}
    8080
    81 static void fd_unlock()
     81static void fd_unlock(void)
    8282{
    8383    __sync_synchronize();
  • zzuf/trunk/src/libzzuf/debug.c

    r4827 r4885  
    4848        if (i <= 0) \
    4949            append((i = 1 + ~i) ? "-" : "0", 1); /* XXX: hack here */ \
    50         if (i < 0) \
     50        if (i + 1 <= 0) \
    5151        { \
    5252            i = 1 + ~(i + base); /* XXX: special case for INT_MIN */ \
Note: See TracChangeset for help on using the changeset viewer.