projects
/
open-adventure.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Various cleanups.
[open-adventure.git]
/
main.c
diff --git
a/main.c
b/main.c
index 95acac2fb47adcec557ecce53bf2df089704e45c..916ff0ac6931decc20f4c1298ca8020fd0588bec 100644
(file)
--- a/
main.c
+++ b/
main.c
@@
-13,7
+13,7
@@
* and for the offensive globals. Applying the Structured Program
* Theorem can be hard.
*/
* and for the offensive globals. Applying the Structured Program
* Theorem can be hard.
*/
-#define DEFINE_GLOBALS_FROM_INCLUDES
+
#include <stdlib.h>
#include <stdio.h>
#include <stdbool.h>
#include <stdlib.h>
#include <stdio.h>
#include <stdbool.h>
@@
-42,7
+42,7
@@
static void sig_handler(int signo)
if (logfp != NULL)
fflush(logfp);
}
if (logfp != NULL)
fflush(logfp);
}
- exit(
0
);
+ exit(
EXIT_FAILURE
);
}
// LCOV_EXCL_STOP
}
// LCOV_EXCL_STOP
@@
-113,7
+113,7
@@
int main(int argc, char *argv[])
#endif
fprintf(stderr,
" -s suppress command editing\n");
#endif
fprintf(stderr,
" -s suppress command editing\n");
- exit(
-1
);
+ exit(
EXIT_FAILURE
);
break;
}
}
break;
}
}
@@
-1181,7
+1181,6
@@
Laction:
default:
BUG(ACTION_RETURNED_PHASE_CODE_BEYOND_END_OF_SWITCH); // LCOV_EXCL_LINE
}
default:
BUG(ACTION_RETURNED_PHASE_CODE_BEYOND_END_OF_SWITCH); // LCOV_EXCL_LINE
}
- linenoiseFree(input);
}
}
}
}