Cosmetic tweaks. Try and keep the style more consistent, catch some stray

whitespace and update a comment.
This commit is contained in:
Peter Wemm 2002-05-01 02:51:50 +00:00
parent 4924b9dd80
commit 6692ac6644
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/head/; revision=95839
2 changed files with 42 additions and 44 deletions

View file

@ -390,9 +390,8 @@ getenv_int(const char *name, int *data)
int rval;
rval = getenv_quad(name, &tmp);
if (rval) {
if (rval)
*data = (int) tmp;
}
return (rval);
}
@ -406,18 +405,17 @@ getenv_quad(const char *name, quad_t *data)
char *vtp;
quad_t iv;
if ((value = getenv(name)) == NULL)
return(0);
value = getenv(name);
if (value == NULL)
return (0);
iv = strtoq(value, &vtp, 0);
if ((vtp == value) || (*vtp != '\0')) {
freeenv(value);
return(0);
return (0);
}
freeenv(value);
*data = iv;
return(1);
return (1);
}
/*
@ -427,6 +425,7 @@ getenv_quad(const char *name, quad_t *data)
static char *
kernenv_next(char *cp)
{
if (cp != NULL) {
while (*cp != 0)
cp++;
@ -434,7 +433,7 @@ kernenv_next(char *cp)
if (*cp == 0)
cp = NULL;
}
return(cp);
return (cp);
}
void

View file

@ -61,7 +61,7 @@ res_find(int *line, int *startln,
if (checkmethod) {
switch (hintmode) {
case 0: /* config supplied nothing */
case 0: /* loader hints in environment only */
break;
case 1: /* static hints only */
hintp = static_hints;
@ -118,9 +118,8 @@ res_find(int *line, int *startln,
sx_sunlock(&kenv_lock);
return (ENOENT);
}
} else {
} else
cp = hintp;
}
while (cp) {
hit = 1;
(*line)++;