diff options
| author | jsing <> | 2018-03-15 16:21:22 +0000 |
|---|---|---|
| committer | jsing <> | 2018-03-15 16:21:22 +0000 |
| commit | 79e16ec16e7b33a23d84302f1123f33d1d84c327 (patch) | |
| tree | 2693d9dfb33733d501f6e4509e8e3ce4d48bd8ba /src/regress/lib/libtls | |
| parent | e7fc7f263929c8defc5598bc7abef4c0eefdd102 (diff) | |
| download | openbsd-79e16ec16e7b33a23d84302f1123f33d1d84c327.tar.gz openbsd-79e16ec16e7b33a23d84302f1123f33d1d84c327.tar.bz2 openbsd-79e16ec16e7b33a23d84302f1123f33d1d84c327.zip | |
Fix a format string issue that Go 1.10 complains about.
Diffstat (limited to 'src/regress/lib/libtls')
| -rw-r--r-- | src/regress/lib/libtls/gotls/tls.go | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/regress/lib/libtls/gotls/tls.go b/src/regress/lib/libtls/gotls/tls.go index 961dde1308..be75e71f4f 100644 --- a/src/regress/lib/libtls/gotls/tls.go +++ b/src/regress/lib/libtls/gotls/tls.go | |||
| @@ -31,7 +31,7 @@ type ProtocolVersion uint32 | |||
| 31 | func (pv ProtocolVersion) String() string { | 31 | func (pv ProtocolVersion) String() string { |
| 32 | name, ok := protocolNames[pv] | 32 | name, ok := protocolNames[pv] |
| 33 | if !ok { | 33 | if !ok { |
| 34 | return fmt.Sprintf("unknown protocol version %x", pv) | 34 | return fmt.Sprintf("unknown protocol version %x", uint32(pv)) |
| 35 | } | 35 | } |
| 36 | return name | 36 | return name |
| 37 | } | 37 | } |
