Blame SOURCES/autofs-5.1.0-fix-gcc5-complaints.patch

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