removed all stupid (void)

git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@1034 ec53bebd-3082-4978-b11e-865c3cabbd6b
This commit is contained in:
Assar Westerlund
1996-11-17 20:23:48 +00:00
parent 239db0f710
commit 6202f22614
40 changed files with 544 additions and 544 deletions

View File

@@ -92,7 +92,7 @@ getopt(nargc, nargv, ostr)
p = *nargv;
else
++p;
(void)fprintf(stderr, "%s: illegal option -- %c\n",
fprintf(stderr, "%s: illegal option -- %c\n",
p, optopt);
}
return(BADCH);
@@ -114,7 +114,7 @@ getopt(nargc, nargv, ostr)
if (*ostr == ':')
return(BADARG);
if (opterr)
(void)fprintf(stderr,
fprintf(stderr,
"%s: option requires an argument -- %c\n",
p, optopt);
return(BADCH);

View File

@@ -124,16 +124,16 @@ initshells()
if ((fp = fopen(_PATH_SHELLS, "r")) == NULL)
return (okshells);
if (fstat(fileno(fp), &statb) == -1) {
(void)fclose(fp);
fclose(fp);
return (okshells);
}
if ((strings = malloc((u_int)statb.st_size)) == NULL) {
(void)fclose(fp);
fclose(fp);
return (okshells);
}
shells = calloc((unsigned)statb.st_size / 3, sizeof (char *));
if (shells == NULL) {
(void)fclose(fp);
fclose(fp);
free(strings);
strings = NULL;
return (okshells);
@@ -151,7 +151,7 @@ initshells()
*cp++ = '\0';
}
*sp = NULL;
(void)fclose(fp);
fclose(fp);
return (shells);
}
#endif /* HAVE_GETUSERSHELL */

View File

@@ -817,15 +817,15 @@ qprintf(const Char *str, Char *s)
{
Char *p;
(void)printf("%s:\n", str);
printf("%s:\n", str);
for (p = s; *p; p++)
(void)printf("%c", CHAR(*p));
(void)printf("\n");
printf("%c", CHAR(*p));
printf("\n");
for (p = s; *p; p++)
(void)printf("%c", *p & M_PROTECT ? '"' : ' ');
(void)printf("\n");
printf("%c", *p & M_PROTECT ? '"' : ' ');
printf("\n");
for (p = s; *p; p++)
(void)printf("%c", ismeta(*p) ? '_' : ' ');
(void)printf("\n");
printf("%c", ismeta(*p) ? '_' : ' ');
printf("\n");
}
#endif

View File

@@ -223,17 +223,17 @@ iruserok(u_int32_t raddr, int superuser, const char *ruser, const char *luser)
again:
if (hostf) {
if (__ivaliduser(hostf, raddr, luser, ruser) == 0) {
(void)fclose(hostf);
fclose(hostf);
return (0);
}
(void)fclose(hostf);
fclose(hostf);
}
if (first == 1 && (__check_rhosts_file || superuser)) {
first = 0;
if ((pwd = k_getpwnam((char*)luser)) == NULL)
return (-1);
(void)strcpy(pbuf, pwd->pw_dir);
(void)strcat(pbuf, "/.rhosts");
strcpy(pbuf, pwd->pw_dir);
strcat(pbuf, "/.rhosts");
/*
* Change effective uid while opening .rhosts. If root and
@@ -241,9 +241,9 @@ again:
* are protected read/write owner only.
*/
uid = geteuid();
(void)seteuid(pwd->pw_uid);
seteuid(pwd->pw_uid);
hostf = fopen(pbuf, "r");
(void)seteuid(uid);
seteuid(uid);
if (hostf == NULL)
return (-1);
@@ -265,7 +265,7 @@ again:
/* If there were any problems, quit. */
if (cp) {
__rcmd_errstr = cp;
(void)fclose(hostf);
fclose(hostf);
return (-1);
}
goto again;