changelog shortlog tags branches files raw gz bz2 help

Mercurial > hg > plan9front / changeset: devdtracy: make machlocks and dtktab static

changeset 7269: df67aba62834
parent 7268: cbd1f567e273
child 7270: f50c70dce6ad
author: cinap_lenrek@felloff.net
date: Fri, 14 Jun 2019 10:30:50 +0200
files: sys/src/9/port/devdtracy.c
description: devdtracy: make machlocks and dtktab static
     1.1--- a/sys/src/9/port/devdtracy.c
     1.2+++ b/sys/src/9/port/devdtracy.c
     1.3@@ -7,7 +7,7 @@
     1.4 
     1.5 #include	<dtracy.h>
     1.6 
     1.7-Lock *machlocks;
     1.8+static Lock *machlocks;
     1.9 
    1.10 typedef struct DTKChan DTKChan;
    1.11 typedef struct DTKAux DTKAux;
    1.12@@ -76,8 +76,8 @@ static Cmdtab dtracyctlmsg[] = {
    1.13 	CMgo,		"go",		1,
    1.14 };
    1.15 
    1.16-DTKChan **dtktab;
    1.17-int ndtktab;
    1.18+static DTKChan **dtktab;
    1.19+static int ndtktab;
    1.20 
    1.21 static DTKChan *
    1.22 dtklook(vlong n)
    1.23@@ -555,7 +555,7 @@ dtgetvar(int v)
    1.24 	}
    1.25 }
    1.26 
    1.27-int peek(char *, char *, int);
    1.28+extern int peek(char *, char *, int);
    1.29 
    1.30 int
    1.31 dtpeek(uvlong addr, void *buf, int len)