summaryrefslogtreecommitdiff
path: root/comms
diff options
context:
space:
mode:
authorjoerg <joerg@pkgsrc.org>2005-12-19 14:34:33 +0000
committerjoerg <joerg@pkgsrc.org>2005-12-19 14:34:33 +0000
commitdcdf52ff2768977bfb3415f86645ff0377415edc (patch)
tree3a28ba3b3443e8c30f610975553d53892337cbb7 /comms
parente1afbd09ba222b5cd6ce741a9474d1cbbc6f8f68 (diff)
downloadpkgsrc-dcdf52ff2768977bfb3415f86645ff0377415edc.tar.gz
Remove redundant errno. Prefer NAME_MAX over MAXNAMLEN.
Diffstat (limited to 'comms')
-rw-r--r--comms/minicom/distinfo5
-rw-r--r--comms/minicom/patches/patch-af12
-rw-r--r--comms/minicom/patches/patch-ag19
-rw-r--r--comms/minicom/patches/patch-ah19
4 files changed, 54 insertions, 1 deletions
diff --git a/comms/minicom/distinfo b/comms/minicom/distinfo
index bd3c80b13ff..69f72a2b1ed 100644
--- a/comms/minicom/distinfo
+++ b/comms/minicom/distinfo
@@ -1,4 +1,4 @@
-$NetBSD: distinfo,v 1.6 2005/07/11 17:29:16 veego Exp $
+$NetBSD: distinfo,v 1.7 2005/12/19 14:34:33 joerg Exp $
SHA1 (minicom-2.1.tar.gz) = 720273f6ee8db5fb2da4379ac610a520a31aba70
RMD160 (minicom-2.1.tar.gz) = 58121cf29991a92914acee855d6e86486c6d370d
@@ -8,3 +8,6 @@ SHA1 (patch-ab) = 4cfb8bc389f4052c08551651aa86f98d0e751028
SHA1 (patch-ac) = 91a2acce80d7d1815a29843b1de5e1acc172024a
SHA1 (patch-ad) = 5e866091f58585a16da93fdf9d8bec417c0adc19
SHA1 (patch-ae) = b037623c4e3ee4cbc8c73c4b04c6b7f77c689d38
+SHA1 (patch-af) = 38905432b60a796742d43be1aed84ee2774bb222
+SHA1 (patch-ag) = c8947fb6693d2508d7caa79916142af346e27cdd
+SHA1 (patch-ah) = da65045ad1d02a7c005aba863a106472d05f5c1c
diff --git a/comms/minicom/patches/patch-af b/comms/minicom/patches/patch-af
new file mode 100644
index 00000000000..38607c18ffc
--- /dev/null
+++ b/comms/minicom/patches/patch-af
@@ -0,0 +1,12 @@
+$NetBSD: patch-af,v 1.4 2005/12/19 14:34:33 joerg Exp $
+
+--- src/wkeys.c.orig 2005-12-19 14:23:08.000000000 +0000
++++ src/wkeys.c
+@@ -48,7 +48,6 @@ extern char *_tptr;
+
+ static char erasechar;
+ static int gotalrm;
+-extern int errno;
+ int pendingkeys = 0;
+ int io_pending = 0;
+
diff --git a/comms/minicom/patches/patch-ag b/comms/minicom/patches/patch-ag
new file mode 100644
index 00000000000..df43da4e2c9
--- /dev/null
+++ b/comms/minicom/patches/patch-ag
@@ -0,0 +1,19 @@
+$NetBSD: patch-ag,v 1.3 2005/12/19 14:34:33 joerg Exp $
+
+--- src/getsdir.c.orig 2005-12-19 14:23:45.000000000 +0000
++++ src/getsdir.c
+@@ -207,9 +207,14 @@ int *len;
+ int l;
+
+ /* copy the filename */
++#ifdef NAME_MAX
++ strncpy(datb_cur->data[datb_cur->cnt].fname,
++ dp->d_name, NAME_MAX);
++#else
+ strncpy(datb_cur->data[datb_cur->cnt].fname,
+ dp->d_name,
+ MAXNAMLEN);
++#endif
+
+ /* get information about the directory entry */
+ snprintf(fpath, sizeof(fpath), "%s/%s", dirpath, dp->d_name);
diff --git a/comms/minicom/patches/patch-ah b/comms/minicom/patches/patch-ah
new file mode 100644
index 00000000000..8dffb1f69a4
--- /dev/null
+++ b/comms/minicom/patches/patch-ah
@@ -0,0 +1,19 @@
+$NetBSD: patch-ah,v 1.1 2005/12/19 14:34:33 joerg Exp $
+
+--- src/getsdir.h.orig 2005-12-19 14:24:44.000000000 +0000
++++ src/getsdir.h
+@@ -19,9 +19,14 @@
+ */
+
+ #include <dirent.h>
++#include <limits.h>
+
+ typedef struct dirEntry { /* structure of data item */
++#ifdef NAME_MAX
++ char fname[NAME_MAX + 1];
++#else
+ char fname[MAXNAMLEN + 1]; /* filename + terminating null */
++#endif
+ time_t time; /* last modification date */
+ mode_t mode; /* file mode (dir? etc.) */
+ ushort cflags; /* caller field for convenience */