Update of /cvsroot/fink/experimental/thesin/finkinfo/test
In directory sc8-pr-cvs1:/tmp/cvs-serv1062

Modified Files:
        noip-2.0.7-1.patch 
Log Message:
Cleaner build, but still no progress

Index: noip-2.0.7-1.patch
===================================================================
RCS file: /cvsroot/fink/experimental/thesin/finkinfo/test/noip-2.0.7-1.patch,v
retrieving revision 1.4
retrieving revision 1.5
diff -u -r1.4 -r1.5
--- noip-2.0.7-1.patch  3 Mar 2003 22:41:07 -0000       1.4
+++ noip-2.0.7-1.patch  3 Mar 2003 23:36:41 -0000       1.5
@@ -24,8 +24,16 @@
 -      rm -f ${TGT}
 diff -ruN noip-2.0.7.orig/noip2.c noip-2.0.7/noip2.c
 --- noip-2.0.7.orig/noip2.c    Thu Feb 27 10:49:40 2003
-+++ noip-2.0.7/noip2.c Mon Mar  3 15:35:57 2003
-@@ -95,11 +95,11 @@
++++ noip-2.0.7/noip2.c Mon Mar  3 16:35:44 2003
+@@ -85,6 +85,7 @@
+ #include <netdb.h>
+ #include <arpa/inet.h>
+ #include <net/if.h>
++#include <net/if_arp.h>
+ #include <sys/ipc.h>
+ #include <sys/shm.h>
+ 
+@@ -95,15 +96,16 @@
   #endif
  #endif
  
@@ -40,7 +48,12 @@
  
  #define ENCRYPT                       1
  
-@@ -116,7 +116,7 @@
+ #define MAX(x,y)              (((x)>(y))?(x):(y))
++#define MAX_IF                        8
+ 
+ #define READ_TIMEOUT          90
+ #define WRITE_TIMEOUT         60
+@@ -116,7 +118,7 @@
  
  #define VERSION                       "2.0.7"
  #define NOIP_NAME             "dynupdate.no-ip.com"
@@ -49,7 +62,7 @@
  #define SETTING_SCRIPT                "settings.php?"
  #define USTRNG                        "username="
  #define PWDSTRNG              "&pass="
-@@ -143,11 +143,13 @@
+@@ -143,11 +145,13 @@
  #define ARGK                  128
  #define ARGi                  256
  
@@ -65,7 +78,7 @@
  #endif
  #define CONFIG_FILEPATH               PREFIX"/etc"
  #define CONFIG_FILENAME               PREFIX"/etc/no-ip2.conf"
-@@ -220,7 +222,7 @@
+@@ -220,7 +224,7 @@
  #define CMSG21        "Please select the Internet interface from this list.\n"
  #define CMSG22        "By typing the number associated with it."
  #define CMSG23        "Too many network devices.  Limit is %d"
@@ -74,7 +87,7 @@
  #define CMSG25        "Can't create config file (%s)"
  #define CMSG25a       "Re-run noip, adding '-c configfilename' as a parameter."
  #define CMSG26        "Can't rename config file (%s)"
-@@ -410,7 +412,7 @@
+@@ -410,7 +414,7 @@
          fprintf(stderr, "[ -d][ -D pid]");
  #endif                                                                          
        fprintf(stderr, "[ -i addr][ -S][ -M][ -h]");
@@ -83,8 +96,20 @@
        fprintf(stderr, "Options: -C               create configuration data\n");
        fprintf(stderr, "         -F               force NAT off\n");
        fprintf(stderr, "         -Y               select all hosts/groups\n");
-@@ -1803,7 +1805,7 @@
- 
+@@ -1570,7 +1574,7 @@
+       assert(g != NULL);
+       gn = NULL;
+         if (!*gnm) 
+-            gnm = NOGROUP;
++            gnm = (char *) NOGROUP;
+         while (g) {
+             if (strcmp(g->grp, gnm) == 0)       // group name match?
+                 break;
+@@ -1800,10 +1804,9 @@
+ /////////////////////////////////////////////////////////////////////////////
+ int get_all_device_names(unsigned char *devs)
+ {
+-
        int             fd, i, devnum=0;
        int             num_ifreq;
 -      unsigned char   *p, *q, *dq;
@@ -92,12 +117,7 @@
        struct ifreq    *pIfr;
        struct ifconf   Ifc;
        static struct ifreq        IfcBuf[MAX_NET_DEVS];
-@@ -1819,15 +1821,30 @@
-           perror("ioctl SIOCGIFCONF");
-           exit(1);
-       }
--      num_ifreq = Ifc.ifc_len / sizeof(struct ifreq);
-+      num_ifreq = 32; //Ifc.ifc_len / sizeof(struct ifreq);
+@@ -1823,11 +1826,26 @@
        dq = devs;     // add new name into list
        for (pIfr=Ifc.ifc_req,i=0; i<num_ifreq; pIfr++,i++) {
            q = dq;     // add new name into list
@@ -127,12 +147,21 @@
            devnum++;
            while (*p) 
                *q++ = *p++;
-@@ -1838,6 +1855,8 @@
+@@ -1838,6 +1856,8 @@
            }
            dq += LINELEN; 
        }
 +        /*** return only kept values ***/
-+        devs = p;
++        //devs = p;
        return devnum;
  }
  /////////////////////////////////////////////////////////////////////////////
+@@ -1946,7 +1966,7 @@
+         close(socket_fd);
+ 
+         groups = (struct GROUPS *)Malloc(sizeof(struct GROUPS));
+-        groups->grp = NOGROUP;
++        groups->grp = (char *) NOGROUP;
+       groups->count = 0;
+       groups->ncount = 0;
+         groups->glink = NULL;



-------------------------------------------------------
This SF.net email is sponsored by: Etnus, makers of TotalView, The debugger 
for complex code. Debugging C/C++ programs can leave you feeling lost and 
disoriented. TotalView can help you find your way. Available on major UNIX 
and Linux platforms. Try it free. www.etnus.com
_______________________________________________
Fink-commits mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/fink-commits

Reply via email to