modify ptr_to_globals trick so that we do not violate

type safety (well, sort of ;))
This commit is contained in:
Denis Vlasenko
2007-03-15 00:57:01 +00:00
parent dd2b2f75ae
commit 972288e62f
4 changed files with 20 additions and 13 deletions

View File

@ -806,6 +806,10 @@ extern const int const_int_1;
#define BUFSIZ 4096
#endif
extern char bb_common_bufsiz1[BUFSIZ+1];
/* This struct is deliberately not defined. */
/* See docs/keep_data_small.txt */
struct globals;
extern struct globals *ptr_to_globals;
/* You can change LIBBB_DEFAULT_LOGIN_SHELL, but don't use it,
* use bb_default_login_shell and following defines.