diff options
author | Bernhard Reutner-Fischer <rep.dot.nop@gmail.com> | 2006-06-02 20:56:16 +0000 |
---|---|---|
committer | Bernhard Reutner-Fischer <rep.dot.nop@gmail.com> | 2006-06-02 20:56:16 +0000 |
commit | e15d7573a1263fb364d1678c3a46be47a8b5e5ea (patch) | |
tree | 09e7b482b38ac571a01e936fb91df16dd1eeef42 /debianutils/readlink.c | |
parent | ecae66ac16338d8cddb55e1782ebd8c5f670ff53 (diff) | |
download | busybox-w32-e15d7573a1263fb364d1678c3a46be47a8b5e5ea.tar.gz busybox-w32-e15d7573a1263fb364d1678c3a46be47a8b5e5ea.tar.bz2 busybox-w32-e15d7573a1263fb364d1678c3a46be47a8b5e5ea.zip |
- move #include busybox.h to the very top so we pull in the config
and eventual platform specific includes in early.
Diffstat (limited to 'debianutils/readlink.c')
-rw-r--r-- | debianutils/readlink.c | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/debianutils/readlink.c b/debianutils/readlink.c index 79f0870ec..10fb01ebf 100644 --- a/debianutils/readlink.c +++ b/debianutils/readlink.c | |||
@@ -7,11 +7,11 @@ | |||
7 | * Licensed under GPL v2, see file LICENSE in this tarball for details. | 7 | * Licensed under GPL v2, see file LICENSE in this tarball for details. |
8 | */ | 8 | */ |
9 | 9 | ||
10 | #include "busybox.h" | ||
10 | #include <errno.h> | 11 | #include <errno.h> |
11 | #include <unistd.h> | 12 | #include <unistd.h> |
12 | #include <stdlib.h> | 13 | #include <stdlib.h> |
13 | #include <getopt.h> | 14 | #include <getopt.h> |
14 | #include "busybox.h" | ||
15 | 15 | ||
16 | #define READLINK_FLAG_f (1 << 0) | 16 | #define READLINK_FLAG_f (1 << 0) |
17 | 17 | ||
@@ -33,7 +33,8 @@ int readlink_main(int argc, char **argv) | |||
33 | return EXIT_FAILURE; | 33 | return EXIT_FAILURE; |
34 | puts(buf); | 34 | puts(buf); |
35 | 35 | ||
36 | if (ENABLE_FEATURE_CLEAN_UP && buf != bb_common_bufsiz1) free(buf); | 36 | if (ENABLE_FEATURE_CLEAN_UP && buf != bb_common_bufsiz1) |
37 | free(buf); | ||
37 | 38 | ||
38 | return EXIT_SUCCESS; | 39 | return EXIT_SUCCESS; |
39 | } | 40 | } |