summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTheo de Raadt <deraadt@cvs.openbsd.org>2005-03-30 20:00:56 +0000
committerTheo de Raadt <deraadt@cvs.openbsd.org>2005-03-30 20:00:56 +0000
commit1c917e23925d581588d5da5d5091c41f3dba5a84 (patch)
treebc2c2cd4ec4b29bb511ad23aa3e5811759a0ac13
parent5f45575bfc77683b608d8e189adac0247703d31e (diff)
spacing
-rw-r--r--usr.sbin/apm/apm.c7
1 files changed, 2 insertions, 5 deletions
diff --git a/usr.sbin/apm/apm.c b/usr.sbin/apm/apm.c
index ec0a8bd5d71..1588950c353 100644
--- a/usr.sbin/apm/apm.c
+++ b/usr.sbin/apm/apm.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: apm.c,v 1.10 2005/03/29 16:25:20 miod Exp $ */
+/* $OpenBSD: apm.c,v 1.11 2005/03/30 20:00:55 deraadt Exp $ */
/*
* Copyright (c) 1996 John T. Kohl
@@ -80,13 +80,12 @@ send_command(int fd, struct apm_command *cmd, struct apm_reply *reply)
if (send(fd, cmd, sizeof(*cmd), 0) == sizeof(*cmd)) {
if (recv(fd, reply, sizeof(*reply), 0) != sizeof(*reply)) {
warn("invalid reply from APM daemon");
- return (1);
+ return (1);
}
} else {
warn("invalid send to APM daemon");
return (1);
}
-
return 0;
}
@@ -131,7 +130,6 @@ open_socket(const char *sockname)
errno = errr;
err(1, "cannot open connection to APM daemon");
}
-
return sock;
}
@@ -198,7 +196,6 @@ main(int argc, char *argv[])
doac = TRUE;
action = GETSTATUS;
break;
- case '?':
default:
usage();
}