aboutsummaryrefslogtreecommitdiffstats
path: root/pkg/declextract/interface.go
diff options
context:
space:
mode:
Diffstat (limited to 'pkg/declextract/interface.go')
-rw-r--r--pkg/declextract/interface.go5
1 files changed, 3 insertions, 2 deletions
diff --git a/pkg/declextract/interface.go b/pkg/declextract/interface.go
index f386f398b..73806ec4b 100644
--- a/pkg/declextract/interface.go
+++ b/pkg/declextract/interface.go
@@ -8,6 +8,7 @@ import (
"slices"
"strings"
+ "github.com/google/syzkaller/pkg/clangtool"
"github.com/google/syzkaller/pkg/cover"
)
@@ -55,7 +56,7 @@ func (ctx *context) noteInterface(iface *Interface) {
}
func (ctx *context) finishInterfaces() {
- ctx.interfaces = sortAndDedupSlice(ctx.interfaces)
+ ctx.interfaces = clangtool.SortAndDedupSlice(ctx.interfaces)
count := make(map[string]int)
for _, iface := range ctx.interfaces {
count[iface.Type+iface.Name]++
@@ -77,7 +78,7 @@ func (ctx *context) finishInterfaces() {
iface.Access = AccessUnknown
}
}
- ctx.interfaces = sortAndDedupSlice(ctx.interfaces)
+ ctx.interfaces = clangtool.SortAndDedupSlice(ctx.interfaces)
}
func (ctx *context) processFunctions() {