summaryrefslogtreecommitdiffstats
path: root/linux
diff options
context:
space:
mode:
authorZev Weiss <zev@bewilderbeest.net>2020-09-02 02:38:44 -0500
committerZev Weiss <zev@bewilderbeest.net>2020-09-03 11:59:26 -0500
commit7b7822b896af7673b9e13f0f1807e187ef2d4370 (patch)
tree432855970507d1d622976fd8c4464c803d92239a /linux
parenta1a027b9bd833db5384d7dc65046194018eb8bfa (diff)
Remove superfluous 'extern's from function declarations.
Applied via: $ find * -name '*.h' -exec sed -i -r 's/^extern (.+\()/\1/;' {} + Suggested-by: Bert Wesarg <bert.wesarg@googlemail.com>
Diffstat (limited to 'linux')
-rw-r--r--linux/Battery.h2
-rw-r--r--linux/IOPriorityPanel.h4
-rw-r--r--linux/LinuxCRT.h2
-rw-r--r--linux/LinuxProcess.h16
-rw-r--r--linux/LinuxProcessList.h6
-rw-r--r--linux/Platform.h22
6 files changed, 26 insertions, 26 deletions
diff --git a/linux/Battery.h b/linux/Battery.h
index d52b08c9..065895c5 100644
--- a/linux/Battery.h
+++ b/linux/Battery.h
@@ -27,6 +27,6 @@ Linux battery readings written by Ian P. Hands (iphands@gmail.com, ihands@redhat
// READ FROM /sys
// ----------------------------------------
-extern void Battery_getData(double* level, ACPresence* isOnAC);
+void Battery_getData(double* level, ACPresence* isOnAC);
#endif
diff --git a/linux/IOPriorityPanel.h b/linux/IOPriorityPanel.h
index 5019d59a..04c1d43e 100644
--- a/linux/IOPriorityPanel.h
+++ b/linux/IOPriorityPanel.h
@@ -11,8 +11,8 @@ in the source distribution for its full text.
#include "IOPriority.h"
#include "ListItem.h"
-extern Panel* IOPriorityPanel_new(IOPriority currPrio);
+Panel* IOPriorityPanel_new(IOPriority currPrio);
-extern IOPriority IOPriorityPanel_getIOPriority(Panel* this);
+IOPriority IOPriorityPanel_getIOPriority(Panel* this);
#endif
diff --git a/linux/LinuxCRT.h b/linux/LinuxCRT.h
index f4f8cf06..61304dac 100644
--- a/linux/LinuxCRT.h
+++ b/linux/LinuxCRT.h
@@ -10,6 +10,6 @@ in the source distribution for its full text.
#ifdef HAVE_EXECINFO_H
#endif
-extern void CRT_handleSIGSEGV(int sgn);
+void CRT_handleSIGSEGV(int sgn);
#endif
diff --git a/linux/LinuxProcess.h b/linux/LinuxProcess.h
index 462ae6bc..8ee49f46 100644
--- a/linux/LinuxProcess.h
+++ b/linux/LinuxProcess.h
@@ -159,9 +159,9 @@ extern ProcessPidColumn Process_pidColumns[];
extern ProcessClass LinuxProcess_class;
-extern LinuxProcess* LinuxProcess_new(Settings* settings);
+LinuxProcess* LinuxProcess_new(Settings* settings);
-extern void Process_delete(Object* cast);
+void Process_delete(Object* cast);
/*
[1] Note that before kernel 2.6.26 a process that has not asked for
@@ -173,18 +173,18 @@ extern io_priority;
*/
#define LinuxProcess_effectiveIOPriority(p_) (IOPriority_class(p_->ioPriority) == IOPRIO_CLASS_NONE ? IOPriority_tuple(IOPRIO_CLASS_BE, (p_->super.nice + 20) / 5) : p_->ioPriority)
-extern IOPriority LinuxProcess_updateIOPriority(LinuxProcess* this);
+IOPriority LinuxProcess_updateIOPriority(LinuxProcess* this);
-extern bool LinuxProcess_setIOPriority(LinuxProcess* this, Arg ioprio);
+bool LinuxProcess_setIOPriority(LinuxProcess* this, Arg ioprio);
#ifdef HAVE_DELAYACCT
-extern void LinuxProcess_printDelay(float delay_percent, char* buffer, int n);
+void LinuxProcess_printDelay(float delay_percent, char* buffer, int n);
#endif
-extern void LinuxProcess_writeField(Process* this, RichString* str, ProcessField field);
+void LinuxProcess_writeField(Process* this, RichString* str, ProcessField field);
-extern long LinuxProcess_compare(const void* v1, const void* v2);
+long LinuxProcess_compare(const void* v1, const void* v2);
-extern bool Process_isThread(Process* this);
+bool Process_isThread(Process* this);
#endif
diff --git a/linux/LinuxProcessList.h b/linux/LinuxProcessList.h
index 4a0e0206..b63f19aa 100644
--- a/linux/LinuxProcessList.h
+++ b/linux/LinuxProcessList.h
@@ -109,9 +109,9 @@ typedef struct LinuxProcessList_ {
#endif
-extern ProcessList* ProcessList_new(UsersTable* usersTable, Hashtable* pidWhiteList, uid_t userId);
+ProcessList* ProcessList_new(UsersTable* usersTable, Hashtable* pidWhiteList, uid_t userId);
-extern void ProcessList_delete(ProcessList* pl);
+void ProcessList_delete(ProcessList* pl);
#ifdef HAVE_TASKSTATS
@@ -134,6 +134,6 @@ extern void ProcessList_delete(ProcessList* pl);
#endif
-extern void ProcessList_goThroughEntries(ProcessList* super);
+void ProcessList_goThroughEntries(ProcessList* super);
#endif
diff --git a/linux/Platform.h b/linux/Platform.h
index ec685270..922a3392 100644
--- a/linux/Platform.h
+++ b/linux/Platform.h
@@ -25,27 +25,27 @@ extern const SignalItem Platform_signals[];
extern const unsigned int Platform_numberOfSignals;
-extern void Platform_setBindings(Htop_Action* keys);
+void Platform_setBindings(Htop_Action* keys);
extern MeterClass* Platform_meterTypes[];
-extern int Platform_getUptime();
+int Platform_getUptime();
-extern void Platform_getLoadAverage(double* one, double* five, double* fifteen);
+void Platform_getLoadAverage(double* one, double* five, double* fifteen);
-extern int Platform_getMaxPid();
+int Platform_getMaxPid();
-extern double Platform_setCPUValues(Meter* this, int cpu);
+double Platform_setCPUValues(Meter* this, int cpu);
-extern void Platform_setMemoryValues(Meter* this);
+void Platform_setMemoryValues(Meter* this);
-extern void Platform_setSwapValues(Meter* this);
+void Platform_setSwapValues(Meter* this);
-extern void Platform_setZfsArcValues(Meter* this);
+void Platform_setZfsArcValues(Meter* this);
-extern void Platform_setZfsCompressedArcValues(Meter* this);
-extern char* Platform_getProcessEnv(pid_t pid);
+void Platform_setZfsCompressedArcValues(Meter* this);
+char* Platform_getProcessEnv(pid_t pid);
-extern void Platform_getPressureStall(const char *file, bool some, double* ten, double* sixty, double* threehundred);
+void Platform_getPressureStall(const char *file, bool some, double* ten, double* sixty, double* threehundred);
#endif

© 2014-2024 Faster IT GmbH | imprint | privacy policy