summaryrefslogtreecommitdiff
path: root/games/sex/patches
diff options
context:
space:
mode:
authordholland <dholland>2011-06-12 04:47:26 +0000
committerdholland <dholland>2011-06-12 04:47:26 +0000
commit7947c1c69f331776e99643bfd2d22f4ffda36277 (patch)
tree1bdf6cf0da1b348574019d67617db4cbfc49797d /games/sex/patches
parentb82d98e3a3f3aa76e24b5c37f452912516d4fc87 (diff)
downloadpkgsrc-7947c1c69f331776e99643bfd2d22f4ffda36277.tar.gz
Fix build problem on Minix and a couple other minor C issues I noticed
while passing by. Closes PR 45048 from Thomas Cort.
Diffstat (limited to 'games/sex/patches')
-rw-r--r--games/sex/patches/patch-ab36
1 files changed, 32 insertions, 4 deletions
diff --git a/games/sex/patches/patch-ab b/games/sex/patches/patch-ab
index 37d6b6ec34f..4653651d894 100644
--- a/games/sex/patches/patch-ab
+++ b/games/sex/patches/patch-ab
@@ -1,8 +1,27 @@
-$NetBSD: patch-ab,v 1.1.1.1 2008/10/26 09:51:52 bjs Exp $
+$NetBSD: patch-ab,v 1.2 2011/06/12 04:47:26 dholland Exp $
---- sex.c.orig 2001-04-28 18:21:29.000000000 +0100
-+++ sex.c 2008-10-23 11:00:07.000000000 +0100
-@@ -252,7 +252,7 @@
+- use correct C constructs
+
+--- sex.c.orig 2001-04-28 17:21:29.000000000 +0000
++++ sex.c
+@@ -10,6 +10,7 @@
+
+ #include <stdio.h>
+ #include <stdlib.h>
++#include <string.h>
+ #include <time.h>
+ #include <ctype.h>
+
+@@ -240,7 +241,7 @@ TABLE list[] = {
+ {his, SZ(his)}, {dongadj, SZ(dongadj)},
+ {dong, SZ(dong)}, {intoher, SZ(intoher)},
+ {twatadj, SZ(twatadj)}, {twat, SZ(twat)},
+- {(char **)NULL, (short)NULL},
++ {NULL, 0},
+ };
+
+ #define LLINE 50
+@@ -252,7 +253,7 @@ int main(int argc, char **argv)
register TABLE *ttp;
register char *cp;
int getpid();
@@ -11,3 +30,12 @@ $NetBSD: patch-ab,v 1.1.1.1 2008/10/26 09:51:52 bjs Exp $
char buffer[2048];
int pos, lastword;
+@@ -279,7 +280,7 @@ int main(int argc, char **argv)
+ buffer[lastword] = '\n';
+ lwidth = pos - lastword;
+ }
+- if (isspace(*cp)) {
++ if (isspace((unsigned char)*cp)) {
+ lastword = pos;
+ }
+ pos++;