ref: 3280b43ee0fd08655497989df40e540760f24384
parent: 0c2a74d5309f03f87e24b827bacee0ed58d37202
author: cinap_lenrek <cinap_lenrek@felloff.net>
date: Sat Nov 18 16:20:05 EST 2023
devip: make some symbols static, cleanup
--- a/sys/src/9/ip/ipifc.c
+++ b/sys/src/9/ip/ipifc.c
@@ -18,7 +18,7 @@
QMAX = 192*1024-1,
};
-Medium *media[Maxmedia] = { 0 };
+static Medium *media[Maxmedia] = { 0 };
void (*multicastreportfn)(Fs*, Ipifc*, uchar*, uchar*, int);
/*
@@ -285,11 +285,11 @@
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 @@
/*
* 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)
--- a/sys/src/9/ip/iproute.c
+++ b/sys/src/9/ip/iproute.c
@@ -537,7 +537,7 @@
/*
* get the outgoing interface for route r,
- * interface is returned rlocked.
+ * interface is returned rlock'd.
*/
static Ipifc*
routefindipifc(Route *r, Fs *f)