ports/82055: security/logcheck warning fix
Yasholomew Yashinski
yashy at mail.yashy.com
Wed Jun 8 22:40:18 UTC 2005
>Number: 82055
>Category: ports
>Synopsis: security/logcheck warning fix
>Confidential: no
>Severity: non-critical
>Priority: low
>Responsible: freebsd-ports-bugs
>State: open
>Quarter:
>Keywords:
>Date-Required:
>Class: sw-bug
>Submitter-Id: current-users
>Arrival-Date: Wed Jun 08 22:40:06 GMT 2005
>Closed-Date:
>Last-Modified:
>Originator: Yasholomew Yashinski
>Release: FreeBSD 5.4-RELEASE i386
>Organization:
yashy.com.
>Environment:
System: FreeBSD mail.yashy.com 5.4-RELEASE FreeBSD 5.4-RELEASE #0: Sun May 15 21:11:17 EDT 2005 root at freebsd.yashy.com:/usr/src/sys/i386/compile/FIREWALL i386
>Description:
compile warning:
logtail.c: In function `main':
logtail.c:51: warning: return type of `main' is not `int'
>How-To-Repeat:
(cd /usr/ports/security/logcheck/ && make do-build)
>Fix:
Thanks also to gam9478 at njit.edu for his help. The patch is attached:
--- patch begins here ---
*** logtail.c.orig Wed Jun 8 18:29:53 2005
--- logtail.c Wed Jun 8 18:30:37 2005
***************
*** 44,53 ****
/* Prototypes */
! void usage(void);
int check_log(char *logname, char *offset_filename);
! void main(int argc, char *argv[])
{
int status=1; /* Set status flag to error */
--- 44,53 ----
/* Prototypes */
! int usage(void);
int check_log(char *logname, char *offset_filename);
! int main(int argc, char *argv[])
{
int status=1; /* Set status flag to error */
***************
*** 209,215 ****
fclose(input); /* clean up */
fclose(offset_output);
! return(0); /* everything A-OK */
}
--- 209,215 ----
fclose(input); /* clean up */
fclose(offset_output);
! exit(0);
}
--- patch ends here ---
>Release-Note:
>Audit-Trail:
>Unformatted:
More information about the freebsd-ports-bugs
mailing list