Changeset 1049


Ignore:
Timestamp:
Sep 17, 2006, 2:58:12 PM (13 years ago)
Author:
Sam Hocevar
Message:
  • A few coding style fixes.
Location:
libcaca/trunk
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • libcaca/trunk/kernel/kernel.c

    r1048 r1049  
    177177int memcmp(const char *s1, const char *s2, size_t n)
    178178{
    179     while(n) {
    180         if(*s1 != *s2) return *s1-*s2;
     179    while(n--)
     180    {
     181        if(*s1 != *s2)
     182            return *s1 - *s2;
    181183        *s1++;
    182184        *s2++;
    183         n--;
    184     }
    185     return 0;
    186 }
    187 
     185    }
     186    return 0;
     187}
    188188
    189189/* stdarg.h functions */
  • libcaca/trunk/src/cacaview.c

    r1048 r1049  
    1616
    1717#if !defined(__KERNEL__)
    18 #include <stdio.h>
    19 #include <string.h>
    20 #include <stdlib.h>
     18#   include <stdio.h>
     19#   include <string.h>
     20#   include <stdlib.h>
    2121#endif
    2222
  • libcaca/trunk/src/img2irc.c

    r1048 r1049  
    1717#if !defined(__KERNEL__)
    1818#   include <stdio.h>
    19 #include <string.h>
    20 #include <stdlib.h>
    21 #   endif
     19#   include <string.h>
     20#   include <stdlib.h>
     21#endif
    2222
    2323#include "cucul.h"
Note: See TracChangeset for help on using the changeset viewer.