From 10c8b7148b918938d8e681c5801b913dd56cb7e4 Mon Sep 17 00:00:00 2001 From: Szabolcs Nagy Date: Sun, 24 Nov 2013 00:34:07 +0000 Subject: [PATCH] use 0 instead of NULL in headers where NULL is not defined some macros in sys/mtio.h and syslog.h used NULL without defining it --- include/sys/mtio.h | 2 +- include/syslog.h | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/include/sys/mtio.h b/include/sys/mtio.h index dc8e5f52..f16a529b 100644 --- a/include/sys/mtio.h +++ b/include/sys/mtio.h @@ -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 { diff --git a/include/syslog.h b/include/syslog.h index a9468d4d..f7f545f7 100644 --- a/include/syslog.h +++ b/include/syslog.h @@ -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 -- 2.25.1