summaryrefslogtreecommitdiff
path: root/gpsd.c
diff options
context:
space:
mode:
authorEric S. Raymond <esr@thyrsus.com>2004-10-04 18:58:59 +0000
committerEric S. Raymond <esr@thyrsus.com>2004-10-04 18:58:59 +0000
commit365e6920239bff9a4bc1eab1b18702fe3f7a8ef2 (patch)
tree5811884e6378c7a0d83ce43ad05cbf9000738dc2 /gpsd.c
parenta11ee6bbbf2cad8948c7cb388fe09fdf1fa96046 (diff)
downloadgpsd-365e6920239bff9a4bc1eab1b18702fe3f7a8ef2.tar.gz
More code-polishing.
Diffstat (limited to 'gpsd.c')
-rw-r--r--gpsd.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/gpsd.c b/gpsd.c
index f13514da..4ec1e5f5 100644
--- a/gpsd.c
+++ b/gpsd.c
@@ -561,8 +561,7 @@ int main(int argc, char *argv[])
openlog("gpsd", LOG_PID, LOG_USER);
gpsd_report(1, "launching (Version %s)\n", VERSION);
- msock = passivesock(service, "tcp", QLEN);
- if (msock < 0) {
+ if ((msock = passivesock(service, "tcp", QLEN)) < 0) {
gpsd_report(0, "startup failed, netlib error %d\n", msock);
exit(2);
}