Add __unused. Ansi prototypes.
This commit is contained in:
parent
c30b6f1bc3
commit
2c12157d7b
@ -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);
|
||||
|
@ -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;
|
||||
|
Loading…
x
Reference in New Issue
Block a user