Add __unused. Ansi prototypes.

This commit is contained in:
Philippe Charnier 2010-12-20 09:36:54 +00:00
parent a7a7d96c7a
commit d31ff7a8fb
2 changed files with 10 additions and 6 deletions

View File

@ -34,10 +34,12 @@
* THIS SOFTWARE, EVEN IF WHISTLE COMMUNICATIONS IS ADVISED OF THE POSSIBILITY
* OF SUCH DAMAGE.
*
* $FreeBSD$
* $Whistle: main.c,v 1.12 1999/11/29 19:17:46 archie Exp $
*/
#include <sys/cdefs.h>
__FBSDID("$FreeBSD$");
#include <sys/param.h>
#include <sys/socket.h>
#include <sys/select.h>
@ -225,7 +227,7 @@ ReadFile(FILE *fp)
#ifdef EDITLINE
/* Signal handler for Monitor() thread. */
static void
Unblock(int signal)
Unblock(int signal __unused)
{
unblock = 1;
@ -236,7 +238,7 @@ Unblock(int signal)
* can be blocked in el_gets().
*/
static void *
Monitor(void *v)
Monitor(void *v __unused)
{
struct sigaction act;
const int maxfd = MAX(csock, dsock) + 1;
@ -270,7 +272,7 @@ Monitor(void *v)
}
static char *
Prompt(EditLine *el)
Prompt(EditLine *el __unused)
{
return (PROMPT);

View File

@ -35,9 +35,11 @@
* OF SUCH DAMAGE.
*
* $Whistle: msg.c,v 1.2 1999/11/29 23:38:35 archie Exp $
* $FreeBSD$
*/
#include <sys/cdefs.h>
__FBSDID("$FreeBSD$");
#include <err.h>
#include <netgraph.h>
#include <stdio.h>
@ -121,7 +123,7 @@ MsgCmd(int ac, char **av)
* Read and display the next incoming control message
*/
void
MsgRead()
MsgRead(void)
{
struct ng_mesg *m, *m2;
struct ng_mesg *ascii;