diff options
author | Erik Andersen <andersen@codepoet.org> | 2000-02-08 19:58:47 +0000 |
---|---|---|
committer | Erik Andersen <andersen@codepoet.org> | 2000-02-08 19:58:47 +0000 |
commit | e49d5ecbbe51718fa925b6890a735e5937cc2aa2 (patch) | |
tree | c90bda10731ad9333ce3b404f993354c9fc104b8 /coreutils/pwd.c | |
parent | c0bf817bbc5c7867fbe8fb76d5c39f8ee802692f (diff) | |
download | busybox-w32-e49d5ecbbe51718fa925b6890a735e5937cc2aa2.tar.gz busybox-w32-e49d5ecbbe51718fa925b6890a735e5937cc2aa2.tar.bz2 busybox-w32-e49d5ecbbe51718fa925b6890a735e5937cc2aa2.zip |
Some formatting updates (ran the code through indent)
-Erik
Diffstat (limited to 'coreutils/pwd.c')
-rw-r--r-- | coreutils/pwd.c | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/coreutils/pwd.c b/coreutils/pwd.c index bacabd77a..00163178b 100644 --- a/coreutils/pwd.c +++ b/coreutils/pwd.c | |||
@@ -1,3 +1,4 @@ | |||
1 | /* vi: set sw=4 ts=4: */ | ||
1 | /* | 2 | /* |
2 | * Mini pwd implementation for busybox | 3 | * Mini pwd implementation for busybox |
3 | * | 4 | * |
@@ -25,16 +26,15 @@ | |||
25 | #include <dirent.h> | 26 | #include <dirent.h> |
26 | #include <sys/param.h> | 27 | #include <sys/param.h> |
27 | 28 | ||
28 | extern int | 29 | extern int pwd_main(int argc, char **argv) |
29 | pwd_main(int argc, char * * argv) | ||
30 | { | 30 | { |
31 | char buf[PATH_MAX + 1]; | 31 | char buf[PATH_MAX + 1]; |
32 | 32 | ||
33 | if ( getcwd(buf, sizeof(buf)) == NULL ) { | 33 | if (getcwd(buf, sizeof(buf)) == NULL) { |
34 | perror("get working directory"); | 34 | perror("get working directory"); |
35 | exit( FALSE); | 35 | exit(FALSE); |
36 | } | 36 | } |
37 | 37 | ||
38 | printf("%s\n", buf); | 38 | printf("%s\n", buf); |
39 | exit( TRUE); | 39 | exit(TRUE); |
40 | } | 40 | } |