You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@httpd.apache.org by Ben Hyde <bh...@gensym.com> on 1997/11/25 19:09:58 UTC

[PATCH] win32 main ought to return a value

Last night's build noticed a new warning on intel NT.

  .\os\win32\main_win32.c(16) : warning C4035: 'main' : no return value

This patch (compiled, linked, but not run) resolves it.  - ben

> cvs diff -u src/os/win32/main_win32.c 
Index: src/os/win32/main_win32.c
===================================================================
RCS file: /cvs/apachen/src/os/win32/main_win32.c,v
retrieving revision 1.1
diff -u -r1.1 main_win32.c
--- main_win32.c	1997/11/25 04:07:12	1.1
+++ main_win32.c	1997/11/25 19:18:36
@@ -12,5 +12,5 @@
 
 int main(int argc, char *argv[]) 
 {
-    apache_main(argc, argv);
+    return apache_main(argc, argv);
 }

Re: [PATCH] win32 main ought to return a value

Posted by Alexei Kosut <ak...@leland.Stanford.EDU>.
On Tue, 25 Nov 1997, Ben Hyde wrote:

> Last night's build noticed a new warning on intel NT.
> 
>   .\os\win32\main_win32.c(16) : warning C4035: 'main' : no return value
> 
> This patch (compiled, linked, but not run) resolves it.  - ben

Oops... committed, thanks.

-- Alexei Kosut <ak...@stanford.edu> <http://www.stanford.edu/~akosut/>
   Stanford University, Class of 2001 * Apache <http://www.apache.org> *