aboutsummaryrefslogtreecommitdiffstats
path: root/sys
diff options
context:
space:
mode:
authorDmitry Vyukov <dvyukov@google.com>2017-01-27 20:53:49 +0100
committerGitHub <noreply@github.com>2017-01-27 20:53:49 +0100
commit9a1fbc16bec5a5d79a9f1ce3a50d3f8916d5daea (patch)
tree355c08ec5cb5bbe7ba1eb6af1bcc7d7031349a63 /sys
parentedb0141529e09ca152803885cd94e1e3915d4ca9 (diff)
parent83cf8e39241b9862d65a96bc7a9c0fb3827661ce (diff)
Merge pull request #121 from google/new_cover
New cover
Diffstat (limited to 'sys')
-rw-r--r--sys/decl.go14
1 files changed, 2 insertions, 12 deletions
diff --git a/sys/decl.go b/sys/decl.go
index 14f1105de..57d788576 100644
--- a/sys/decl.go
+++ b/sys/decl.go
@@ -12,7 +12,6 @@ const ptrSize = 8
type Call struct {
ID int
NR int // kernel syscall number
- CallID int
Name string
CallName string
Args []Type
@@ -598,10 +597,8 @@ func ForeachType(meta *Call, f func(Type)) {
}
var (
- Calls []*Call
- CallCount int
- CallMap = make(map[string]*Call)
- CallID = make(map[string]int)
+ Calls []*Call
+ CallMap = make(map[string]*Call)
)
func init() {
@@ -616,13 +613,6 @@ func init() {
println(c.Name)
panic("duplicate syscall")
}
- id, ok := CallID[c.CallName]
- if !ok {
- id = len(CallID)
- CallID[c.CallName] = id
- }
- c.CallID = id
CallMap[c.Name] = c
}
- CallCount = len(CallID)
}