mirror of
https://github.com/opnsense/src.git
synced 2026-05-28 04:12:45 -04:00
Don't return with a value in a void function.
Pass a time_t rather than a long to time.
This commit is contained in:
parent
8b7a975ed4
commit
a8b08ce3b1
1 changed files with 4 additions and 4 deletions
|
|
@ -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);
|
||||
|
|
|
|||
Loading…
Reference in a new issue