Commit 9bffe719 9bffe719fd75b6f9827af0c4197a3d4d11a04b57 by Sam Roberts

gcc doesn't like signed chars as array indexes, they could be negative

1 parent 9be820ee
...@@ -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
......