Browse Source

main.c, brace noise

rlar 15 years ago
parent
commit
8e50ce9905
  1. 21
      src/main.c

21
src/main.c

@ -965,9 +965,8 @@ main(int argc, char **argv)
break; break;
case 'r': /* The raw file */ case 'r': /* The raw file */
if (optarg) {
if (optarg)
cp_vset("rawfile", CP_STRING, optarg); cp_vset("rawfile", CP_STRING, optarg);
}
rflag = TRUE; rflag = TRUE;
break; break;
@ -976,9 +975,8 @@ main(int argc, char **argv)
break; break;
case 't': case 't':
if (optarg) {
if (optarg)
cp_vset("term", CP_STRING, optarg); cp_vset("term", CP_STRING, optarg);
}
break; break;
case '?': case '?':
@ -1029,10 +1027,8 @@ main(int argc, char **argv)
#else #else
if_getparam = nutif_getparam; if_getparam = nutif_getparam;
if (optind == argc) {
/* No raw file */
gdata = FALSE;
}
if (optind == argc) /* No raw file */
gdata = FALSE;
#endif #endif
if ((!iflag && !istty) || ft_servermode) /* (batch and file) or server operation */ if ((!iflag && !istty) || ft_servermode) /* (batch and file) or server operation */
@ -1189,9 +1185,8 @@ bot:
exit(1); exit(1);
} }
if (optind == argc && !istty) {
if (optind == argc && !istty)
append_to_stream(tempfile, stdin); append_to_stream(tempfile, stdin);
}
while (optind < argc) { while (optind < argc) {
char *arg = argv[optind++]; char *arg = argv[optind++];
@ -1249,9 +1244,8 @@ bot:
perror("Could not delete temp file"); perror("Could not delete temp file");
#endif #endif
if (ft_batchmode && err) {
if (ft_batchmode && err)
sp_shutdown(EXIT_BAD); sp_shutdown(EXIT_BAD);
}
} /* --- if (!ft_servermode && !ft_nutmeg) --- */ } /* --- if (!ft_servermode && !ft_nutmeg) --- */
@ -1268,9 +1262,8 @@ evl:
/* If we get back here in batch mode then something is wrong, /* If we get back here in batch mode then something is wrong,
* so exit. */ * so exit. */
if (st == TRUE) {
if (st == TRUE)
sp_shutdown(EXIT_BAD); sp_shutdown(EXIT_BAD);
}
st = TRUE; st = TRUE;

Loading…
Cancel
Save