Fix signed comparison bug in lookup_subnet_ipv4().
[tinc] / src / conf.h
index d1fb609..9ce9764 100644 (file)
@@ -17,7 +17,7 @@
     along with this program; if not, write to the Free Software
     Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
 
-    $Id: conf.h,v 1.6.4.23 2001/02/27 16:37:24 guus Exp $
+    $Id: conf.h,v 1.6.4.25 2001/07/24 20:13:42 guus Exp $
 */
 
 #ifndef __TINC_CONF_H__
@@ -55,6 +55,7 @@ typedef enum which_t {
   config_restrictport,
   config_indirectdata,
   config_tcponly,
+  config_mode,
 } which_t;
 
 typedef struct config_t {
@@ -62,7 +63,7 @@ typedef struct config_t {
   which_t which;
   int argtype;
   union data {
-    unsigned long val;
+    long val;
     char *ptr;
     ip_mask_t *ip;
     struct config_t *next;     /* For nested configs! */