diff options
author | cbiere <cbiere@2592e710-e01b-42a5-8df0-11608a6cc53d> | 2011-01-18 04:35:08 +0000 |
---|---|---|
committer | cbiere <cbiere@2592e710-e01b-42a5-8df0-11608a6cc53d> | 2011-01-18 04:35:08 +0000 |
commit | 2982d579211a4d80bba3faa974d1eabb5a811705 (patch) | |
tree | 454ee164650b024d17726cb4be0dc12cb4f961f2 /mcon/U/i_time.U | |
parent | 4f7eb90be70e59bbee6123be2414f94fb9c5ca22 (diff) |
Fixed many units to make compiling with GCC flag -Werror possible.
Replaced exit() with return in main() due to missing #include <stdlib.h>.
Added "(void) variable;" to silence warning about unused variable.
Fixed Csym for GCC again (see FIXME tag).
Added FIXME regarding VAL_EAGAIN.
Added #define _GNU_SOURCE for pread() and pwrite() to get prototypes on GLIBC.
Removed blunt cc output redirections because you can't fix what you can't see.
git-svn-id: svn://svn.code.sf.net/p/dist/code/trunk/dist@79 2592e710-e01b-42a5-8df0-11608a6cc53d
Diffstat (limited to 'mcon/U/i_time.U')
-rw-r--r-- | mcon/U/i_time.U | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/mcon/U/i_time.U b/mcon/U/i_time.U index cdf1519..c573fa4 100644 --- a/mcon/U/i_time.U +++ b/mcon/U/i_time.U @@ -73,7 +73,7 @@ $cat >try.c <<'EOCP' #ifdef I_SYSSELECT #include <sys/select.h> #endif -int main() +int main(void) { struct tm foo; #ifdef S_TIMEVAL @@ -83,12 +83,12 @@ int main() struct timezone tzp; #endif if (foo.tm_sec == foo.tm_sec) - exit(0); + return 0; #ifdef S_TIMEVAL if (bar.tv_sec == bar.tv_sec) - exit(0); + return 0; #endif - exit(1); + return 1; } EOCP flags='' |