ref: 8d36cd8d8aa72e9897f39585d1655650b0ce2589
parent: f42e53655e9a2a1b516326f6522fba88db59a81c
author: cinap_lenrek <[email protected]>
date: Fri Jun 14 06:30:50 EDT 2019
devdtracy: make machlocks and dtktab static
--- a/sys/src/9/port/devdtracy.c
+++ b/sys/src/9/port/devdtracy.c
@@ -7,7 +7,7 @@
#include <dtracy.h>
-Lock *machlocks;
+static Lock *machlocks;
typedef struct DTKChan DTKChan;
typedef struct DTKAux DTKAux;
@@ -76,8 +76,8 @@
CMgo, "go", 1,
};
-DTKChan **dtktab;
-int ndtktab;
+static DTKChan **dtktab;
+static int ndtktab;
static DTKChan *
dtklook(vlong n)
@@ -555,7 +555,7 @@
}
}
-int peek(char *, char *, int);
+extern int peek(char *, char *, int);
int
dtpeek(uvlong addr, void *buf, int len)