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

Modified Files:
        noip-2.0.7-1.patch 
Log Message:
Still no closer *sigh*

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.3
retrieving revision 1.4
diff -u -r1.3 -r1.4
--- noip-2.0.7-1.patch  3 Mar 2003 21:33:44 -0000       1.3
+++ noip-2.0.7-1.patch  3 Mar 2003 22:41:07 -0000       1.4
@@ -24,7 +24,7 @@
 -      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 14:31:52 2003
++++ noip-2.0.7/noip2.c Mon Mar  3 15:35:57 2003
 @@ -95,11 +95,11 @@
   #endif
  #endif
@@ -36,7 +36,7 @@
 +#endif // sun & Darwin
  
 -#define DEBUG
-+#define DEBUG                 1
++#define DEBUG                 
  
  #define ENCRYPT                       1
  
@@ -92,7 +92,12 @@
        struct ifreq    *pIfr;
        struct ifconf   Ifc;
        static struct ifreq        IfcBuf[MAX_NET_DEVS];
-@@ -1823,11 +1825,26 @@
+@@ -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);
        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
@@ -101,7 +106,7 @@
 +          tmpp = pIfr->ifr_name;
 +
 +            /*** strip devices with no name ***/
-+            if (strlen(tmpp) <= 2) {
++            if (strlen(tmpp) <= 2 || tmpp == NULL) {
 +                continue;
 +            }
 +            /*** strip localloop device ***/
@@ -127,7 +132,7 @@
            dq += LINELEN; 
        }
 +        /*** return only kept values ***/
-+        //devs = p;
++        devs = p;
        return devnum;
  }
  /////////////////////////////////////////////////////////////////////////////



-------------------------------------------------------
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