diff options
author | Oskari Pirhonen <xxc3ncoredxx@gmail.com> | 2023-04-23 14:28:32 -0500 |
---|---|---|
committer | Mike Frysinger <vapier@gmail.com> | 2023-04-23 16:11:15 -0400 |
commit | 8f52c64c37de39a757c857fd4d03c078d3979dc7 (patch) | |
tree | 0547656d900fe914610bbb67f77f17b482b34950 | |
parent | 09d405fb3e85f4783fad2757c680f2826dd9893a (diff) |
einfo.h: fix EINFO_RESTRICT macro usage
Make function declarations use the EINFO_RESTRICT macro instead of
__EINFO_RESTRICT which gets treated as the name of the argument.
-rw-r--r-- | src/libeinfo/einfo.h | 32 |
1 files changed, 16 insertions, 16 deletions
diff --git a/src/libeinfo/einfo.h b/src/libeinfo/einfo.h index 4fd5425b..d682f757 100644 --- a/src/libeinfo/einfo.h +++ b/src/libeinfo/einfo.h @@ -69,22 +69,22 @@ void elog(int, const char * EINFO_RESTRICT, ...) EINFO_PRINTF(2, 3); * The x suffix means function will exit() returning failure. */ /*@{*/ -int einfon(const char * __EINFO_RESTRICT, ...) EINFO_PRINTF(1, 2); -int ewarnn(const char * __EINFO_RESTRICT, ...) EINFO_PRINTF(1, 2); -int eerrorn(const char * __EINFO_RESTRICT, ...) EINFO_PRINTF(1, 2); -int einfo(const char * __EINFO_RESTRICT, ...) EINFO_PRINTF(1, 2); -int ewarn(const char * __EINFO_RESTRICT, ...) EINFO_PRINTF(1, 2); -void ewarnx(const char * __EINFO_RESTRICT, ...) EINFO_XPRINTF(1, 2); -int eerror(const char * __EINFO_RESTRICT, ...) EINFO_PRINTF(1, 2); -void eerrorx(const char * __EINFO_RESTRICT, ...) EINFO_XPRINTF(1, 2); - -int einfovn(const char * __EINFO_RESTRICT, ...) EINFO_PRINTF(1, 2); -int ewarnvn(const char * __EINFO_RESTRICT, ...) EINFO_PRINTF(1, 2); -int ebeginvn(const char * __EINFO_RESTRICT, ...) EINFO_PRINTF(1, 2); -int eendvn(int, const char * __EINFO_RESTRICT, ...) EINFO_PRINTF(2, 3); -int ewendvn(int, const char * __EINFO_RESTRICT, ...) EINFO_PRINTF(2, 3); -int einfov(const char * __EINFO_RESTRICT, ...) EINFO_PRINTF(1, 2); -int ewarnv(const char * __EINFO_RESTRICT, ...) EINFO_PRINTF(1, 2); +int einfon(const char * EINFO_RESTRICT, ...) EINFO_PRINTF(1, 2); +int ewarnn(const char * EINFO_RESTRICT, ...) EINFO_PRINTF(1, 2); +int eerrorn(const char * EINFO_RESTRICT, ...) EINFO_PRINTF(1, 2); +int einfo(const char * EINFO_RESTRICT, ...) EINFO_PRINTF(1, 2); +int ewarn(const char * EINFO_RESTRICT, ...) EINFO_PRINTF(1, 2); +void ewarnx(const char * EINFO_RESTRICT, ...) EINFO_XPRINTF(1, 2); +int eerror(const char * EINFO_RESTRICT, ...) EINFO_PRINTF(1, 2); +void eerrorx(const char * EINFO_RESTRICT, ...) EINFO_XPRINTF(1, 2); + +int einfovn(const char * EINFO_RESTRICT, ...) EINFO_PRINTF(1, 2); +int ewarnvn(const char * EINFO_RESTRICT, ...) EINFO_PRINTF(1, 2); +int ebeginvn(const char * EINFO_RESTRICT, ...) EINFO_PRINTF(1, 2); +int eendvn(int, const char * EINFO_RESTRICT, ...) EINFO_PRINTF(2, 3); +int ewendvn(int, const char * EINFO_RESTRICT, ...) EINFO_PRINTF(2, 3); +int einfov(const char * EINFO_RESTRICT, ...) EINFO_PRINTF(1, 2); +int ewarnv(const char * EINFO_RESTRICT, ...) EINFO_PRINTF(1, 2); /*@}*/ /*! @ingroup ebegin |