Source-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[src/trunk]: src/usr.sbin/rtadvd Use EXIT_FAILURE instead of an arbtitary num...



details:   https://anonhg.NetBSD.org/src/rev/4696903343d5
branches:  trunk
changeset: 322161:4696903343d5
user:      roy <roy%NetBSD.org@localhost>
date:      Fri Apr 20 15:59:17 2018 +0000

description:
Use EXIT_FAILURE instead of an arbtitary number.

diffstat:

 usr.sbin/rtadvd/timer.c |  6 +++---
 1 files changed, 3 insertions(+), 3 deletions(-)

diffs (27 lines):

diff -r 566fc70926b2 -r 4696903343d5 usr.sbin/rtadvd/timer.c
--- a/usr.sbin/rtadvd/timer.c   Fri Apr 20 15:57:23 2018 +0000
+++ b/usr.sbin/rtadvd/timer.c   Fri Apr 20 15:59:17 2018 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: timer.c,v 1.16 2018/04/20 13:27:45 roy Exp $   */
+/*     $NetBSD: timer.c,v 1.17 2018/04/20 15:59:17 roy Exp $   */
 /*     $KAME: timer.c,v 1.11 2005/04/14 06:22:35 suz Exp $     */
 
 /*
@@ -66,7 +66,7 @@
        if ((newtimer = malloc(sizeof(*newtimer))) == NULL) {
                logit(LOG_ERR,
                       "<%s> can't allocate memory", __func__);
-               exit(1);
+               exit(EXIT_FAILURE);
        }
 
        memset(newtimer, 0, sizeof(*newtimer));
@@ -74,7 +74,7 @@
        if (timeout == NULL) {
                logit(LOG_ERR,
                       "<%s> timeout function unspecified", __func__);
-               exit(1);
+               exit(EXIT_FAILURE);
        }
        newtimer->expire = timeout;
        newtimer->update = update;



Home | Main Index | Thread Index | Old Index