use 0 instead of NULL in headers where NULL is not defined
authorSzabolcs Nagy <nsz@port70.net>
Sun, 24 Nov 2013 00:34:07 +0000 (00:34 +0000)
committerSzabolcs Nagy <nsz@port70.net>
Sun, 24 Nov 2013 00:34:07 +0000 (00:34 +0000)
some macros in sys/mtio.h and syslog.h used NULL without defining it

include/sys/mtio.h
include/syslog.h

index dc8e5f52acc594e9c950592aadb20f1ba41dc92c..f16a529bb4091950860ed2e9afa3be8e5a752c0a 100644 (file)
@@ -102,7 +102,7 @@ struct mt_tape_info {
        {MT_ISEVEREX_FT40A,     "Everex FT40A, QIC-40"},                      \
        {MT_ISSCSI1,            "Generic SCSI-1 tape"},                       \
        {MT_ISSCSI2,            "Generic SCSI-2 tape"},                       \
-       {0, NULL}                                                             \
+       {0, 0}                                                                \
 }
 
 struct mtpos {
index a9468d4d43cc4ffc9cfeb5758eccd9bba6acfeba..f7f545f7fb2141d17e12fbc26e544e3088251324 100644 (file)
@@ -82,7 +82,7 @@ typedef struct {
        { "emerg", LOG_EMERG }, { "err", LOG_ERR }, { "error", LOG_ERR }, \
        { "info", LOG_INFO }, { "none", INTERNAL_NOPRI }, \
        { "notice", LOG_NOTICE }, { "panic", LOG_EMERG }, \
-       { "warn", LOG_WARNING }, { "warning", LOG_WARNING }, { NULL, -1 } })
+       { "warn", LOG_WARNING }, { "warning", LOG_WARNING }, { 0, -1 } })
 #define facilitynames ((CODE *)(const struct __CODE []){ \
        { "auth", LOG_AUTH }, { "authpriv", LOG_AUTHPRIV }, \
        { "cron", LOG_CRON }, { "daemon", LOG_DAEMON }, { "ftp", LOG_FTP }, \
@@ -93,7 +93,7 @@ typedef struct {
        { "local0", LOG_LOCAL0 }, { "local1", LOG_LOCAL1 }, \
        { "local2", LOG_LOCAL2 }, { "local3", LOG_LOCAL3 }, \
        { "local4", LOG_LOCAL4 }, { "local5", LOG_LOCAL5 }, \
-       { "local6", LOG_LOCAL6 }, { "local7", LOG_LOCAL7 }, { NULL, -1 } })
+       { "local6", LOG_LOCAL6 }, { "local7", LOG_LOCAL7 }, { 0, -1 } })
 #endif
 #endif