diff options
author | Denys Vlasenko <vda.linux@googlemail.com> | 2017-01-29 18:59:38 +0100 |
---|---|---|
committer | Denys Vlasenko <vda.linux@googlemail.com> | 2017-01-29 18:59:38 +0100 |
commit | 86663910babe4684fe4ac7cead2fab6f4aa576d7 (patch) | |
tree | fbe1e5972e0d86b6c55b33120458a16a7d237b8a | |
parent | b181ca75528ece1a16f36bd7fdabe6916d9e5aac (diff) | |
download | busybox-w32-86663910babe4684fe4ac7cead2fab6f4aa576d7.tar.gz busybox-w32-86663910babe4684fe4ac7cead2fab6f4aa576d7.tar.bz2 busybox-w32-86663910babe4684fe4ac7cead2fab6f4aa576d7.zip |
taskset: separate "current" and "new" strings
Better for constant sharing:
text data bss dec hex filename
912997 485 6856 920338 e0b12 busybox_old
912988 485 6856 920329 e0b09 busybox_unstripped
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
-rw-r--r-- | miscutils/taskset.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/miscutils/taskset.c b/miscutils/taskset.c index a87b9bd43..68b0fa6eb 100644 --- a/miscutils/taskset.c +++ b/miscutils/taskset.c | |||
@@ -143,7 +143,7 @@ int taskset_main(int argc UNUSED_PARAM, char **argv) | |||
143 | 143 | ||
144 | mask_size_in_bytes = SZOF_UL; | 144 | mask_size_in_bytes = SZOF_UL; |
145 | mask = NULL; | 145 | mask = NULL; |
146 | current_new = "current\0new"; | 146 | current_new = "current"; |
147 | print_aff: | 147 | print_aff: |
148 | mask = get_aff(pid, &mask_size_in_bytes); | 148 | mask = get_aff(pid, &mask_size_in_bytes); |
149 | if (opt_p) { | 149 | if (opt_p) { |
@@ -156,7 +156,7 @@ int taskset_main(int argc UNUSED_PARAM, char **argv) | |||
156 | return EXIT_SUCCESS; | 156 | return EXIT_SUCCESS; |
157 | } | 157 | } |
158 | *argv = NULL; | 158 | *argv = NULL; |
159 | current_new += 8; /* "new" */ | 159 | current_new = "new"; |
160 | } | 160 | } |
161 | memset(mask, 0, mask_size_in_bytes); | 161 | memset(mask, 0, mask_size_in_bytes); |
162 | 162 | ||