From: Florian Forster Date: Mon, 23 Nov 2009 21:25:32 +0000 (+0100) Subject: Various plugins: Remove trailing whitespaces. X-Git-Tag: collectd-4.9.0~39 X-Git-Url: https://git.tokkee.org/?a=commitdiff_plain;h=b324ebf63ff9117d5f8facb97342925606d373cc;p=collectd.git Various plugins: Remove trailing whitespaces. --- diff --git a/src/disk.c b/src/disk.c index 5df1c982..94257fef 100644 --- a/src/disk.c +++ b/src/disk.c @@ -148,7 +148,7 @@ static int disk_init (void) { #if HAVE_IOKIT_IOKITLIB_H kern_return_t status; - + if (io_master_port != MACH_PORT_NULL) { mach_port_deallocate (mach_task_self (), diff --git a/src/interface.c b/src/interface.c index fead8885..8557cb10 100644 --- a/src/interface.c +++ b/src/interface.c @@ -222,7 +222,7 @@ static int interface_read (void) char buffer[1024]; unsigned long long incoming, outgoing; char *device; - + char *dummy; char *fields[16]; int numfields; @@ -248,7 +248,7 @@ static int interface_read (void) if (device[0] == '\0') continue; - + numfields = strsplit (dummy, fields, 16); if (numfields < 11) diff --git a/src/load.c b/src/load.c index cf5221b2..575b4ca4 100644 --- a/src/load.c +++ b/src/load.c @@ -81,7 +81,7 @@ static int load_read (void) char *fields[8]; int numfields; - + if ((loadavg = fopen ("/proc/loadavg", "r")) == NULL) { char errbuf[1024]; diff --git a/src/memory.c b/src/memory.c index 799a80c3..e0e0cbb1 100644 --- a/src/memory.c +++ b/src/memory.c @@ -250,7 +250,7 @@ static int memory_read (void) #elif KERNEL_LINUX FILE *fh; char buffer[1024]; - + char *fields[8]; int numfields; diff --git a/src/processes.c b/src/processes.c index 5ef4acc0..35f99a9b 100644 --- a/src/processes.c +++ b/src/processes.c @@ -243,7 +243,7 @@ static void ps_list_register (const char *name, const char *regexp) return; } #endif - + for (ptr = list_head_g; ptr != NULL; ptr = ptr->next) { if (strcmp (ptr->name, name) == 0) @@ -319,13 +319,13 @@ static void ps_list_add (const char *name, const char *cmdline, procstat_entry_t if ((pse == NULL) || (pse->id != entry->id)) { procstat_entry_t *new; - + new = (procstat_entry_t *) malloc (sizeof (procstat_entry_t)); if (new == NULL) return; memset (new, 0, sizeof (procstat_entry_t)); new->id = entry->id; - + if (pse == NULL) ps->instances = new; else @@ -377,7 +377,7 @@ static void ps_list_add (const char *name, const char *cmdline, procstat_entry_t pse->vmem_minflt = entry->vmem_minflt_counter - pse->vmem_minflt_counter; } pse->vmem_minflt_counter = entry->vmem_minflt_counter; - + if (entry->vmem_majflt_counter < pse->vmem_majflt_counter) { pse->vmem_majflt = entry->vmem_majflt_counter @@ -414,7 +414,7 @@ static void ps_list_add (const char *name, const char *cmdline, procstat_entry_t pse->cpu_user = entry->cpu_user_counter - pse->cpu_user_counter; } pse->cpu_user_counter = entry->cpu_user_counter; - + if (entry->cpu_system_counter < pse->cpu_system_counter) { pse->cpu_system = entry->cpu_system_counter diff --git a/src/swap.c b/src/swap.c index 22eda1f5..6ccae563 100644 --- a/src/swap.c +++ b/src/swap.c @@ -173,7 +173,7 @@ static int swap_read (void) #if KERNEL_LINUX FILE *fh; char buffer[1024]; - + char *fields[8]; int numfields;