diff options
author | Eric S. Raymond <esr@thyrsus.com> | 2016-08-09 17:58:32 -0400 |
---|---|---|
committer | Eric S. Raymond <esr@thyrsus.com> | 2016-08-09 17:58:32 -0400 |
commit | 5c65b4850aa9988ec5ea55023ac3baae8dbb2243 (patch) | |
tree | ad947cd3ccd23543474aa391cb2596f1e1e42c90 /ppscheck.c | |
parent | 655ac979b254f809b6fb5ffffe6f35aae99baa34 (diff) | |
download | gpsd-5c65b4850aa9988ec5ea55023ac3baae8dbb2243.tar.gz |
Avoid some compiler warnings.
Diffstat (limited to 'ppscheck.c')
-rw-r--r-- | ppscheck.c | 6 |
1 files changed, 4 insertions, 2 deletions
@@ -55,14 +55,14 @@ struct assoc { * context "DCE" is the GPS. {CD,RI,CTS,DSR} is the * entire set of these. */ -const static struct assoc hlines[] = { +static const struct assoc hlines[] = { {TIOCM_CD, "TIOCM_CD"}, {TIOCM_RI, "TIOCM_RI"}, {TIOCM_DSR, "TIOCM_DSR"}, {TIOCM_CTS, "TIOCM_CTS"}, }; -void usage(void) +static void usage(void) { fprintf(stderr, "usage: ppscheck [-h] [ -V] <device>\n"); fprintf(stderr, " -h print usage\n"); @@ -126,6 +126,8 @@ int main(int argc, char *argv[]) (void)fputc('\n', stdout); } } + + return 0; } /* end */ |