prout

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

commit 26372bed7bc93af5eb697a11a4d83456259cf061
parent 083714912368dbbeb7eb493b85c5b4f596636209
Author: Klemens Nanni <kl3@posteo.org>
Date:   Sun, 14 Feb 2016 01:14:06 +0100

Stylefix: keep function type in seperate line

Diffstat:
Mprout.c | 18++++++++++++------
1 file changed, 12 insertions(+), 6 deletions(-)

diff --git a/prout.c b/prout.c @@ -20,13 +20,15 @@ #include <cups/cups.h> /* Usage function */ -static void usage() +static void +usage() { printf("usage: prout [-h] <file>\n"); } /* Return the file name if the file is opennable otherwise exit */ -static char* check_file(char *file) +static char* +check_file(char *file) { FILE *f; @@ -45,7 +47,8 @@ static char* check_file(char *file) } /* Return a pointer to the destination if reachable otherwise exit */ -static cups_dest_t* check_dest() +static +cups_dest_t* check_dest() { int num_dests; cups_dest_t *dests, *dest; @@ -72,7 +75,8 @@ static cups_dest_t* check_dest() } /* Return the printed file's job ID */ -static int print(const char* file, cups_dest_t *dest) +static int +print(const char* file, cups_dest_t *dest) { int job_id = -1; @@ -85,7 +89,8 @@ static int print(const char* file, cups_dest_t *dest) } /* Blocking function: Wait util the job is completed, or an error is thrown */ -static void check_job (cups_dest_t *dest, int job_id) +static void +check_job (cups_dest_t *dest, int job_id) { int i, num_jobs; @@ -132,7 +137,8 @@ static void check_job (cups_dest_t *dest, int job_id) } } -int main(int argc, char **argv) +int +main(int argc, char **argv) { int i = 0; int job_id = -1;