A bit of reformatting. Initialize the uid and gid correctly.
authormdw <mdw>
Thu, 11 Nov 1999 00:59:08 +0000 (00:59 +0000)
committermdw <mdw>
Thu, 11 Nov 1999 00:59:08 +0000 (00:59 +0000)
noise.c

diff --git a/noise.c b/noise.c
index 094447c..1429626 100644 (file)
--- a/noise.c
+++ b/noise.c
@@ -1,6 +1,6 @@
 /* -*-c-*-
  *
 /* -*-c-*-
  *
- * $Id: noise.c,v 1.1 1999/09/03 08:41:12 mdw Exp $
+ * $Id: noise.c,v 1.2 1999/11/11 00:59:08 mdw Exp $
  *
  * Acquisition of environmental noise (Unix specific)
  *
  *
  * Acquisition of environmental noise (Unix specific)
  *
@@ -30,6 +30,9 @@
 /*----- Revision history --------------------------------------------------* 
  *
  * $Log: noise.c,v $
 /*----- Revision history --------------------------------------------------* 
  *
  * $Log: noise.c,v $
+ * Revision 1.2  1999/11/11 00:59:08  mdw
+ * A bit of reformatting.  Initialize the uid and gid correctly.
+ *
  * Revision 1.1  1999/09/03 08:41:12  mdw
  * Initial import.
  *
  * Revision 1.1  1999/09/03 08:41:12  mdw
  * Initial import.
  *
@@ -37,9 +40,7 @@
 
 /*----- Header files ------------------------------------------------------*/
 
 
 /*----- Header files ------------------------------------------------------*/
 
-#ifdef HAVE_CONFIG_H
-#  include "config.h"
-#endif
+#include "config.h"
 
 #include <stdio.h>
 #include <string.h>
 
 #include <stdio.h>
 #include <string.h>
@@ -81,8 +82,8 @@ static unsigned long noise_diff;      /* Last first order difference */
 
 /* --- Setuid program handling --- */
 
 
 /* --- Setuid program handling --- */
 
-static uid_t noise_uid;                        /* Uid to set to spawn processes */
-static gid_t noise_gid;                        /* Gid to set to spawn processes */
+static uid_t noise_uid = NOISE_NOSETUID; /* Uid to set to spawn processes */
+static gid_t noise_gid = NOISE_NOSETGID; /* Gid to set to spawn processes */
 
 /*----- Main code ---------------------------------------------------------*/
 
 
 /*----- Main code ---------------------------------------------------------*/