|
|
306fa1 |
autofs-5.1.0 - fix gcc5 complaints
|
|
|
306fa1 |
|
|
|
306fa1 |
From: Ian Kent <raven@themaw.net>
|
|
|
306fa1 |
|
|
|
306fa1 |
gcc5 is not happy with the way dump_core() and master_get_logopt()
|
|
|
306fa1 |
are declared inline, remove the inline and let the compiler decide.
|
|
|
306fa1 |
---
|
|
|
306fa1 |
CHANGELOG | 1 +
|
|
|
306fa1 |
daemon/spawn.c | 2 +-
|
|
|
306fa1 |
include/automount.h | 2 +-
|
|
|
306fa1 |
include/master.h | 2 +-
|
|
|
306fa1 |
lib/master.c | 2 +-
|
|
|
306fa1 |
5 files changed, 5 insertions(+), 4 deletions(-)
|
|
|
306fa1 |
|
|
|
306fa1 |
--- autofs-5.0.7.orig/CHANGELOG
|
|
|
306fa1 |
+++ autofs-5.0.7/CHANGELOG
|
|
|
306fa1 |
@@ -192,6 +192,7 @@
|
|
|
306fa1 |
- fix handle_mounts() termination condition check.
|
|
|
306fa1 |
- fix config old name lookup.
|
|
|
306fa1 |
- fix error handling on ldap bind fail.
|
|
|
306fa1 |
+- fix gcc5 complaints.
|
|
|
306fa1 |
|
|
|
306fa1 |
25/07/2012 autofs-5.0.7
|
|
|
306fa1 |
=======================
|
|
|
306fa1 |
--- autofs-5.0.7.orig/daemon/spawn.c
|
|
|
306fa1 |
+++ autofs-5.0.7/daemon/spawn.c
|
|
|
306fa1 |
@@ -36,7 +36,7 @@ static pthread_mutex_t spawn_mutex = PTH
|
|
|
306fa1 |
|
|
|
306fa1 |
#define MTAB_LOCK_RETRIES 3
|
|
|
306fa1 |
|
|
|
306fa1 |
-inline void dump_core(void)
|
|
|
306fa1 |
+void dump_core(void)
|
|
|
306fa1 |
{
|
|
|
306fa1 |
sigset_t segv;
|
|
|
306fa1 |
|
|
|
306fa1 |
--- autofs-5.0.7.orig/include/automount.h
|
|
|
306fa1 |
+++ autofs-5.0.7/include/automount.h
|
|
|
306fa1 |
@@ -241,7 +241,7 @@ const char **copy_argv(int argc, const c
|
|
|
306fa1 |
int compare_argv(int argc1, const char **argv1, int argc2, const char **argv2);
|
|
|
306fa1 |
int free_argv(int argc, const char **argv);
|
|
|
306fa1 |
|
|
|
306fa1 |
-inline void dump_core(void);
|
|
|
306fa1 |
+void dump_core(void);
|
|
|
306fa1 |
int aquire_lock(void);
|
|
|
306fa1 |
void release_lock(void);
|
|
|
306fa1 |
int spawnl(unsigned logopt, const char *prog, ...);
|
|
|
306fa1 |
--- autofs-5.0.7.orig/include/master.h
|
|
|
306fa1 |
+++ autofs-5.0.7/include/master.h
|
|
|
306fa1 |
@@ -120,7 +120,7 @@ void master_notify_state_change(struct m
|
|
|
306fa1 |
int master_mount_mounts(struct master *, time_t, int);
|
|
|
306fa1 |
int dump_map(struct master *, const char *, const char *);
|
|
|
306fa1 |
int master_show_mounts(struct master *);
|
|
|
306fa1 |
-extern inline unsigned int master_get_logopt(void);
|
|
|
306fa1 |
+unsigned int master_get_logopt(void);
|
|
|
306fa1 |
int master_list_empty(struct master *);
|
|
|
306fa1 |
int master_done(struct master *);
|
|
|
306fa1 |
int master_kill(struct master *);
|
|
|
306fa1 |
--- autofs-5.0.7.orig/lib/master.c
|
|
|
306fa1 |
+++ autofs-5.0.7/lib/master.c
|
|
|
306fa1 |
@@ -1712,7 +1712,7 @@ int master_done(struct master *master)
|
|
|
306fa1 |
return res;
|
|
|
306fa1 |
}
|
|
|
306fa1 |
|
|
|
306fa1 |
-inline unsigned int master_get_logopt(void)
|
|
|
306fa1 |
+unsigned int master_get_logopt(void)
|
|
|
306fa1 |
{
|
|
|
306fa1 |
return master_list ? master_list->logopt : LOGOPT_NONE;
|
|
|
306fa1 |
}
|