fix warnings
authorPhilip Kovacs <pkovacs@users.sourceforge.net>
Fri, 29 Dec 2006 23:38:57 +0000 (23:38 +0000)
committerPhilip Kovacs <pkovacs@users.sourceforge.net>
Fri, 29 Dec 2006 23:38:57 +0000 (23:38 +0000)
git-svn-id: https://conky.svn.sourceforge.net/svnroot/conky/trunk/conky1@824 7f574dfc-610e-0410-a909-a81674777703

src/conky.c

index 425cae3..b9cef5b 100644 (file)
@@ -542,7 +542,7 @@ static struct special_t *new_special(char *buf, int t)
 long fwd_fcharfind(FILE* fp, char val, unsigned int step) {
 #define BUFSZ 0x1000
        long ret = -1;
-       long count = 0;
+       unsigned int count = 0;
        static char buf[BUFSZ];
        long orig_pos = ftell(fp);
        long buf_pos = -1;
@@ -573,7 +573,7 @@ long fwd_fcharfind(FILE* fp, char val, unsigned int step) {
 long rev_fcharfind(FILE* fp, char val, unsigned int step) {
 #define BUFSZ 0x1000
        long ret = -1;
-       long count = 0;
+       unsigned int count = 0;
        static char buf[BUFSZ];
        long orig_pos = ftell(fp);
        long buf_pos = -1;