Apply Vladimir's latest cleanup patch.

-Erik
This commit is contained in:
Eric Andersen
2001-04-09 22:48:12 +00:00
parent a75e286743
commit e5dfced23a
30 changed files with 500 additions and 513 deletions

View File

@ -32,11 +32,13 @@
extern int pwd_main(int argc, char **argv)
{
char buf[BUFSIZ + 1];
if (getcwd(buf, sizeof(buf)) == NULL)
perror_msg_and_die("getcwd");
puts(buf);
return EXIT_SUCCESS;
static char *buf;
buf = xgetcwd(buf);
if (buf != NULL) {
puts(buf);
return EXIT_SUCCESS;
}
return EXIT_FAILURE;
}