pkgsrc-Changes-HG archive

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

[pkgsrc/trunk]: pkgsrc/shells/scsh fix some low-hanging fruit



details:   https://anonhg.NetBSD.org/pkgsrc/rev/580e554e63a6
branches:  trunk
changeset: 596716:580e554e63a6
user:      dholland <dholland%pkgsrc.org@localhost>
date:      Tue Dec 13 07:11:13 2011 +0000

description:
fix some low-hanging fruit

diffstat:

 shells/scsh/distinfo                      |   5 +++-
 shells/scsh/patches/patch-c_unix_dynamo_c |  14 +++++++++++++
 shells/scsh/patches/patch-c_unix_socket_c |  23 +++++++++++++++++++++
 shells/scsh/patches/patch-scsh_network1_c |  33 +++++++++++++++++++++++++++++++
 4 files changed, 74 insertions(+), 1 deletions(-)

diffs (98 lines):

diff -r 5d80b1b89206 -r 580e554e63a6 shells/scsh/distinfo
--- a/shells/scsh/distinfo      Tue Dec 13 06:58:08 2011 +0000
+++ b/shells/scsh/distinfo      Tue Dec 13 07:11:13 2011 +0000
@@ -1,4 +1,4 @@
-$NetBSD: distinfo,v 1.14 2011/03/19 03:58:20 obache Exp $
+$NetBSD: distinfo,v 1.15 2011/12/13 07:11:13 dholland Exp $
 
 SHA1 (scsh-0.6.7.tar.gz) = a1eaf0d0593e14914824898a0c3ec166429affd7
 RMD160 (scsh-0.6.7.tar.gz) = f017c5a157cd1a3ad5daeaecba43ce84784c7e51
@@ -10,3 +10,6 @@
 SHA1 (patch-ae) = 3838934816cf23f1975d15f3dfd3ce8fae10ee40
 SHA1 (patch-af) = faddb025c3bada2d321b693217104dc986a8a90f
 SHA1 (patch-ag) = efd04134ee52795c1538a31ad6052da8fd8946ae
+SHA1 (patch-c_unix_dynamo_c) = eef2ef3319c74b2a1e858ea3a4bcc41ad2af882a
+SHA1 (patch-c_unix_socket_c) = d493a22df14f6f171076eb4756aa344eb4c258f9
+SHA1 (patch-scsh_network1_c) = 26283f75b7303ec42ed50c15019c0c2ad08e8ece
diff -r 5d80b1b89206 -r 580e554e63a6 shells/scsh/patches/patch-c_unix_dynamo_c
--- /dev/null   Thu Jan 01 00:00:00 1970 +0000
+++ b/shells/scsh/patches/patch-c_unix_dynamo_c Tue Dec 13 07:11:13 2011 +0000
@@ -0,0 +1,14 @@
+$NetBSD: patch-c_unix_dynamo_c,v 1.1 2011/12/13 07:11:13 dholland Exp $
+
+Use standard headers.
+
+--- c/unix/dynamo.c~   2001-01-22 12:48:00.000000000 +0000
++++ c/unix/dynamo.c
+@@ -4,6 +4,7 @@
+  */
+ 
+ #include <stdlib.h>
++#include <string.h>
+ #include <unistd.h>
+ #include "sysdep.h"
+ #include "scheme48.h"
diff -r 5d80b1b89206 -r 580e554e63a6 shells/scsh/patches/patch-c_unix_socket_c
--- /dev/null   Thu Jan 01 00:00:00 1970 +0000
+++ b/shells/scsh/patches/patch-c_unix_socket_c Tue Dec 13 07:11:13 2011 +0000
@@ -0,0 +1,23 @@
+$NetBSD: patch-c_unix_socket_c,v 1.1 2011/12/13 07:11:13 dholland Exp $
+
+Use standard headers.
+
+--- c/unix/socket.c~   2003-06-25 08:19:34.000000000 +0000
++++ c/unix/socket.c
+@@ -12,6 +12,7 @@
+ #include <fcntl.h>
+ #include <netdb.h>
+ #include <unistd.h>
++#include <stdlib.h>
+ #include <string.h>
+ #include <netinet/in.h>
+ 
+@@ -390,7 +391,7 @@ s48_get_host_name(void)
+     char      *tmp;
+ 
+     mbuff_len += 256; /* Initial guess */
+-    tmp = (char *) realloc(mbuff, mbuff_len);
++    tmp = realloc(mbuff, mbuff_len);
+ 
+     if (tmp == NULL) {
+       free(mbuff);
diff -r 5d80b1b89206 -r 580e554e63a6 shells/scsh/patches/patch-scsh_network1_c
--- /dev/null   Thu Jan 01 00:00:00 1970 +0000
+++ b/shells/scsh/patches/patch-scsh_network1_c Tue Dec 13 07:11:13 2011 +0000
@@ -0,0 +1,33 @@
+$NetBSD: patch-scsh_network1_c,v 1.1 2011/12/13 07:11:13 dholland Exp $
+
+Use socklen_t appropriately.
+
+--- scsh/network1.c~   2006-03-02 21:46:15.000000000 +0000
++++ scsh/network1.c
+@@ -409,7 +409,7 @@ s48_value scheme_getsockopt (s48_value s
+                            s48_value optname)
+ {
+   int optval;
+-  size_t optlen=sizeof(optval);
++  socklen_t optlen=sizeof(optval);
+   
+   if (getsockopt(s48_extract_fixnum (s),
+                s48_extract_fixnum (level),
+@@ -426,7 +426,7 @@ s48_value scheme_getsockopt_linger (s48_
+                                   s48_value optname)
+ {
+   struct linger optval;
+-  size_t optlen=sizeof(optval);
++  socklen_t optlen=sizeof(optval);
+   
+   if (getsockopt(s48_extract_fixnum (s),
+                s48_extract_fixnum (level),
+@@ -444,7 +444,7 @@ s48_value scheme_getsockopt_timeout (s48
+                                    s48_value optname)
+ {
+   struct timeval optval;
+-  size_t optlen=sizeof(optval);
++  socklen_t optlen=sizeof(optval);
+   
+   if (getsockopt(s48_extract_fixnum (s),
+                s48_extract_fixnum (level),



Home | Main Index | Thread Index | Old Index