diff options
author | YU Jincheng <shana@zju.edu.cn> | 2021-09-29 17:37:26 +0800 |
---|---|---|
committer | Denys Vlasenko <vda.linux@googlemail.com> | 2021-10-07 15:22:35 +0200 |
commit | 1f925038ab9c6bd8f6b3cd40ed7aab0ef10d898e (patch) | |
tree | a625455a60081738812f469de6a02010f0c5b252 /libbb/appletlib.c | |
parent | 17e6fb06b3d36eae11575b226858e8474e2b46d3 (diff) | |
download | busybox-w32-1f925038ab9c6bd8f6b3cd40ed7aab0ef10d898e.tar.gz busybox-w32-1f925038ab9c6bd8f6b3cd40ed7aab0ef10d898e.tar.bz2 busybox-w32-1f925038ab9c6bd8f6b3cd40ed7aab0ef10d898e.zip |
*: generalize "const trick"
While at it, change all "__asm__" to "asm"
Co-authored-by: canyie <31466456+canyie@users.noreply.github.com>
Signed-off-by: YU Jincheng <shana@zju.edu.cn>
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
Diffstat (limited to 'libbb/appletlib.c')
-rw-r--r-- | libbb/appletlib.c | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/libbb/appletlib.c b/libbb/appletlib.c index 5c5d7eb95..bf26c99e9 100644 --- a/libbb/appletlib.c +++ b/libbb/appletlib.c | |||
@@ -247,8 +247,7 @@ void lbb_prepare(const char *applet | |||
247 | IF_FEATURE_INDIVIDUAL(, char **argv)) | 247 | IF_FEATURE_INDIVIDUAL(, char **argv)) |
248 | { | 248 | { |
249 | #ifdef bb_cached_errno_ptr | 249 | #ifdef bb_cached_errno_ptr |
250 | (*(int **)not_const_pp(&bb_errno)) = get_perrno(); | 250 | ASSIGN_CONST_PTR(bb_errno, get_perrno()); |
251 | barrier(); | ||
252 | #endif | 251 | #endif |
253 | applet_name = applet; | 252 | applet_name = applet; |
254 | 253 | ||