summaryrefslogtreecommitdiffstats
path: root/release/picobsd
diff options
context:
space:
mode:
authordwmalone <dwmalone@FreeBSD.org>2003-03-13 22:06:10 +0000
committerdwmalone <dwmalone@FreeBSD.org>2003-03-13 22:06:10 +0000
commit129be1daea4bcf956a4f29af69b443113059a502 (patch)
treef0103635e91b3ee02128ce985f53c42afcef1798 /release/picobsd
parent28db726bfc4c9826bc4bb61b1ad9bf145ac384f4 (diff)
downloadFreeBSD-src-129be1daea4bcf956a4f29af69b443113059a502.zip
FreeBSD-src-129be1daea4bcf956a4f29af69b443113059a502.tar.gz
Don't return with a value in a void function.
Pass a time_t rather than a long to time.
Diffstat (limited to 'release/picobsd')
-rw-r--r--release/picobsd/tinyware/simple_httpd/simple_httpd.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/release/picobsd/tinyware/simple_httpd/simple_httpd.c b/release/picobsd/tinyware/simple_httpd/simple_httpd.c
index dce2262..40749ad 100644
--- a/release/picobsd/tinyware/simple_httpd/simple_httpd.c
+++ b/release/picobsd/tinyware/simple_httpd/simple_httpd.c
@@ -250,8 +250,8 @@ http_request(void)
}
if (access(filename,X_OK)) goto conti;
stat (filename,&file_status);
- if (setuid(file_status.st_uid)) return(0);
- if (seteuid(file_status.st_uid)) return(0);
+ if (setuid(file_status.st_uid)) return;
+ if (seteuid(file_status.st_uid)) return;
if (!fork())
{
close(1);
@@ -264,7 +264,7 @@ http_request(void)
execlp (filename,filename,par,(char *)0);
}
wait(&i);
- return(0);
+ return;
}
conti:
if (filename == NULL) {
@@ -472,7 +472,7 @@ main(int argc, char *argv[])
char *adate()
{
static char out[50];
- long now;
+ time_t now;
struct tm *t;
time(&now);
t = localtime(&now);
OpenPOWER on IntegriCloud