Skip to content
Snippets Groups Projects
Commit 29a7d622 authored by Kurt Zeilenga's avatar Kurt Zeilenga
Browse files

Wrap externs with parens to protect against inproper macro expansion.

parent 00da392c
No related branches found
No related tags found
No related merge requests found
......@@ -23,7 +23,7 @@
#pragma alloca
# else
# ifndef alloca /* predefined by HP cc +Olibcalls */
extern char *alloca ();
extern char *(alloca)();
# endif
# endif
# endif
......
......@@ -28,10 +28,6 @@ extern char *sys_errlist[];
#endif
#endif
#if !defined( EWOULDBLOCK ) && defined( WSAEWOULDBLOCK )
#define EWOULDBLOCK WSAEWOULDBLOCK
#endif
/* use _POSIX_VERSION for POSIX.1 code */
#endif /* _AC_ERRNO_H */
......@@ -18,7 +18,7 @@
# include <libutil.h>
#else
/* use lutil version */
extern void setproctitle LDAP_P((const char *fmt, ...));
extern void (setproctitle) LDAP_P((const char *fmt, ...));
extern int Argc;
extern char **Argv;
#endif
......
......@@ -67,6 +67,9 @@
# define tcp_close( s ) closesocket( s );
# define ioctl( s, c, a ) ioctlsocket( (s), (c), (a) )
# define ioctl_t u_long
#define EWOULDBLOCK WSAEWOULDBLOCK
#elif MACOS
# define tcp_close( s ) tcpclose( s )
#elif DOS
......
......@@ -57,7 +57,7 @@ extern char *ldap_pvt_strdup( const char * s );
#else
# ifdef DECL_STRDUP
/* some systems fail to declare strdup */
extern char *strdup();
extern char *(strdup)();
# endif
#endif
......
......@@ -24,11 +24,11 @@
#if HAVE_CRYPT_H
# include <crypt.h>
#else
extern char *crypt();
extern char *(crypt)();
#endif
#ifndef HAVE_GETPASS
extern char* getpass LDAP_P((const char *getpass));
extern char* (getpass) LDAP_P((const char *getpass));
#endif
/* getopt() defines may be in separate include file */
......@@ -46,10 +46,10 @@ extern char* getpass LDAP_P((const char *getpass));
#endif
#ifndef HAVE_TEMPNAM
extern char *tempnam(const char *tmpdir, const char *prefix);
extern char *(tempnam)(const char *tmpdir, const char *prefix);
#endif
#ifndef HAVE_MKTEMP
extern char *mktemp(char *);
extern char *(mktemp)(char *);
#endif
/* use lutil file locking */
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment