prout

smaller "lp" command
git clone git://git.2f30.org/prout
Log | Files | Refs | README | LICENSE

commit 2500503cac5ec287d48c453de3a2a582530be81e
parent 5062a6e4f83c38059c8d7836a98b6cad828970ec
Author: Klemens Nanni <kl3@posteo.org>
Date:   Sat, 13 Feb 2016 20:51:53 +0100

exit() is a function call, not a keyword

Diffstat:
Mprout.c | 8++++----
1 file changed, 4 insertions(+), 4 deletions(-)

diff --git a/prout.c b/prout.c @@ -35,7 +35,7 @@ static char* check_file(char *file) if (!f) { fprintf(stderr, "Cannot open the given file\n"); - exit (1); + exit(1); } /* Don't let the file close longer */ @@ -56,7 +56,7 @@ static cups_dest_t* check_dest() /* Leave if there is no default printer configured */ if (num_dests < 1) { fprintf(stderr, "No default printer configured\n"); - exit (1); + exit(1); } /* Get the default destination from all dests */ @@ -65,7 +65,7 @@ static cups_dest_t* check_dest() /* No need to go on if we can't reach the printer */ if (!dest) { fprintf(stderr, "Cannot get a pointer to the default destination"); - exit (1); + exit(1); } return (dest); @@ -144,7 +144,7 @@ int main(int argc, char **argv) /* check the given arguments */ if (argc < 2) { usage(); - exit (1); + exit(1); } for (i=1; (i < argc) && (argv[i][0] == '-'); i++) {