Commit graph

9 commits

Author SHA1 Message Date
Doug Torrance 7e78639bb6 Remove trailing whitespace. 2017-02-21 11:15:02 +00:00
Doug Torrance d14a0c0681 wmgtemp: Use 'char' instead of 'unsigned char' for bit mask.
Avoids compiler warning:

    src/wmgtemp.c: In function ‘main’:
    src/wmgtemp.c:202:50: warning: pointer targets in passing argument 4 of ‘openXwindow’ differ in signedness [-Wpointer-sign]
       openXwindow(argc, argv, wmgtemp_interface_xpm, wmgtemp_interface_mask_bits,
                                                  ^
    In file included from src/wmgtemp.c:15:0:
    /usr/include/libdockapp/wmgeneral.h:78:6: note: expected ‘char *’ but argument is of type ‘unsigned char *’
     void openXwindow(int argc, char *argv[], char **, char *, int, int);
          ^
2017-02-02 13:33:12 +00:00
Doug Torrance 6f171bfde2 wmgtemp: Remove unused variable 'chipname' 2017-02-02 13:33:12 +00:00
Doug Torrance df04a1b4d5 wmgtemp: Drop all inline functions.
Too many issues when compiling with different C standards.
2017-02-02 13:33:12 +00:00
Doug Torrance 94f3870b82 wmgtemp: Switch to autotools for build. 2017-02-02 13:33:12 +00:00
Doug Torrance 236af53275 wmgtemp: Use wmgeneral from libdockapp. 2017-02-02 13:33:12 +00:00
Doug Torrance bb4dd3f5c6 wmgtemp: Fix -Waggressive-loop-optimizations compiler warning.
In particular, the cpu_history array has length 59, so when i = 58,
cpu_history[i+1] is undefined.

From
http://sources.debian.net/src/wmgtemp/1.1-3/debian/patches/fix_-Waggressive-loop-optimizations.patch/
2017-02-02 13:33:12 +00:00
Doug Torrance 84b7716e3d wmgtemp: Autodetect sensors.conf instead of providing default value.
Patch by Aurelien Jarno <aurel32@debian.org>.

From
http://sources.debian.net/src/wmgtemp/1.1-3/debian/patches/sensors.conf.patch/
2017-02-02 13:33:11 +00:00
Doug Torrance bdaf5fd1f6 wmgtemp: Add verson 1.1 to repository.
From
http://fluxcode.net/files/wmgtemp-1.1.tar.gz
2017-02-02 13:31:10 +00:00