gcc doesn't like signed chars as array indexes, they could be negative
Showing
1 changed file
with
4 additions
and
2 deletions
... | @@ -106,8 +106,9 @@ static int transtab[] = { | ... | @@ -106,8 +106,9 @@ static int transtab[] = { |
106 | 106 | ||
107 | /* Forward Indexing */ | 107 | /* Forward Indexing */ |
108 | static char * | 108 | static char * |
109 | _url_path_index (const char *spooldir, const char *user, int index_depth) | 109 | _url_path_index (const char *spooldir, const char *iuser, int index_depth) |
110 | { | 110 | { |
111 | const unsigned char* user = (const unsigned char*) iuser; | ||
111 | int i, ulen = strlen (user); | 112 | int i, ulen = strlen (user); |
112 | char *mbox, *p; | 113 | char *mbox, *p; |
113 | 114 | ||
... | @@ -134,8 +135,9 @@ _url_path_index (const char *spooldir, const char *user, int index_depth) | ... | @@ -134,8 +135,9 @@ _url_path_index (const char *spooldir, const char *user, int index_depth) |
134 | 135 | ||
135 | /* Reverse Indexing */ | 136 | /* Reverse Indexing */ |
136 | static char * | 137 | static char * |
137 | _url_path_rev_index (const char *spooldir, const char *user, int index_depth) | 138 | _url_path_rev_index (const char *spooldir, const char *iuser, int index_depth) |
138 | { | 139 | { |
140 | const unsigned char* user = (const unsigned char*) iuser; | ||
139 | int i, ulen = strlen (user); | 141 | int i, ulen = strlen (user); |
140 | char *mbox, *p; | 142 | char *mbox, *p; |
141 | 143 | ... | ... |
-
Please register or sign in to post a comment