diff options
Diffstat (limited to 'sysklogd/syslogd.c')
-rw-r--r-- | sysklogd/syslogd.c | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/sysklogd/syslogd.c b/sysklogd/syslogd.c index d0dd1bd20..0e226124a 100644 --- a/sysklogd/syslogd.c +++ b/sysklogd/syslogd.c | |||
@@ -572,12 +572,12 @@ static void ipcsyslog_init(void) | |||
572 | 572 | ||
573 | G.shmid = shmget(KEY_ID, G.shm_size, IPC_CREAT | 0644); | 573 | G.shmid = shmget(KEY_ID, G.shm_size, IPC_CREAT | 0644); |
574 | if (G.shmid == -1) { | 574 | if (G.shmid == -1) { |
575 | bb_perror_msg_and_die("shmget"); | 575 | bb_simple_perror_msg_and_die("shmget"); |
576 | } | 576 | } |
577 | 577 | ||
578 | G.shbuf = shmat(G.shmid, NULL, 0); | 578 | G.shbuf = shmat(G.shmid, NULL, 0); |
579 | if (G.shbuf == (void*) -1L) { /* shmat has bizarre error return */ | 579 | if (G.shbuf == (void*) -1L) { /* shmat has bizarre error return */ |
580 | bb_perror_msg_and_die("shmat"); | 580 | bb_simple_perror_msg_and_die("shmat"); |
581 | } | 581 | } |
582 | 582 | ||
583 | memset(G.shbuf, 0, G.shm_size); | 583 | memset(G.shbuf, 0, G.shm_size); |
@@ -592,7 +592,7 @@ static void ipcsyslog_init(void) | |||
592 | if (G.s_semid != -1) | 592 | if (G.s_semid != -1) |
593 | return; | 593 | return; |
594 | } | 594 | } |
595 | bb_perror_msg_and_die("semget"); | 595 | bb_simple_perror_msg_and_die("semget"); |
596 | } | 596 | } |
597 | } | 597 | } |
598 | 598 | ||
@@ -603,7 +603,7 @@ static void log_to_shmem(const char *msg) | |||
603 | int len; | 603 | int len; |
604 | 604 | ||
605 | if (semop(G.s_semid, G.SMwdn, 3) == -1) { | 605 | if (semop(G.s_semid, G.SMwdn, 3) == -1) { |
606 | bb_perror_msg_and_die("SMwdn"); | 606 | bb_simple_perror_msg_and_die("SMwdn"); |
607 | } | 607 | } |
608 | 608 | ||
609 | /* Circular Buffer Algorithm: | 609 | /* Circular Buffer Algorithm: |
@@ -631,7 +631,7 @@ static void log_to_shmem(const char *msg) | |||
631 | goto again; | 631 | goto again; |
632 | } | 632 | } |
633 | if (semop(G.s_semid, G.SMwup, 1) == -1) { | 633 | if (semop(G.s_semid, G.SMwup, 1) == -1) { |
634 | bb_perror_msg_and_die("SMwup"); | 634 | bb_simple_perror_msg_and_die("SMwup"); |
635 | } | 635 | } |
636 | if (DEBUG) | 636 | if (DEBUG) |
637 | printf("tail:%d\n", G.shbuf->tail); | 637 | printf("tail:%d\n", G.shbuf->tail); |