aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDenis Vlasenko <vda.linux@googlemail.com>2008-01-07 15:58:02 +0000
committerDenis Vlasenko <vda.linux@googlemail.com>2008-01-07 15:58:02 +0000
commit4e9ca75281a25dcdbb3e2d2fa79108b02afa43db (patch)
tree82719bae160c22a5963b615cc3e9971702271de8
parentbcd5fc12ec4d31f7633460cb66c2e8a5436ace18 (diff)
downloadbusybox-w32-4e9ca75281a25dcdbb3e2d2fa79108b02afa43db.tar.gz
busybox-w32-4e9ca75281a25dcdbb3e2d2fa79108b02afa43db.tar.bz2
busybox-w32-4e9ca75281a25dcdbb3e2d2fa79108b02afa43db.zip
syslogd: fix shmat error check
-rw-r--r--sysklogd/syslogd.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/sysklogd/syslogd.c b/sysklogd/syslogd.c
index f8e8488fb..345bf0e87 100644
--- a/sysklogd/syslogd.c
+++ b/sysklogd/syslogd.c
@@ -218,7 +218,7 @@ static void ipcsyslog_init(void)
218 } 218 }
219 219
220 G.shbuf = shmat(G.shmid, NULL, 0); 220 G.shbuf = shmat(G.shmid, NULL, 0);
221 if (!G.shbuf) { 221 if (G.shbuf == (void*) -1L) { /* shmat has bizarre error return */
222 bb_perror_msg_and_die("shmat"); 222 bb_perror_msg_and_die("shmat");
223 } 223 }
224 224