aboutsummaryrefslogtreecommitdiff
path: root/toys.h
diff options
context:
space:
mode:
authorRob Landley <rob@landley.net>2017-10-21 09:53:14 -0500
committerRob Landley <rob@landley.net>2017-10-21 09:53:14 -0500
commit19ebdb7d87c5ffe1841d511c4687ef973a4bb574 (patch)
tree69736ec9a7de1450dc8476a631b4319394fda2ed /toys.h
parentb5e405ce448fd50988346cc42a9099a5fdbafe8d (diff)
downloadtoybox-19ebdb7d87c5ffe1841d511c4687ef973a4bb574.tar.gz
Use char for exitval and wasroot (first capped at 8 bits and second's a flag).
Diffstat (limited to 'toys.h')
-rw-r--r--toys.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/toys.h b/toys.h
index 414f439c..91b9c9ed 100644
--- a/toys.h
+++ b/toys.h
@@ -103,13 +103,13 @@ extern struct toy_context {
char **argv; // Original command line arguments
char **optargs; // Arguments left over from get_optflags()
unsigned long long optflags; // Command line option flags from get_optflags()
- int exitval; // Value error_exit feeds to exit()
int optc; // Count of optargs
int old_umask; // Old umask preserved by TOYFLAG_UMASK
short toycount; // Total number of commands in this build
short signal; // generic_signal() records what signal it saw here
int signalfd; // and writes signal to this fd, if set
- int wasroot; // dropped setuid
+ char exitval; // Value error_exit feeds to exit()
+ char wasroot; // dropped setuid
// This is at the end so toy_init() doesn't zero it.
jmp_buf *rebound; // longjmp here instead of exit when do_rebound set