Fix basic compiler warnings in ccimake.c
authorDavid Cantrell <dcantrell@redhat.com>
Wed, 22 Aug 2012 01:51:06 +0000 (21:51 -0400)
committerDavid Cantrell <dcantrell@redhat.com>
Wed, 22 Aug 2012 01:51:06 +0000 (21:51 -0400)
main() always returns an int.

cde/config/imake/ccimake.c

index db76b5894b442130320288b565ffbcf44820772e..b6604a56cdf66262fe8696582ef65eafc9e983cb 100644 (file)
@@ -57,10 +57,11 @@ in this Software without prior written authorization from The Open Group .
 #endif
 
 #include <stdlib.h>
+#include <unistd.h>
 
-main()
+int main(void)
 {
        write(1, imake_ccflags, sizeof(imake_ccflags) - 1);
-       exit(0);
+       return EXIT_SUCCESS;
 }