mirror of
https://git.freebsd.org/ports.git
synced 2025-06-04 04:16:27 -04:00
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:
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
|
@ -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 \
|
||||
|
|
19
cad/chipmunk/files/patch-netcmp-main.c
Normal file
19
cad/chipmunk/files/patch-netcmp-main.c
Normal 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');
|
Loading…
Add table
Reference in a new issue