Fix warnings in FATAL_EXIT macro

darcs-hash:20090204224310-ac50b-111db6c8f5b74dad0a309441063d3d7e9bf8f55d.gz
This commit is contained in:
axel 2009-02-05 08:43:10 +10:00
parent 9b95dda6bf
commit 1ed5decf2c

View file

@ -109,13 +109,13 @@ extern wchar_t *program_name;
/** /**
Pause for input, then exit the program. If supported, print a backtrace first. Pause for input, then exit the program. If supported, print a backtrace first.
*/ */
#define FATAL_EXIT() \ #define FATAL_EXIT() \
{ \ { \
char c; \ int exit_read_count;char exit_read_buff; \
show_stackframe(); \ show_stackframe(); \
read( 0, &c, 1 ); \ exit_read_count=read( 0, &exit_read_buff, 1 ); \
exit( 1 ); \ exit( 1 ); \
} \ } \
/** /**