include, kernel: minor fixes to make compiling and linking work with clang.
(fixing warnings)
This commit is contained in:
@@ -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));
|
||||
|
||||
@@ -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) );
|
||||
|
||||
Reference in New Issue
Block a user