From d8ec3cf74ca7f2251cf69d8c76dd92ad5151e8cc Mon Sep 17 00:00:00 2001 From: Ed Schouten Date: Mon, 28 Jun 2010 09:07:31 +0000 Subject: Remove a piece of dead code from chipmunk. This seems to be the only piece of code in the entire ports tree which uses getpw(3) and it seems to be dead code anyway. Approved by: beat Feature safe: yes --- cad/chipmunk/Makefile | 2 +- cad/chipmunk/files/patch-netcmp-main.c | 19 +++++++++++++++++++ 2 files changed, 20 insertions(+), 1 deletion(-) create mode 100644 cad/chipmunk/files/patch-netcmp-main.c (limited to 'cad') diff --git a/cad/chipmunk/Makefile b/cad/chipmunk/Makefile index 7d14ce300ee2..8f298e5c647f 100644 --- a/cad/chipmunk/Makefile +++ b/cad/chipmunk/Makefile @@ -7,7 +7,7 @@ PORTNAME= chipmunk PORTVERSION= 5.64 -PORTREVISION= 2 +PORTREVISION= 3 CATEGORIES= cad MASTER_SITES= http://www.cs.berkeley.edu/~lazzaro/chipmunk/pickup/sources/ DISTFILES= psys-1.59.tar.gz log-5.64.tar.gz netcmp-1.13.tar.gz \ diff --git a/cad/chipmunk/files/patch-netcmp-main.c b/cad/chipmunk/files/patch-netcmp-main.c new file mode 100644 index 000000000000..cb7c66aa3875 --- /dev/null +++ b/cad/chipmunk/files/patch-netcmp-main.c @@ -0,0 +1,19 @@ +--- netcmp/main.c ++++ netcmp/main.c +@@ -122,16 +122,6 @@ + + outfyle = NULL; + while (outfyle == NULL) { +- char username[100]; +- char *tmp; +- +-#if defined(freebsd) +- getpwuid(getuid(), username); +-#else +- getpw(getuid(), username); +-#endif +- tmp = strchr(username,':'); +- if (tmp != NULL) *tmp = '\0'; + printf(" Enter output file name [info]: "); + fgets(command, 81, stdin); + TEMP = strchr(command, '\n'); -- cgit v1.2.3