Removed all trailing whitespace
authorKevin Lyles <iqgryn@users.sourceforge.net>
Sun, 15 Jun 2008 18:38:33 +0000 (18:38 +0000)
committerKevin Lyles <iqgryn@users.sourceforge.net>
Sun, 15 Jun 2008 18:38:33 +0000 (18:38 +0000)
git-svn-id: https://conky.svn.sourceforge.net/svnroot/conky/trunk/conky1@1156 7f574dfc-610e-0410-a909-a81674777703

14 files changed:
AUTHORS
README.svn-version
doc/conky.conf
doc/docs.xml
doc/variables.xml
src/Makefile.am
src/conky.c
src/conky.h
src/diskio.c
src/linux.c
src/nvidia.h
src/smapi.c
src/smapi.h
src/xmms2.c

diff --git a/AUTHORS b/AUTHORS
index 3c0e089..f96e6ef 100644 (file)
--- a/AUTHORS
+++ b/AUTHORS
@@ -238,7 +238,7 @@ Petr Holub <hopet@users.sourceforge.net>
 
 Philip Kovacs <pkovacs at users dot sourceforge dot net>
   tcp port monitor with hashing functionality
-  
+
   Audacious, Xmms, BMP, Infopipe stuff
   Various Xlib changes, e.g. own_window hints, etc.
 
index ea041fb..5bf4d5e 100644 (file)
@@ -27,7 +27,7 @@ Fresh from a SVN checkout:
        You can also try using the autogen.sh script, like so:
 
        $ sh autogen.sh
-       
+
 * After that, it's the familiar
 
        $ ./configure
