Explicitly mark main() as public in executables to avoid an HP-UX
ld warning.
This commit is contained in:
@@ -32,6 +32,8 @@
|
||||
|
||||
#include "missing.h"
|
||||
|
||||
__dso_public int main(int argc, char *argv[]);
|
||||
|
||||
int
|
||||
main(int argc, char *argv[])
|
||||
{
|
||||
|
@@ -32,6 +32,8 @@
|
||||
|
||||
#include "missing.h"
|
||||
|
||||
__dso_public int main(int argc, char *argv[]);
|
||||
|
||||
int
|
||||
main(int argc, char *argv[])
|
||||
{
|
||||
|
@@ -20,6 +20,8 @@
|
||||
# include "compat/fnmatch.h"
|
||||
#endif
|
||||
|
||||
__dso_public int main(int argc, char *argv[]);
|
||||
|
||||
int
|
||||
main(int argc, char *argv[])
|
||||
{
|
||||
|
@@ -33,6 +33,7 @@ struct gl_entry {
|
||||
};
|
||||
|
||||
int test_glob(struct gl_entry *);
|
||||
__dso_public int main(int argc, char *argv[]);
|
||||
|
||||
int
|
||||
main(int argc, char **argv)
|
||||
|
@@ -31,6 +31,8 @@
|
||||
|
||||
#include "sudo_plugin.h"
|
||||
|
||||
__dso_public int main(int argc, char *argv[]);
|
||||
|
||||
/*
|
||||
* Simple driver to test sudoer group plugins.
|
||||
* usage: plugin_test [-p "plugin.so plugin_args ..."] user:group ...
|
||||
|
@@ -50,6 +50,8 @@
|
||||
# define LINE_MAX 2048
|
||||
#endif
|
||||
|
||||
__dso_public int main(int argc, char *argv[]);
|
||||
|
||||
static void
|
||||
usage(void)
|
||||
{
|
||||
|
@@ -54,6 +54,8 @@ sudo_conv_t sudo_conv; /* NULL in non-plugin */
|
||||
|
||||
static char sessid[7];
|
||||
|
||||
__dso_public int main(int argc, char *argv[]);
|
||||
|
||||
static void
|
||||
usage(void)
|
||||
{
|
||||
|
@@ -46,6 +46,8 @@ sudo_conv_t sudo_conv; /* NULL in non-plugin */
|
||||
|
||||
extern void writeln_wrap(FILE *fp, char *line, size_t len, size_t maxlen);
|
||||
|
||||
__dso_public int main(int argc, char *argv[]);
|
||||
|
||||
static void
|
||||
usage(void)
|
||||
{
|
||||
|
@@ -50,6 +50,7 @@
|
||||
#include "interfaces.h"
|
||||
|
||||
static int check_addr_printf(int msg_type, const char *fmt, ...);
|
||||
__dso_public int main(int argc, char *argv[]);
|
||||
|
||||
/* for match_addr.c */
|
||||
struct interface *interfaces;
|
||||
|
@@ -48,6 +48,8 @@
|
||||
#include "sudo_plugin.h"
|
||||
#include <gram.h>
|
||||
|
||||
__dso_public int main(int argc, char *argv[]);
|
||||
|
||||
/*
|
||||
* TODO: test realloc
|
||||
*/
|
||||
|
@@ -238,6 +238,8 @@ static size_t atomic_writev(int fd, struct iovec *iov, int iovcnt);
|
||||
(s)[8] == '/' && (s)[9] == 'l' && (s)[10] == 'o' && (s)[11] == 'g' && \
|
||||
(s)[12] == '\0')
|
||||
|
||||
__dso_public int main(int argc, char *argv[]);
|
||||
|
||||
int
|
||||
main(int argc, char *argv[])
|
||||
{
|
||||
|
@@ -127,6 +127,8 @@ extern char *malloc_options;
|
||||
extern int sudoersdebug;
|
||||
#endif
|
||||
|
||||
__dso_public int main(int argc, char *argv[]);
|
||||
|
||||
int
|
||||
main(int argc, char *argv[])
|
||||
{
|
||||
|
@@ -144,6 +144,8 @@ static struct sudoersfile_list sudoerslist;
|
||||
static struct rbtree *alias_freelist;
|
||||
static bool checkonly;
|
||||
|
||||
__dso_public int main(int argc, char *argv[]);
|
||||
|
||||
int
|
||||
main(int argc, char *argv[])
|
||||
{
|
||||
|
@@ -45,6 +45,8 @@
|
||||
|
||||
sudo_conv_t sudo_conv; /* NULL in non-plugin */
|
||||
|
||||
__dso_public int main(int argc, char *argv[], char *envp[]);
|
||||
|
||||
/*
|
||||
* Cleanup hook for error()/errorx()
|
||||
*/
|
||||
|
@@ -147,6 +147,8 @@ static struct rlimit corelimit;
|
||||
static struct rlimit nproclimit;
|
||||
#endif
|
||||
|
||||
__dso_public int main(int argc, char *argv[], char *envp[]);
|
||||
|
||||
int
|
||||
main(int argc, char *argv[], char *envp[])
|
||||
{
|
||||
|
Reference in New Issue
Block a user