Forráskód Böngészése

* I didn't like my_atoul being IP casted

svn: 923
Bryan Drewery 22 éve
szülő
commit
8e9ac7a4ad
2 módosított fájl, 3 hozzáadás és 3 törlés
  1. 2 2
      src/net.c
  2. 1 1
      src/net.h

+ 2 - 2
src/net.c

@@ -64,9 +64,9 @@ static int	dcc_sanitycheck = 0;	/* We should do some sanity checking on dcc conn
 
 /* I need an UNSIGNED long for dcc type stuff
  */
-IP my_atoul(char *s)
+unsigned long my_atoul(char *s)
 {
-  IP ret = 0;
+  unsigned long ret = 0;
 
   while ((*s >= '0') && (*s <= '9')) {
     ret *= 10;

+ 1 - 1
src/net.h

@@ -120,7 +120,7 @@ typedef struct {
 
 # define killsock(x)     	real_killsock((x),__FILE__,__LINE__)
 
-IP my_atoul(char *);
+unsigned long my_atoul(char *);
 #ifdef HAVE_SSL
 int ssl_cleanup();
 #endif /* HAVE_SSL */