mirror of
https://github.com/PowerShell/openssh-portable.git
synced 2025-07-27 07:44:29 +02:00
Use do{}while(0) for no-op functions.
From FreeBSD.
This commit is contained in:
parent
bb99844aba
commit
e7bf3a5eda
@ -111,7 +111,7 @@ pid_t getpgid(pid_t);
|
|||||||
#endif
|
#endif
|
||||||
|
|
||||||
#ifndef HAVE_ENDGRENT
|
#ifndef HAVE_ENDGRENT
|
||||||
# define endgrent() {}
|
# define endgrent() do { } while(0)
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
#ifndef HAVE_KRB5_GET_ERROR_MESSAGE
|
#ifndef HAVE_KRB5_GET_ERROR_MESSAGE
|
||||||
@ -119,7 +119,7 @@ pid_t getpgid(pid_t);
|
|||||||
#endif
|
#endif
|
||||||
|
|
||||||
#ifndef HAVE_KRB5_FREE_ERROR_MESSAGE
|
#ifndef HAVE_KRB5_FREE_ERROR_MESSAGE
|
||||||
# define krb5_free_error_message(a,b) while(0)
|
# define krb5_free_error_message(a,b) do { } while(0)
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
#endif /* _BSD_MISC_H */
|
#endif /* _BSD_MISC_H */
|
||||||
|
Loading…
x
Reference in New Issue
Block a user