diff options
author | Szabolcs Nagy <nsz@port70.net> | 2013-11-24 00:34:07 +0000 |
---|---|---|
committer | Szabolcs Nagy <nsz@port70.net> | 2013-11-24 00:34:07 +0000 |
commit | 10c8b7148b918938d8e681c5801b913dd56cb7e4 (patch) | |
tree | ee88aa193d03e962cc8ed46369fee97f5869ad9f /include | |
parent | f7d348ec39ce31efdc4963eb4a8f16f48e5ef095 (diff) | |
download | musl-10c8b7148b918938d8e681c5801b913dd56cb7e4.tar.gz musl-10c8b7148b918938d8e681c5801b913dd56cb7e4.tar.xz musl-10c8b7148b918938d8e681c5801b913dd56cb7e4.zip |
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
Diffstat (limited to 'include')
-rw-r--r-- | include/sys/mtio.h | 2 | ||||
-rw-r--r-- | 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 |