diff options
author | cinap_lenrek <cinap_lenrek@felloff.net> | 2023-11-18 21:20:05 +0000 |
---|---|---|
committer | cinap_lenrek <cinap_lenrek@felloff.net> | 2023-11-18 21:20:05 +0000 |
commit | 3280b43ee0fd08655497989df40e540760f24384 (patch) | |
tree | 52031722d1466d5af19c21ea5efba4a727f687f0 | |
parent | 0c2a74d5309f03f87e24b827bacee0ed58d37202 (diff) |
devip: make some symbols static, cleanup
-rw-r--r-- | sys/src/9/ip/ipifc.c | 8 | ||||
-rw-r--r-- | sys/src/9/ip/iproute.c | 2 |
2 files changed, 5 insertions, 5 deletions
diff --git a/sys/src/9/ip/ipifc.c b/sys/src/9/ip/ipifc.c index a208e9ca2..c16e0a660 100644 --- a/sys/src/9/ip/ipifc.c +++ b/sys/src/9/ip/ipifc.c @@ -18,7 +18,7 @@ enum { QMAX = 192*1024-1, }; -Medium *media[Maxmedia] = { 0 }; +static Medium *media[Maxmedia] = { 0 }; void (*multicastreportfn)(Fs*, Ipifc*, uchar*, uchar*, int); /* @@ -285,11 +285,11 @@ mediumunbindifc(Ipifc *ifc) return err; } -char sfixedformat[] = "device %s maxtu %d sendra %d recvra %d mflag %d oflag %d" +static char sfixedformat[] = "device %s maxtu %d sendra %d recvra %d mflag %d oflag %d" " maxraint %d minraint %d linkmtu %d reachtime %d rxmitra %d ttl %d routerlt %d" " pktin %lud pktout %lud errin %lud errout %lud speed %d delay %d\n"; -char slineformat[] = " %-40I %-10M %-40I %-12lud %-12lud\n"; +static char slineformat[] = " %-40I %-10M %-40I %-12lud %-12lud\n"; static int ipifcstate(Conv *c, char *state, int n) @@ -1229,7 +1229,7 @@ ipforme(Fs *f, uchar *addr) /* * find the ifc on same net as the remote system. - * returns the rlocked ifc, otherwise nil. + * returns the rlock'd ifc, otherwise nil. */ Ipifc* findipifc(Fs *f, uchar *local, uchar *remote, int type) diff --git a/sys/src/9/ip/iproute.c b/sys/src/9/ip/iproute.c index 5a59a1a27..1efd806e2 100644 --- a/sys/src/9/ip/iproute.c +++ b/sys/src/9/ip/iproute.c @@ -537,7 +537,7 @@ delroute(Fs *f, uchar *a, uchar *mask, uchar *s, uchar *smask, uchar *gate, int /* * get the outgoing interface for route r, - * interface is returned rlocked. + * interface is returned rlock'd. */ static Ipifc* routefindipifc(Route *r, Fs *f) |