]> granicus.if.org Git - sudo/commitdiff
now set strioctl.ic_timout in STRSET()
authorTodd C. Miller <Todd.Miller@courtesan.com>
Mon, 19 Jun 1995 03:14:19 +0000 (03:14 +0000)
committerTodd C. Miller <Todd.Miller@courtesan.com>
Mon, 19 Jun 1995 03:14:19 +0000 (03:14 +0000)
now initialize num_interfaces to 0 (just to be anal)

interfaces.c

index 4991453124076b3986e2ed4ab6b6a5295bd7294f..ef9d3b5b7527b08e1e24b3a3a591b0dbee9b3b20 100644 (file)
@@ -64,9 +64,10 @@ static char rcsid[] = "$Id$";
 #include <sys/sioctl.h>
 #include <sys/stropts.h>
 #include <net/errno.h>
-#define STRSET(cmd, param, len) {strioctl.ic_cmd=(cmd);\
-                  strioctl.ic_dp=(param);\
-                    strioctl.ic_len=(len);}
+#define STRSET(cmd, param, len)        {strioctl.ic_cmd=(cmd);\
+                                strioctl.ic_dp=(param);\
+                                strioctl.ic_timout=0;\
+                                strioctl.ic_len=(len);}
 #endif /* _ISC */
 #ifdef _MIPS
 #include <net/soioctl.h>
@@ -88,7 +89,7 @@ extern char *malloc   __P((size_t));
  * Globals
  */
 struct interface *interfaces;
-int num_interfaces;
+int num_interfaces = 0;
 extern int Argc;
 extern char **Argv;