1
0
mirror of https://github.com/Interlisp/maiko.git synced 2026-02-07 16:51:21 +00:00

Resolve warning: no previous extern declaration for non-static variable.

Declare ether broadcast address constant.
This commit is contained in:
Nick Briggs
2023-01-07 11:00:36 -08:00
parent 97cca299be
commit 4b0eea260f
3 changed files with 10 additions and 3 deletions

View File

@@ -83,7 +83,7 @@
extern int ether_fd; /* file descriptor for ether socket */
static int ether_intf_type = 0;
extern u_char ether_host[6]; /* 48 bit address of this node */
extern u_char broadcast[6];
extern const u_char broadcast[6];
extern int ether_bsize; /* if nonzero then a receive is pending */
extern u_char *ether_buf; /* address of receive buffer */
static u_char nit_buf[3000]; /* the current chunk read from NIT (one packet) */