diff options
author | Denys Vlasenko <vda.linux@googlemail.com> | 2019-03-17 19:47:52 +0100 |
---|---|---|
committer | Denys Vlasenko <vda.linux@googlemail.com> | 2019-03-17 19:48:39 +0100 |
commit | 5059653882dbd86e3bbf48389f9f81b0fac8cd0a (patch) | |
tree | c485a272add5b3a684f9ac97aad69a7c07aadb85 /include | |
parent | 2bbd1e1e8ababc480ff5d373847ab98ba0cc23dd (diff) | |
download | busybox-w32-5059653882dbd86e3bbf48389f9f81b0fac8cd0a.tar.gz busybox-w32-5059653882dbd86e3bbf48389f9f81b0fac8cd0a.tar.bz2 busybox-w32-5059653882dbd86e3bbf48389f9f81b0fac8cd0a.zip |
do not duplicate CONFIG_PID_FILE_PATH and ".pid" strings
text data bss dec hex filename
981737 485 7296 989518 f194e busybox_old
981704 485 7296 989485 f192d busybox_unstripped
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
Diffstat (limited to 'include')
-rw-r--r-- | include/libbb.h | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/include/libbb.h b/include/libbb.h index 7a1e13875..e0d5521e4 100644 --- a/include/libbb.h +++ b/include/libbb.h | |||
@@ -1298,9 +1298,13 @@ llist_t *llist_find_str(llist_t *first, const char *str) FAST_FUNC; | |||
1298 | /* True only if we created pidfile which is *file*, not /dev/null etc */ | 1298 | /* True only if we created pidfile which is *file*, not /dev/null etc */ |
1299 | extern smallint wrote_pidfile; | 1299 | extern smallint wrote_pidfile; |
1300 | void write_pidfile(const char *path) FAST_FUNC; | 1300 | void write_pidfile(const char *path) FAST_FUNC; |
1301 | void write_pidfile_std_path_and_ext(const char *path) FAST_FUNC; | ||
1302 | void remove_pidfile_std_path_and_ext(const char *path) FAST_FUNC; | ||
1301 | #define remove_pidfile(path) do { if (wrote_pidfile) unlink(path); } while (0) | 1303 | #define remove_pidfile(path) do { if (wrote_pidfile) unlink(path); } while (0) |
1302 | #else | 1304 | #else |
1303 | enum { wrote_pidfile = 0 }; | 1305 | enum { wrote_pidfile = 0 }; |
1306 | #define write_pidfile_std_path_and_ext(path) ((void)0) | ||
1307 | #define remove_pidfile_std_path_and_ext(path) ((void)0) | ||
1304 | #define write_pidfile(path) ((void)0) | 1308 | #define write_pidfile(path) ((void)0) |
1305 | #define remove_pidfile(path) ((void)0) | 1309 | #define remove_pidfile(path) ((void)0) |
1306 | #endif | 1310 | #endif |