httpd-cvs mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From fua...@apache.org
Subject svn commit: r1214957 - /httpd/httpd/branches/2.0.x/os/netware/util_nw.c
Date Thu, 15 Dec 2011 21:05:01 GMT
Author: fuankg
Date: Thu Dec 15 21:05:01 2011
New Revision: 1214957

URL: http://svn.apache.org/viewvc?rev=1214957&view=rev
Log:
Removed tabs, fixed C++ comments, added prototypes.

Modified:
    httpd/httpd/branches/2.0.x/os/netware/util_nw.c

Modified: httpd/httpd/branches/2.0.x/os/netware/util_nw.c
URL: http://svn.apache.org/viewvc/httpd/httpd/branches/2.0.x/os/netware/util_nw.c?rev=1214957&r1=1214956&r2=1214957&view=diff
==============================================================================
--- httpd/httpd/branches/2.0.x/os/netware/util_nw.c (original)
+++ httpd/httpd/branches/2.0.x/os/netware/util_nw.c Thu Dec 15 21:05:01 2011
@@ -16,9 +16,14 @@
 
 #include "httpd.h"
 #include "http_log.h"
+#include "ap_mpm.h"
 
-#include <netware.h>
-#include <nks\netware.h>
+#include <nks/netware.h>
+#include <nks/vm.h>
+
+void ap_down_server_cb(void *, void *);
+void ap_dummy_cb(void *, void *);
+void ap_cb_destroy(void *);
 
 int nlmUnloadSignaled(int wait);
 event_handle_t eh;
@@ -35,31 +40,31 @@ AP_DECLARE(apr_status_t) ap_os_create_pr
     return apr_proc_create(newproc, progname, args, env, attr, p);
 }
 
-int  _NonAppCheckUnload( void )
+int _NonAppCheckUnload(void)
 {
-	return nlmUnloadSignaled(1);
+    return nlmUnloadSignaled(1);
 }
 
-// down server event callback
-void ap_down_server_cb(void *, void *)
+/* down server event callback */
+void ap_down_server_cb(void *a, void *b)
 {
-	nlmUnloadSignaled(0);
+    nlmUnloadSignaled(0);
     return;
 }
 
-// Required place holder event callback
-void ap_dummy_cb(void *, void *)
+/* Required place holder event callback */
+void ap_dummy_cb(void *a, void *b)
 {
     return;
 }
 
-// destroy callback resources
-void ap_cb_destroy(void *)
+/* destroy callback resources */
+void ap_cb_destroy(void *a)
 {
-  // cleanup down event notification
-  UnRegisterEventNotification(eh);
-  NX_UNWRAP_INTERFACE(ref);
-  NX_UNWRAP_INTERFACE(dum);
+    /* cleanup down event notification */
+    UnRegisterEventNotification(eh);
+    NX_UNWRAP_INTERFACE(ref);
+    NX_UNWRAP_INTERFACE(dum);
 }
 
 int _NonAppStart
@@ -88,7 +93,7 @@ int _NonAppStart
 #pragma unused(messageCount)
 #pragma unused(messages)
 
-    // register for down server event
+    /* register for down server event */
     rtag_t rt = AllocateResourceTag(NLMHandle, "Apache2 Down Server Callback",
                                     EventSignature);
 
@@ -98,8 +103,9 @@ int _NonAppStart
                                       EVENT_PRIORITY_APPLICATION,
                                       ref, dum, NULL);
 
-    // clean-up
+    /* clean-up */
     NXVmRegisterExitHandler(ap_cb_destroy, NULL);
 
+    return 0;
 }
 



Mime
View raw message