mirror of https://github.com/MidnightCommander/mc
* utilvfs.c: Fix gcc 4.0 warnings.
This commit is contained in:
parent
071f70d0e9
commit
92fec3431c
|
@ -1,5 +1,7 @@
|
|||
2005-05-10 Pavel Roskin <proski@gnu.org>
|
||||
|
||||
* utilvfs.c: Fix gcc 4.0 warnings.
|
||||
|
||||
* samba/include/includes.h: Don't include grp.h twice.
|
||||
|
||||
2005-04-21 Andrew V. Samoilov <sav@bcs.zp.ua>
|
||||
|
|
|
@ -207,7 +207,7 @@ vfs_findgid (const char *gname)
|
|||
int
|
||||
vfs_mkstemps (char **pname, const char *prefix, const char *basename)
|
||||
{
|
||||
const unsigned char *p;
|
||||
const char *p;
|
||||
char *suffix, *q;
|
||||
int shift;
|
||||
int fd;
|
||||
|
@ -229,7 +229,7 @@ vfs_mkstemps (char **pname, const char *prefix, const char *basename)
|
|||
/* Protection against unusual characters */
|
||||
q = suffix;
|
||||
while (*p && (*p != '#')) {
|
||||
if (strchr (".-_@", *p) || isalnum (*p))
|
||||
if (strchr (".-_@", *p) || isalnum ((unsigned char) *p))
|
||||
*q++ = *p;
|
||||
p++;
|
||||
}
|
||||
|
@ -342,15 +342,16 @@ is_month (const char *str, struct tm *tim)
|
|||
* NB: It is assumed there are no whitespaces in month.
|
||||
*/
|
||||
static int
|
||||
is_localized_month (const unsigned char *month)
|
||||
is_localized_month (const char *month)
|
||||
{
|
||||
int i = 0;
|
||||
|
||||
if (!month)
|
||||
return 0;
|
||||
|
||||
while ((i < 3) && *month && !isdigit (*month) && !iscntrl (*month)
|
||||
&& !ispunct (*month)) {
|
||||
while ((i < 3) && *month && !isdigit ((unsigned char) *month)
|
||||
&& !iscntrl ((unsigned char) *month)
|
||||
&& !ispunct ((unsigned char) *month)) {
|
||||
i++;
|
||||
month++;
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue