freebsd-ports/cad/chipmunk/files/patch-netcmp-main.c
Ed Schouten d8ec3cf74c 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
2010-06-28 09:07:31 +00:00

19 lines
457 B
C

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