index df96def..df7dd4e 100644 (file)
@@ -178,7 +178,7 @@ ${color #ddaa00} ${top_mem name 1} ${top_mem pid 1} ${top_mem cpu 1} ${top_mem m
 ${color lightgrey} ${top_mem name 2} ${top_mem pid 2} ${top_mem cpu 2} ${top_mem mem 2}
 ${color lightgrey} ${top_mem name 3} ${top_mem pid 3} ${top_mem cpu 3} ${top_mem mem 3}
 $stippled_hr
-${color #ddaa00}Port(s)${alignr}#Connections   
+${color #ddaa00}Port(s)${alignr}#Connections
 $color Inbound: ${tcp_portmon 1 32767 count}  Outbound: ${tcp_portmon 32768 61000 count}${alignr}ALL: ${tcp_portmon 1 65535 count}
 ${color #ddaa00}Inbound Connection ${alignr} Local Service/Port$color
  ${tcp_portmon 1 32767 rhost 0} ${alignr} ${tcp_portmon 1 32767 lservice 0}
index 9808da8..85655d1 100644 (file)
@@ -50,7 +50,7 @@
                        Conky has more than 250 built in objects, including support for
                        a plethora of OS stats (uname, uptime, CPU usage, mem usage, disk
                        usage, "top" like process stats, and network monitoring, just to name a few),
-                       built in IMAP and POP3 support, built in support for many popular 
+                       built in IMAP and POP3 support, built in support for many popular
                        music players (MPD, XMMS2, BMPx, Audacious), and much much more.
                        Conky can display this info either as text,     or using simple progress
                        bars and graph widgets, with different fonts and colours.
                <title>Compiling</title>
                <para>
                        For users compiling from source on a binary distro, make sure you have the X development
-                       libraries installed.  This should be a package along the lines of "libx11-dev" or 
+                       libraries installed.  This should be a package along the lines of "libx11-dev" or
                        "xorg-x11-dev" for X11 libs, and similar "-dev" format for the other libs required (depending
                        on your configure options).
                </para>
                <para>
-                       Conky has (for some time) been available in the repositories of most popular distributions.  
+                       Conky has (for some time) been available in the repositories of most popular distributions.
                        Here are some installation instructions for a few:
                </para>
                <para>
                <title>Configuration Settings</title>
 
                <para>
-                       Default configuration file location is $HOME/.conkyrc or 
+                       Default configuration file location is $HOME/.conkyrc or
                        ${sysconfdir}/conky/conky.conf.  On most systems, sysconfdir is /etc,
                        and you can find the sample config file there (/etc/conky/conky.conf).
                </para>
index c8cbf56..224d566 100644 (file)
                        Bar that shows amount of memory in use
                        <para></para></listitem>
        </varlistentry>
-       
+
        <varlistentry>
                <term>
                        <command><option>memgraph</option></command>
index 859db10..72a3e15 100644 (file)
@@ -117,9 +117,9 @@ conky_SOURCES =             \
        mboxscan.h              \
        $(x11)                  \
        $(xmms2)                \
-       $(smapi)                
+       $(smapi)
 
-AM_LDFLAGS = $(PTHREAD_LIBS) -lm 
+AM_LDFLAGS = $(PTHREAD_LIBS) -lm
 
 EXTRA_DIST =                   \
        audacious.c             \
@@ -143,7 +143,7 @@ EXTRA_DIST =                        \
        x11.c                   \
        xmms2.c                 \
        smapi.c                 \
-       users.c         
-       
+       users.c
+
 
 # vi:set ts=8 sw=8 noet ai nocindent syntax=automake:
index 8664ee2..2bd6b42 100644 (file)
@@ -1040,7 +1040,7 @@ static void human_readable(long long num, char *buf, int size, const char *func_
 
        suffix++;
        fnum = num / 1024.0;
-       
+
        precision = 3;
        do {
                precision--;
@@ -2279,7 +2279,7 @@ static void free_text_objects(unsigned int count, struct text_object *objs)
 #endif
 #ifdef NVIDIA
                        case OBJ_nvidia:
-                               break;  
+                               break;
 #endif
 #ifdef MPD
                        case OBJ_mpd_title:
@@ -3887,7 +3887,7 @@ static struct text_object *construct_text_object(const char *s,
        END OBJ(entropy_poolsize, INFO_ENTROPY)
        END OBJ(entropy_bar, INFO_ENTROPY)
                scan_bar(arg, &obj->a, &obj->b);
-#ifdef NVIDIA  
+#ifdef NVIDIA
        END OBJ(nvidia, 0)
                if (!arg){
                        CRIT_ERR("nvidia needs one argument "
@@ -4984,7 +4984,7 @@ static void generate_text_internal(char *p, int p_max_size,
                                        if (length > 0 && output[length - 1] == '\n') {
                                                output[length - 1] = '\0';
                                        }
-                                       
+
                                        text_objects = parse_conky_vars(obj->data.execi.buffer, p, my_info);
                                        obj->data.execi.last_update = current_update_time;
                                }
@@ -6281,10 +6281,10 @@ head:
                                int hol = (strcmp((char*)&obj->data.nvidia.arg, "gpufreq")) ? 1 : 0;
                                if(!(obj->data.nvidia.value = get_nvidia_value(obj->data.nvidia.type, display, hol)))
                                        snprintf(p, p_max_size, "value unavailible");
-                               else 
+                               else
                                        spaced_print(p, p_max_size, "%*d", 4, "nvidia",
                                                             4, obj->data.nvidia.value);
-                               
+
                        }
 #endif /* NVIDIA */
 
index e75e598..a0db330 100644 (file)
@@ -80,7 +80,7 @@ char *strndup(const char *s, size_t n);
 #ifdef NVIDIA
 #include "nvidia.h"
 #endif
+
 #include "mboxscan.h"
 #include "timed_thread.h"
 #include "top.h"
index e0c65d8..e8fa96b 100644 (file)
@@ -95,7 +95,7 @@ struct diskio_stat *prepare_diskio_stat(const char *s)
        /*
         * check that device actually exists
         */
-       
+
        if (!(fp = open_file("/proc/diskstats", &rep))) {
                ERR("cannot read from /proc/diskstats");
                return 0;
index 351845d..f9543a9 100644 (file)
@@ -1572,30 +1572,30 @@ void get_battery_stuff(char *buffer, unsigned int n, const char *bat, int item)
        memset(last_battery_time_str[idx], 0, sizeof(last_battery_time_str[idx]));
 
        /* first try SYSFS if that fails try ACPI */
+
        if (sysfs_bat_fp[idx] == NULL && acpi_bat_fp[idx] == NULL && apm_bat_fp[idx] == NULL) {
                sysfs_bat_fp[idx] = open_file(sysfs_path, &rep);
                rep = 0;
        }
-  
+
        if (sysfs_bat_fp[idx] == NULL && acpi_bat_fp[idx] == NULL && apm_bat_fp[idx] == NULL) {
                acpi_bat_fp[idx] = open_file(acpi_path, &rep);
        }
-  
+
        if (sysfs_bat_fp[idx] != NULL) {
                /* SYSFS */
                int present_rate = -1;
                int remaining_capacity = -1;
                char charging_state[64];
                char present[4];
+
                strcpy(charging_state, "unknown");
+
                while (!feof(sysfs_bat_fp[idx])) {
                        char buf[256];
                        if (fgets(buf, 256, sysfs_bat_fp[idx]) == NULL)
                                break;
+
                        /* let's just hope units are ok */
                        if (strncmp (buf, "POWER_SUPPLY_PRESENT=1", 22) == 0)
                                strcpy(present, "yes");
@@ -1618,14 +1618,14 @@ void get_battery_stuff(char *buffer, unsigned int n, const char *bat, int item)
                        else if (strncmp(buf, "POWER_SUPPLY_CHARGE_FULL=", 25) == 0)
                                sscanf(buf, "POWER_SUPPLY_CHARGE_FULL=%d", &acpi_last_full[idx]);
                }
+
                fclose(sysfs_bat_fp[idx]);
                sysfs_bat_fp[idx] = NULL;
+
                /* Hellf[i]re notes that remaining capacity can exceed acpi_last_full */
                if (remaining_capacity > acpi_last_full[idx])
                        acpi_last_full[idx] = remaining_capacity;  /* normalize to 100% */
+
                /* not present */
                if (strcmp(present, "No") == 0) {
                        strncpy(last_battery_str[idx], "not present", 64);
index c3d31af..9dfffe9 100644 (file)
@@ -46,6 +46,6 @@ struct nvidia_s {
        int value;
        char arg[20];
        QUERY_ID type;
-};     
+};
 
 #endif
index 1d24224..14bac0c 100644 (file)
@@ -1,7 +1,7 @@
 /* smapi.c:  conky support for IBM Thinkpad smapi
  *
  * Copyright (C) 2007 Phil Sutter <Phil@nwl.cc>
- * 
+ *
  * This library is free software; you can redistribute it and/or modify
  * it under the terms of the GNU General Public License as published by
  * the Free Software Foundation; either version 2 of the License, or
index c1b6ae6..5ab489b 100644 (file)
@@ -1,7 +1,7 @@
 /* smapi.h:  conky support for IBM Thinkpad smapi
  *
  * Copyright (C) 2007 Phil Sutter <Phil@nwl.cc>
- * 
+ *
  * This library is free software; you can redistribute it and/or modify
  * it under the terms of the GNU General Public License as published by
  * the Free Software Foundation; either version 2 of the License, or
index 8f5503e..4c6c4a5 100644 (file)
@@ -248,7 +248,7 @@ void handle_playback_state_change(xmmsc_result_t *res, void *p)
 }
 
 void handle_playlist_loaded(xmmsc_result_t *res, void *p) {
-       struct information *ptr = p; 
+       struct information *ptr = p;
 
        if (ptr->xmms2.playlist == NULL) {
                ptr->xmms2.playlist = malloc(text_buffer_size);