Browse Source

* A few coding style fixes.

tags/v0.99.beta14
Sam Hocevar sam 18 years ago
parent
commit
c58db87df1
3 changed files with 10 additions and 10 deletions
  1. +4
    -4
      kernel/kernel.c
  2. +3
    -3
      src/cacaview.c
  3. +3
    -3
      src/img2irc.c

+ 4
- 4
kernel/kernel.c View File

@@ -176,16 +176,16 @@ int strcasecmp(const char *s1, const char *s2)

int memcmp(const char *s1, const char *s2, size_t n)
{
while(n) {
if(*s1 != *s2) return *s1-*s2;
while(n--)
{
if(*s1 != *s2)
return *s1 - *s2;
*s1++;
*s2++;
n--;
}
return 0;
}


/* stdarg.h functions */
int vsnprintf(char *str, size_t size, const char *format, va_list ap)
{


+ 3
- 3
src/cacaview.c View File

@@ -15,9 +15,9 @@
#include "common.h"

#if !defined(__KERNEL__)
#include <stdio.h>
#include <string.h>
#include <stdlib.h>
# include <stdio.h>
# include <string.h>
# include <stdlib.h>
#endif

#if defined(HAVE_SLEEP)


+ 3
- 3
src/img2irc.c View File

@@ -16,9 +16,9 @@

#if !defined(__KERNEL__)
# include <stdio.h>
#include <string.h>
#include <stdlib.h>
# endif
# include <string.h>
# include <stdlib.h>
#endif

#include "cucul.h"
#include "common-image.h"


Loading…
Cancel
Save