mirror of
https://github.com/sheumann/hush.git
synced 2024-12-22 14:30:31 +00:00
simplify maybe_die() slightly
This commit is contained in:
parent
db2a9b683a
commit
dfa9de7176
@ -615,7 +615,8 @@ static void maybe_die(const char *notice, const char *msg)
|
|||||||
* but it SEGVs. ?! Oh well... explicit temp ptr works around that */
|
* but it SEGVs. ?! Oh well... explicit temp ptr works around that */
|
||||||
void FAST_FUNC (*fp)(const char *s, ...) = bb_error_msg_and_die;
|
void FAST_FUNC (*fp)(const char *s, ...) = bb_error_msg_and_die;
|
||||||
#if ENABLE_HUSH_INTERACTIVE
|
#if ENABLE_HUSH_INTERACTIVE
|
||||||
fp = (G_interactive_fd ? bb_error_msg : bb_error_msg_and_die);
|
if (G_interactive_fd)
|
||||||
|
fp = bb_error_msg;
|
||||||
#endif
|
#endif
|
||||||
fp(msg ? "%s: %s" : notice, notice, msg);
|
fp(msg ? "%s: %s" : notice, notice, msg);
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user