extras/physfshttpd.c
changeset 1016 957c97389257
parent 912 a68ff7aaf9a3
child 1018 23aee7da04e0
--- a/extras/physfshttpd.c	Mon Nov 16 12:26:28 2009 -0500
+++ b/extras/physfshttpd.c	Thu Jan 28 02:27:45 2010 -0500
@@ -144,7 +144,7 @@
     close(args->sock);
     free(args->addr);
     free(args);
-    return(NULL);
+    return NULL;
 } /* do_http */
 
 
@@ -202,7 +202,7 @@
         } /* if */
     } /* if */
 
-    return(retval);
+    return retval;
 } /* create_listen_socket */
 
 
@@ -244,13 +244,13 @@
     if (argc == 1)
     {
         printf("USAGE: %s <archive1> [archive2 [... archiveN]]\n", argv[0]);
-        return(42);
+        return 42;
     } /* if */
 
     if (!PHYSFS_init(argv[0]))
     {
         printf("PHYSFS_init() failed: %s\n", PHYSFS_getLastError());
-        return(42);
+        return 42;
     } /* if */
 
     /* normally, this is bad practice, but oh well. */
@@ -266,7 +266,7 @@
     if (listensocket < 0)
     {
         printf("listen socket failed to create.\n");
-        return(42);
+        return 42;
     } /* if */
 
     while (1)  /* infinite loop for now. */
@@ -278,13 +278,13 @@
         {
             printf("accept() failed: %s\n", strerror(errno));
             close(listensocket);
-            return(42);
+            return 42;
         } /* if */
 
         serve_http_request(s, &addr, len);
     } /* while */
 
-    return(0);
+    return 0;
 } /* main */
 
 /* end of physfshttpd.c ... */