summaryrefslogtreecommitdiff
path: root/src/util
diff options
context:
space:
mode:
authorErik Skultety <eskultet@redhat.com>2016-05-10 13:37:32 +0200
committerErik Skultety <eskultet@redhat.com>2016-05-11 09:06:32 +0200
commit898c0bbea7ad3d8d9b8b978027762a9dd16ad691 (patch)
treea0da69bd118f829153eff59cb1dc7aa25976fc87 /src/util
parente5aecc2f800e8e14edd561dc5af4f763f040d842 (diff)
downloadlibvirt-898c0bbea7ad3d8d9b8b978027762a9dd16ad691.tar.gz
headers: Remove unnecessary keyword extern from function declaration
Usage of this keyword in front of function declaration that is exported via a header file is unnecessary, since internally, this has been the default for most compilers for quite some time. Signed-off-by: Erik Skultety <eskultet@redhat.com>
Diffstat (limited to 'src/util')
-rw-r--r--src/util/virhashcode.h2
-rw-r--r--src/util/virlog.h78
-rw-r--r--src/util/virstats.h4
3 files changed, 42 insertions, 42 deletions
diff --git a/src/util/virhashcode.h b/src/util/virhashcode.h
index 09e6eebfb2..7732f816cf 100644
--- a/src/util/virhashcode.h
+++ b/src/util/virhashcode.h
@@ -30,6 +30,6 @@
# include "internal.h"
-extern uint32_t virHashCodeGen(const void *key, size_t len, uint32_t seed);
+uint32_t virHashCodeGen(const void *key, size_t len, uint32_t seed);
#endif /* __VIR_HASH_CODE_H__ */
diff --git a/src/util/virlog.h b/src/util/virlog.h
index b5056f541e..3ad00d49c3 100644
--- a/src/util/virlog.h
+++ b/src/util/virlog.h
@@ -170,50 +170,50 @@ typedef enum {
VIR_LOG_STACK_TRACE = (1 << 0),
} virLogFlags;
-extern int virLogGetNbFilters(void);
-extern int virLogGetNbOutputs(void);
-extern char *virLogGetFilters(void);
-extern char *virLogGetOutputs(void);
-extern virLogPriority virLogGetDefaultPriority(void);
-extern int virLogSetDefaultPriority(virLogPriority priority);
-extern void virLogSetFromEnv(void);
-extern int virLogDefineFilter(const char *match,
- virLogPriority priority,
- unsigned int flags);
-extern int virLogDefineOutput(virLogOutputFunc f,
- virLogCloseFunc c,
- void *data,
- virLogPriority priority,
- virLogDestination dest,
- const char *name,
- unsigned int flags);
+int virLogGetNbFilters(void);
+int virLogGetNbOutputs(void);
+char *virLogGetFilters(void);
+char *virLogGetOutputs(void);
+virLogPriority virLogGetDefaultPriority(void);
+int virLogSetDefaultPriority(virLogPriority priority);
+void virLogSetFromEnv(void);
+int virLogDefineFilter(const char *match,
+ virLogPriority priority,
+ unsigned int flags);
+int virLogDefineOutput(virLogOutputFunc f,
+ virLogCloseFunc c,
+ void *data,
+ virLogPriority priority,
+ virLogDestination dest,
+ const char *name,
+ unsigned int flags);
/*
* Internal logging API
*/
-extern void virLogLock(void);
-extern void virLogUnlock(void);
-extern int virLogReset(void);
-extern int virLogParseDefaultPriority(const char *priority);
-extern int virLogParseFilters(const char *filters);
-extern int virLogParseOutputs(const char *output);
-extern int virLogPriorityFromSyslog(int priority);
-extern void virLogMessage(virLogSourcePtr source,
- virLogPriority priority,
- const char *filename,
- int linenr,
- const char *funcname,
- virLogMetadataPtr metadata,
- const char *fmt, ...) ATTRIBUTE_FMT_PRINTF(7, 8);
-extern void virLogVMessage(virLogSourcePtr source,
- virLogPriority priority,
- const char *filename,
- int linenr,
- const char *funcname,
- virLogMetadataPtr metadata,
- const char *fmt,
- va_list vargs) ATTRIBUTE_FMT_PRINTF(7, 0);
+void virLogLock(void);
+void virLogUnlock(void);
+int virLogReset(void);
+int virLogParseDefaultPriority(const char *priority);
+int virLogParseFilters(const char *filters);
+int virLogParseOutputs(const char *output);
+int virLogPriorityFromSyslog(int priority);
+void virLogMessage(virLogSourcePtr source,
+ virLogPriority priority,
+ const char *filename,
+ int linenr,
+ const char *funcname,
+ virLogMetadataPtr metadata,
+ const char *fmt, ...) ATTRIBUTE_FMT_PRINTF(7, 8);
+void virLogVMessage(virLogSourcePtr source,
+ virLogPriority priority,
+ const char *filename,
+ int linenr,
+ const char *funcname,
+ virLogMetadataPtr metadata,
+ const char *fmt,
+ va_list vargs) ATTRIBUTE_FMT_PRINTF(7, 0);
bool virLogProbablyLogMessage(const char *str);
diff --git a/src/util/virstats.h b/src/util/virstats.h
index d2c6b640e6..69f4cf1402 100644
--- a/src/util/virstats.h
+++ b/src/util/virstats.h
@@ -25,7 +25,7 @@
# include "internal.h"
-extern int virNetInterfaceStats(const char *path,
- virDomainInterfaceStatsPtr stats);
+int virNetInterfaceStats(const char *path,
+ virDomainInterfaceStatsPtr stats);
#endif /* __STATS_LINUX_H__ */