Explicitly make literal constants long where they are expected to be.
authorMark Michelson <mmichelson@digium.com>
Mon, 7 Jan 2008 22:31:03 +0000 (22:31 +0000)
committerMark Michelson <mmichelson@digium.com>
Mon, 7 Jan 2008 22:31:03 +0000 (22:31 +0000)
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@96987 65c4cc65-6c06-0410-ace0-fbb531ad65f3

apps/app_voicemail.c

index a8e5c30..09df942 100644 (file)
@@ -8220,25 +8220,25 @@ static int load_config(int reload)
                if ((val = ast_variable_retrieve(cfg, "general", "imapreadtimeout"))) {
                        mail_parameters(NIL, SET_READTIMEOUT, (void *) (atol(val)));
                } else {
-                       mail_parameters(NIL, SET_READTIMEOUT, (void *) 60);
+                       mail_parameters(NIL, SET_READTIMEOUT, (void *) 60L);
                }
 
                if ((val = ast_variable_retrieve(cfg, "general", "imapwritetimeout"))) {
                        mail_parameters(NIL, SET_WRITETIMEOUT, (void *) (atol(val)));
                } else {
-                       mail_parameters(NIL, SET_WRITETIMEOUT, (void *) 60);
+                       mail_parameters(NIL, SET_WRITETIMEOUT, (void *) 60L);
                }
 
                if ((val = ast_variable_retrieve(cfg, "general", "imapopentimeout"))) {
                        mail_parameters(NIL, SET_OPENTIMEOUT, (void *) (atol(val)));
                } else {
-                       mail_parameters(NIL, SET_OPENTIMEOUT, (void *) 60);
+                       mail_parameters(NIL, SET_OPENTIMEOUT, (void *) 60L);
                }
 
                if ((val = ast_variable_retrieve(cfg, "general", "imapclosetimeout"))) {
                        mail_parameters(NIL, SET_CLOSETIMEOUT, (void *) (atol(val)));
                } else {
-                       mail_parameters(NIL, SET_CLOSETIMEOUT, (void *) 60);
+                       mail_parameters(NIL, SET_CLOSETIMEOUT, (void *) 60L);
                }
 
 #endif