]> andersk Git - moira.git/commitdiff
Fixes for lint.
authorwesommer <wesommer>
Wed, 3 Jun 1987 16:07:17 +0000 (16:07 +0000)
committerwesommer <wesommer>
Wed, 3 Jun 1987 16:07:17 +0000 (16:07 +0000)
server/mr_main.c
server/mr_scall.c
server/mr_server.h
server/mr_util.c

index 06ba80889881e3fbdb05bc124d27c1c2c8576417..19cc64a529991bba5a031b93d76c328f27415296 100644 (file)
  *     Let the reader beware.
  * 
  *     $Log$
- *     Revision 1.4  1987-06-02 20:05:11  wesommer
- *     Bug fixes on memory allocation.
+ *     Revision 1.5  1987-06-03 16:07:17  wesommer
+ *     Fixes for lint.
  *
+ * Revision 1.4  87/06/02  20:05:11  wesommer
+ * Bug fixes on memory allocation.
+ * 
  * Revision 1.3  87/06/01  04:34:27  wesommer
  * Changed returned error code.
  * 
@@ -95,7 +98,10 @@ main(argc, argv)
        /*
         * GDB initialization.
         */
-       gdb_init();
+       if(gdb_init() != 0) {
+               com_err(whoami, 0, "GDB initialization failed.");
+               exit(1);
+       }
 
        /*
         * Set up client array handler.
@@ -136,7 +142,21 @@ main(argc, argv)
                /*
                 * Block until something happens.
                 */
-               op_select_any(op_list, 0, NULL, NULL, NULL, NULL);
+#ifdef notdef
+               com_err(whoami, 0, "tick");
+#endif notdef
+               errno = 0;
+               status = op_select_any(op_list, 0,
+                                      (fd_set *)NULL, (fd_set *)NULL,
+                                      (fd_set *)NULL, (struct timeval *)NULL);
+
+               if (status == -1) {
+                       com_err(whoami, errno, "error from op_select");
+                       continue;
+               } else if (status != -2) {
+                       com_err(whoami, 0, "wrong return from op_select_any");
+                       continue;
+               }
                if (takedown) break;
 #ifdef notdef
                fprintf(stderr, "    tick\n");
@@ -156,7 +176,7 @@ main(argc, argv)
                 * Handle any new connections.
                 */
                if (OP_DONE(listenop)) {
-                       if ((status = new_connection(listenop)) != 0) {
+                       if ((status = new_connection()) != 0) {
                                com_err(whoami, errno,
                                        "Error on listening operation.");
                                /*
@@ -198,8 +218,7 @@ do_listen()
  * It sets up a new client and adds it to the list of currently active clients.
  */
 int
-new_connection(listenop)
-       OPERATION listenop;
+new_connection()
 {
        register client *cp = (client *)malloc(sizeof *cp);
        static counter = 0;
index 8f6c5c5a85e4ae6a91168edad0bdcd68fc8e6e72..6dab6beebae5933fca37621877cdc187b256fa6f 100644 (file)
@@ -6,9 +6,12 @@
  *     Copyright (C) 1987 by the Massachusetts Institute of Technology
  *
  *     $Log$
- *     Revision 1.1  1987-06-02 20:07:10  wesommer
- *     Initial revision
+ *     Revision 1.2  1987-06-03 16:07:50  wesommer
+ *     Fixes for lint.
  *
+ * Revision 1.1  87/06/02  20:07:10  wesommer
+ * Initial revision
+ * 
  */
 
 #ifndef lint
@@ -45,7 +48,7 @@ do_client(cp)
        case CL_SEND:
                /* Start recieving next request */
                initialize_operation(cp->pending_op, sms_start_recv,
-                                    (char *)&cp->args, NULL);
+                                    (char *)&cp->args, (int (*)())NULL);
                queue_operation(cp->con, CON_INPUT, cp->pending_op);
                cp->action = CL_RECEIVE;
                break;
@@ -53,7 +56,7 @@ do_client(cp)
                /* Data is here. Process it & start it heading back */
                do_call(cp); /* This may block for a while. */
                initialize_operation(cp->pending_op, sms_start_send,
-                                    (char *)&cp->reply, NULL);
+                                    (char *)&cp->reply, (int (*)())NULL);
                queue_operation(cp->con, CON_OUTPUT, cp->pending_op);
                cp->action = CL_SEND;
                break;
index 665c851e7f81b267e613299fad4e3c31e14df266..e3003a11d6742de14007b6f1e33b45e05df3bb83 100644 (file)
@@ -6,11 +6,20 @@
  *     Copyright (C) 1987 by the Massachusetts Institute of Technology
  *
  *     $Log$
- *     Revision 1.2  1987-06-01 03:35:10  wesommer
- *     added stuff for authentication.
+ *     Revision 1.3  1987-06-03 16:07:59  wesommer
+ *     Fixes for lint.
  *
+ * Revision 1.2  87/06/01  03:35:10  wesommer
+ * added stuff for authentication.
+ * 
  */
 
+#include <sys/types.h>
+#include <sys/uio.h>
+#include <sys/socket.h>
+#include <netinet/in.h>
+
+
 typedef struct _client {
        OPERATION pending_op;
        CONNECTION con;
index 261922eac2b13d7d060b3542fb78b1cf756b977c..c1bae1fd01d52e71f0e6423a9cca9ac9a4aeb09e 100644 (file)
@@ -6,9 +6,12 @@
  *     Copyright (C) 1987 by the Massachusetts Institute of Technology
  *
  *     $Log$
- *     Revision 1.1  1987-06-02 20:07:32  wesommer
- *     Initial revision
+ *     Revision 1.2  1987-06-03 16:08:07  wesommer
+ *     Fixes for lint.
  *
+ * Revision 1.1  87/06/02  20:07:32  wesommer
+ * Initial revision
+ * 
  */
 
 #ifndef lint
@@ -17,7 +20,6 @@ static char *rcsid_sms_util_c = "$Header$";
 
 #include "sms_private.h"
 #include "sms_server.h"
-#include <sys/uio.h>
 
 #include <ctype.h>
 #ifdef notdef
This page took 0.05714 seconds and 5 git commands to generate.