summaryrefslogtreecommitdiff
path: root/ppscheck.c
diff options
context:
space:
mode:
authorEric S. Raymond <esr@thyrsus.com>2016-08-09 17:58:32 -0400
committerEric S. Raymond <esr@thyrsus.com>2016-08-09 17:58:32 -0400
commit5c65b4850aa9988ec5ea55023ac3baae8dbb2243 (patch)
treead947cd3ccd23543474aa391cb2596f1e1e42c90 /ppscheck.c
parent655ac979b254f809b6fb5ffffe6f35aae99baa34 (diff)
downloadgpsd-5c65b4850aa9988ec5ea55023ac3baae8dbb2243.tar.gz
Avoid some compiler warnings.
Diffstat (limited to 'ppscheck.c')
-rw-r--r--ppscheck.c6
1 files changed, 4 insertions, 2 deletions
diff --git a/ppscheck.c b/ppscheck.c
index c0b49f6a..43cd3d59 100644
--- a/ppscheck.c
+++ b/ppscheck.c
@@ -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 */