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
This commit is contained in:
Ed Schouten 2010-06-28 09:07:31 +00:00
parent be762f4e34
commit d8ec3cf74c
Notes: svn2git 2021-03-31 03:12:20 +00:00
svn path=/head/; revision=257100
2 changed files with 20 additions and 1 deletions

View file

@ -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 \

View file

@ -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');