diff options
author | Darren Tucker <dtucker@zip.com.au> | 2015-04-07 10:48:04 +1000 |
---|---|---|
committer | Darren Tucker <dtucker@zip.com.au> | 2015-04-07 10:48:04 +1000 |
commit | e7bf3a5eda6a1b02bef6096fed78527ee11e54cc (patch) | |
tree | 4cb9a90236713013e28c3422114bc3b8b35d414f /openbsd-compat/bsd-misc.h | |
parent | bb99844abae2b6447272f79e7fa84134802eb4df (diff) |
Use do{}while(0) for no-op functions.
From FreeBSD.
Diffstat (limited to 'openbsd-compat/bsd-misc.h')
-rw-r--r-- | openbsd-compat/bsd-misc.h | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/openbsd-compat/bsd-misc.h b/openbsd-compat/bsd-misc.h index 65c18ec2f..ff347a24b 100644 --- a/openbsd-compat/bsd-misc.h +++ b/openbsd-compat/bsd-misc.h | |||
@@ -111,7 +111,7 @@ pid_t getpgid(pid_t); | |||
111 | #endif | 111 | #endif |
112 | 112 | ||
113 | #ifndef HAVE_ENDGRENT | 113 | #ifndef HAVE_ENDGRENT |
114 | # define endgrent() {} | 114 | # define endgrent() do { } while(0) |
115 | #endif | 115 | #endif |
116 | 116 | ||
117 | #ifndef HAVE_KRB5_GET_ERROR_MESSAGE | 117 | #ifndef HAVE_KRB5_GET_ERROR_MESSAGE |
@@ -119,7 +119,7 @@ pid_t getpgid(pid_t); | |||
119 | #endif | 119 | #endif |
120 | 120 | ||
121 | #ifndef HAVE_KRB5_FREE_ERROR_MESSAGE | 121 | #ifndef HAVE_KRB5_FREE_ERROR_MESSAGE |
122 | # define krb5_free_error_message(a,b) while(0) | 122 | # define krb5_free_error_message(a,b) do { } while(0) |
123 | #endif | 123 | #endif |
124 | 124 | ||
125 | #endif /* _BSD_MISC_H */ | 125 | #endif /* _BSD_MISC_H */ |