* casting int to char* doesn't work out on 64 bit architectures
[citadel.git] / citadel / modules / imap / imap_tools.c
index 7173d3adb7e39321a58abdd6b78e92b202317c3e..8e86c9999642183e479f427f32eeeb931a6f31b5 100644 (file)
@@ -959,7 +959,7 @@ star:
  * Support function for mailbox pattern name matching in LIST and LSUB
  * Returns nonzero if the supplied mailbox name matches the supplied pattern.
  */
-int imap_mailbox_matches_pattern(char *pattern, char *mailboxname)
+int imap_mailbox_matches_pattern(const char *pattern, char *mailboxname)
 {
        /* handle just-star case quickly */
        if ((pattern[0] == '*') && (pattern[1] == '\0')) {