pkgsrc-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[pkgsrc/trunk]: pkgsrc Avoid c99'ism.



details:   https://anonhg.NetBSD.org/pkgsrc/rev/cc02e4254c63
branches:  trunk
changeset: 534386:cc02e4254c63
user:      taca <taca%pkgsrc.org@localhost>
date:      Fri Oct 19 03:48:47 2007 +0000

description:
Avoid c99'ism.

diffstat:

 net/tcpdump/distinfo         |   3 ++-
 net/tcpdump/patches/patch-af |  18 ++++++++++++++++++
 www/analog/patches/patch-ac  |  26 +++++++++++++++++---------
 3 files changed, 37 insertions(+), 10 deletions(-)

diffs (92 lines):

diff -r b80a193cee87 -r cc02e4254c63 net/tcpdump/distinfo
--- a/net/tcpdump/distinfo      Fri Oct 19 03:45:07 2007 +0000
+++ b/net/tcpdump/distinfo      Fri Oct 19 03:48:47 2007 +0000
@@ -1,5 +1,6 @@
-$NetBSD: distinfo,v 1.15 2007/08/02 15:16:51 taca Exp $
+$NetBSD: distinfo,v 1.16 2007/10/19 03:48:47 taca Exp $
 
 SHA1 (tcpdump-3.9.7.tar.gz) = 5d2a95f0de1cbae70ba01c64f9a2c0fac0183dba
 RMD160 (tcpdump-3.9.7.tar.gz) = 1c662f61c99121bfc8336eb059b60630cab03998
 Size (tcpdump-3.9.7.tar.gz) = 873866 bytes
+SHA1 (patch-af) = 5bf681fd99c2436875d7aafb8939fae231e906cf
diff -r b80a193cee87 -r cc02e4254c63 net/tcpdump/patches/patch-af
--- /dev/null   Thu Jan 01 00:00:00 1970 +0000
+++ b/net/tcpdump/patches/patch-af      Fri Oct 19 03:48:47 2007 +0000
@@ -0,0 +1,18 @@
+$NetBSD: patch-af,v 1.3 2007/10/19 03:48:47 taca Exp $
+
+--- print-rsvp.c.orig  Thu Jun 14 10:03:21 2007
++++ print-rsvp.c
+@@ -1574,11 +1574,12 @@ rsvp_obj_print (const u_char *tptr, cons
+ 
+         case RSVP_OBJ_LABEL_SET:
+             switch(rsvp_obj_ctype) {
++                u_int action, subchannel;
++
+             case RSVP_CTYPE_1: 
+                 if (obj_tlen < 4)
+                     return-1;
+ 
+-                u_int action, subchannel;
+                 action = (EXTRACT_16BITS(obj_tptr)>>8);
+ 
+                 printf("%s  Action: %s (%u), Label type: %u", ident,
diff -r b80a193cee87 -r cc02e4254c63 www/analog/patches/patch-ac
--- a/www/analog/patches/patch-ac       Fri Oct 19 03:45:07 2007 +0000
+++ b/www/analog/patches/patch-ac       Fri Oct 19 03:48:47 2007 +0000
@@ -1,7 +1,7 @@
-$NetBSD: patch-ac,v 1.5 2007/05/29 09:03:13 tron Exp $
+$NetBSD: patch-ac,v 1.6 2007/10/19 03:51:51 taca Exp $
 
---- alias.c.orig       2004-12-19 13:51:30.000000000 +0000
-+++ alias.c    2007-05-29 08:58:48.000000000 +0100
+--- alias.c.orig       Sun Dec 19 22:51:30 2004
++++ alias.c
 @@ -13,6 +13,10 @@
  
  #include "anlghea3.h"
@@ -13,7 +13,7 @@
  /* Throughout this file, to avoid a buffer overflow, we must be careful when we
     do any operation which can increase the length of the name. Such operations
     are thankfully rare, except for user aliases in wildalias().
-@@ -213,7 +217,12 @@
+@@ -213,7 +217,12 @@ logical do_aliasS(char *name) {
    /* DNS lookup */
  
  #ifndef NODNS
@@ -26,14 +26,22 @@
      do_dns(name, NULL, dnslevel);
      len = (int)strlen(name) - 1;
    }
-@@ -605,6 +614,37 @@
+@@ -586,6 +595,10 @@ logical dnsresolve(char *name, choice le
+   volatile logical done = FALSE;
+ #ifndef MAC
+   IN_ADDR_T addr;
++#ifdef IPV6
++    struct addrinfo hints, *res;
++    char host[NI_MAXHOST];
++#endif
+ #ifdef VMS
+   char *addrp;
+ #else
+@@ -605,6 +618,34 @@ logical dnsresolve(char *name, choice le
    done = IpAddr2Name(name);
    /* Doesn't currently include code to use SIGALRM */
  #else
 +#ifdef IPV6
-+    struct addrinfo hints, *res;
-+    char host[NI_MAXHOST];
-+
 +    memset(&hints, 0, sizeof(hints));
 +    hints.ai_flags = AI_NUMERICHOST;
 +    res = NULL;
@@ -64,7 +72,7 @@
    addr = inet_addr(name);
    if (addr != INET_ADDR_ERR) {
      addrp = (char *) &addr;
-@@ -631,6 +671,7 @@
+@@ -631,6 +672,7 @@ logical dnsresolve(char *name, choice le
      }
  #endif
    }



Home | Main Index | Thread Index | Old Index