diff options
author | ed <ed@FreeBSD.org> | 2010-06-28 17:07:31 +0800 |
---|---|---|
committer | ed <ed@FreeBSD.org> | 2010-06-28 17:07:31 +0800 |
commit | f6574bd9a47108785601fff9a97b5d8ac90799f3 (patch) | |
tree | 0eb39f4312ba51b896108e16b0dfdadc4abbc0f4 /cad/chipmunk/files | |
parent | 4683b72009504fdceb42b1929346a84acaaa4254 (diff) | |
download | freebsd-ports-gnome-f6574bd9a47108785601fff9a97b5d8ac90799f3.tar.gz freebsd-ports-gnome-f6574bd9a47108785601fff9a97b5d8ac90799f3.tar.zst freebsd-ports-gnome-f6574bd9a47108785601fff9a97b5d8ac90799f3.zip |
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
Diffstat (limited to 'cad/chipmunk/files')
-rw-r--r-- | cad/chipmunk/files/patch-netcmp-main.c | 19 |
1 files changed, 19 insertions, 0 deletions
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'); |