aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDavid Malone <dwmalone@FreeBSD.org>2003-03-13 22:06:10 +0000
committerDavid Malone <dwmalone@FreeBSD.org>2003-03-13 22:06:10 +0000
commita8b08ce3b190cf3a4af9f0c3ab93d91f7a59287d (patch)
treef0103635e91b3ee02128ce985f53c42afcef1798
parent8b7a975ed470c238c7430df6e8a0fd05be25d4a9 (diff)
downloadsrc-a8b08ce3b190cf3a4af9f0c3ab93d91f7a59287d.tar.gz
src-a8b08ce3b190cf3a4af9f0c3ab93d91f7a59287d.zip
Don't return with a value in a void function.
Pass a time_t rather than a long to time.
Notes
Notes: svn path=/head/; revision=112205
-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 dce226294c74..40749ad7890f 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);