Date: Wed, 8 Jun 2005 18:44:36 -0400 (EDT) From: Yasholomew Yashinski <yashy@mail.yashy.com> To: FreeBSD-gnats-submit@FreeBSD.org Subject: ports/82055: security/logcheck warning fix Message-ID: <20050608224436.07BA0620F@mail.yashy.com> Resent-Message-ID: <200506082240.j58Me7Nx055537@freefall.freebsd.org>
next in thread | raw e-mail | index | archive | help
>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@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@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:
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20050608224436.07BA0620F>