]> code.citadel.org Git - citadel.git/blobdiff - citadel/routines.c
* Bug fixes: Fix numerous char array size mismatches, signed/unsigned
[citadel.git] / citadel / routines.c
index 89de17cbd20357a8544122698d6059793507cb08..15f954d36802391e3849b52df54459c80a4e171d 100644 (file)
@@ -159,7 +159,7 @@ void edituser(CtdlIPC *ipc)
  * yes or no.  Yes=1 and No=0, unless 'backwards' is set to a nonzero value
  * in which case No=1 and Yes=0.
  */
-int set_attr(CtdlIPC *ipc, int sval, char *prompt, unsigned int sbit, int backwards)
+int set_attr(CtdlIPC *ipc, unsigned int sval, char *prompt, unsigned int sbit, int backwards)
 {
        int a;
        int temp;
@@ -388,13 +388,13 @@ char *strerror(int e)
 #endif
 
 
-void progress(long int curr, long int cmax)
+void progress(unsigned long curr, unsigned long cmax)
 {
        static char dots[] =
                "**************************************************";
        char dots_printed[51];
        char fmt[42];
-       long a;
+       unsigned long a;
 
        if (curr >= cmax) {
                sln_printf("\r%79s\r","");