summaryrefslogtreecommitdiff
path: root/sort.go
diff options
context:
space:
mode:
Diffstat (limited to 'sort.go')
-rw-r--r--sort.go5
1 files changed, 3 insertions, 2 deletions
diff --git a/sort.go b/sort.go
index eb2defa..d60ebb8 100644
--- a/sort.go
+++ b/sort.go
@@ -191,9 +191,10 @@ func (pf *File) appendUnique(w io.Writer, blah *MsgName, names map[string]string
var LOCK string = pf.Bases.Lockname
if argv.Mutex {
- LOCK = pf.Bases.Lockname
- } else {
+ // use the mutex lock from the modified protoc.pb.go file
LOCK = "all.Lock"
+ } else {
+ LOCK = pf.Bases.Lockname
}
fmt.Fprintln(w, "// enforces "+BASE+" is unique")