summaryrefslogtreecommitdiff
path: root/src/simul.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/simul.c')
-rw-r--r--src/simul.c22
1 files changed, 12 insertions, 10 deletions
diff --git a/src/simul.c b/src/simul.c
index e531150..19de608 100644
--- a/src/simul.c
+++ b/src/simul.c
@@ -40,16 +40,18 @@ void segfaulthand(int i)
exception(1, _("Signal received: segfault"));
}
-void ctrlbreakhand(int i) {
+void ctrlbreakhand(int i)
+{
debug = 1;
}
-char * readargs(int argc, char ** argv) {
- char * r = NULL;
-
+char *readargs(int argc, char **argv)
+{
+ char *r = NULL;
+
argc--;
argv++;
-
+
Rapide = 1;
while (argc) {
@@ -73,7 +75,7 @@ char * readargs(int argc, char ** argv) {
argv++;
argc--;
}
-
+
if (!r) {
usage();
}
@@ -83,7 +85,7 @@ char * readargs(int argc, char ** argv) {
int main(int argc, char **argv)
{
int i;
- char * nom;
+ char *nom;
invite();
@@ -91,7 +93,7 @@ int main(int argc, char **argv)
signal(SIGSEGV, segfaulthand);
signal(SIGINT, ctrlbreakhand);
-
+
fprintf(stderr, _("\nPerforming initialisation...\n\n"));
init_all();
@@ -102,12 +104,12 @@ int main(int argc, char **argv)
clearterm();
ChargeBinaire(nom);
clearterm();
-
+
popcontext();
fprintf(stderr, _("\nPerforming shutdown...\n\n"));
flush_all();
-
+
signal(SIGSEGV, NULL);
signal(SIGINT, NULL);