Change size passed to socket function to be a @size_t@. Insert missing
authormdw <mdw>
Sun, 8 Oct 2000 12:06:46 +0000 (12:06 +0000)
committermdw <mdw>
Sun, 8 Oct 2000 12:06:46 +0000 (12:06 +0000)
type name for flag declaration.

pixie.c

diff --git a/pixie.c b/pixie.c
index 441b732..300a2f7 100644 (file)
--- a/pixie.c
+++ b/pixie.c
@@ -1,6 +1,6 @@
 /* -*-c-*-
  *
- * $Id: pixie.c,v 1.5 2000/07/29 22:05:22 mdw Exp $
+ * $Id: pixie.c,v 1.6 2000/10/08 12:06:46 mdw Exp $
  *
  * Passphrase pixie for Catacomb
  *
 /*----- Revision history --------------------------------------------------* 
  *
  * $Log: pixie.c,v $
+ * Revision 1.6  2000/10/08 12:06:46  mdw
+ * Change size passed to socket function to be a @size_t@.  Insert missing
+ * type name for flag declaration.
+ *
  * Revision 1.5  2000/07/29 22:05:22  mdw
  * Miscellaneous tidyings:
  *
@@ -874,7 +878,7 @@ static void pixserv_accept(int fd, unsigned mode, void *p)
 {
   int nfd;
   struct sockaddr_un sun;
-  int sunsz = sizeof(sun);
+  size_t sunsz = sizeof(sun);
 
   if (mode != SEL_READ)
     return;
@@ -1061,7 +1065,7 @@ static void pix_setup(struct sockaddr_un *sun, size_t sz)
 /* --- Variables --- */
 
 static selbuf c_server, c_client;
-static c_flags = 0;
+static unsigned c_flags = 0;
 enum { cf_uclose = 1, cf_sclose = 2 };
 
 /* --- Line handler functions --- */