include, kernel: minor fixes to make compiling and linking work with clang.

(fixing warnings)
This commit is contained in:
Ben Gras
2010-07-06 11:59:19 +00:00
parent dc47875fc7
commit f6f814cb02
12 changed files with 21 additions and 19 deletions

View File

@@ -44,7 +44,7 @@ _PROTOTYPE( int fkey_ctl, (int req, int *fkeys, int *sfkeys) );
_PROTOTYPE( int printf, (const char *fmt, ...));
_PROTOTYPE( void kputc, (int c));
_PROTOTYPE( void panic, (const char *fmt, ...));
_PROTOTYPE( __dead void panic, (const char *fmt, ...));
_PROTOTYPE( int getuptime, (clock_t *ticks));
_PROTOTYPE( int getuptime2, (clock_t *ticks, time_t *boottime));
_PROTOTYPE( int tickdelay, (clock_t ticks));

View File

@@ -66,8 +66,10 @@ _PROTOTYPE( struct tm *localtime_r, (const time_t *const timep,
struct tm *tmp) );
_PROTOTYPE( size_t strftime, (char *_s, size_t _max, const char *_fmt,
const struct tm *_timep) );
_PROTOTYPE(char *strptime, (const char *buf, const char *format,
_PROTOTYPE( char *strptime, (const char *buf, const char *format,
struct tm *timeptr) );
_PROTOTYPE( time_t timegm, (struct tm * const tmp) );
#ifdef _POSIX_SOURCE
_PROTOTYPE( void tzset, (void) );