diff options
Diffstat (limited to 'src/nslcd_proto/util/struct_null_backend.go.sh')
-rwxr-xr-x | src/nslcd_proto/util/struct_null_backend.go.sh | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/nslcd_proto/util/struct_null_backend.go.sh b/src/nslcd_proto/util/struct_null_backend.go.sh index 9d1c1b0..1714e9a 100755 --- a/src/nslcd_proto/util/struct_null_backend.go.sh +++ b/src/nslcd_proto/util/struct_null_backend.go.sh @@ -8,7 +8,7 @@ import p "nslcd_proto" type NullBackend struct{} -$(< "$interface" sed -rn 's/^\t([^(]+)\(Ucred, ([^)]+)\) (\S+)_Enumerator$/func (o NullBackend) \1(p.Ucred, p.\2) p.\3_Enumerator { return \3_Ø{} }/p') +$(< "$interface" sed -rn 's/^\t([^(]+)\(Ucred, ([^)]+)\) <-chan (\S+)$/func (o NullBackend) \1(p.Ucred, p.\2) <-chan p.\3 { r := make(chan p.\3); close(r); return r }/p') var _ p.Backend = NullBackend{} EOF |