+2001-06-15 Ezra Peisach <epeisach@mit.edu>
+
+ * ftpcmd.y, ftpd.c: Cast argument to isspace()/isdigit() to int.
+
+ * secure.h (SESSION): Pass pointer to C_Block as expected by
+ krb5_mk_priv().
+
2001-06-08 Mitchell Berger <mitchb@mit.edu>
* pathnames.h: _PATH_FTPUSERS renamed to _PATH_FTPUSERS_DEFAULT.
cpos++;
return (SP);
}
- if (isdigit(cbuf[cpos])) {
+ if (isdigit((int) cbuf[cpos])) {
cp = &cbuf[cpos];
- while (isdigit(cbuf[++cpos]))
+ while (isdigit((int) cbuf[++cpos]))
;
c = cbuf[cpos];
cbuf[cpos] = '\0';
goto dostr1;
case ARGS:
- if (isdigit(cbuf[cpos])) {
+ if (isdigit((int) cbuf[cpos])) {
cp = &cbuf[cpos];
- while (isdigit(cbuf[++cpos]))
+ while (isdigit((int) cbuf[++cpos]))
;
c = cbuf[cpos];
cbuf[cpos] = '\0';
register char *s;
{
while (*s != '\0') {
- if (islower(*s))
- *s = toupper(*s);
+ if (islower((int) (*s)))
+ *s = toupper((int) (*s));
s++;
}
}
int i = strlen(name) + 1;
/* Make sure foo doesn't match foobar */
- if (line[i] == '\0' || !isspace(line[i]))
+ if (line[i] == '\0' || !isspace((int) line[i]))
continue;
/* Ignore whitespace */
- while (isspace(line[++i]));
+ while (isspace((int) line[++i]));
if (strcmp(&line[i], "restrict") == 0)
return (-1);
#include <stdio.h>
#define CRED_DECL extern AUTH_DAT kdata;
-#define SESSION kdata.session
+#define SESSION &kdata.session
#define myaddr data_source
#define hisaddr data_dest