use strlwr

git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@1096 ec53bebd-3082-4978-b11e-865c3cabbd6b
This commit is contained in:
Assar Westerlund
1996-12-14 20:54:52 +00:00
parent 25bfafc308
commit 6ca646d91a
3 changed files with 2 additions and 11 deletions

View File

@@ -51,15 +51,6 @@ usage (void)
exit (1);
}
static void
strlwr (char *s)
{
while(*s) {
*s = tolower(*s);
s++;
}
}
static int
renew (int argc, char **argv, OtpAlgorithm *alg)
{

View File

@@ -47,7 +47,7 @@ pop_parse(POP *p, char *buf)
if (i == 0) return (-1);
/* Convert the first token (POP command) to lower case */
pop_lower(p->pop_command);
strlwr(p->pop_command);
/* Return the number of tokens extracted minus the command itself */
return (i-1);

View File

@@ -17,7 +17,7 @@ pop_xtnd (POP *p)
xtnd_table * x;
/* Convert the XTND subcommand to lower case */
pop_lower(p->pop_subcommand);
strlwr(p->pop_subcommand);
/* Search for the subcommand in the XTND command table */
if ((x = pop_get_subcommand(p)) == NULL) return(POP_FAILURE);