diff options
author | Christian Muehlhaeuser <muesli@gmail.com> | 2019-07-22 11:12:54 +0200 |
---|---|---|
committer | Pablo Mazzini <pmazzini@gmail.com> | 2019-07-22 10:12:54 +0100 |
commit | f672bc204f35cdafd26aeefa5faf44ab4de7c4dc (patch) | |
tree | 12191ce4a1b7308a7f7b45c1dedeafc8581ec690 /dhcpv6/option_elapsedtime.go | |
parent | 5ab53f483aedb77083fd0622da8f80e462319f8b (diff) |
Fixed unnecessary conversions in dhcpv6 (#305)
No need to convert here.
Diffstat (limited to 'dhcpv6/option_elapsedtime.go')
-rw-r--r-- | dhcpv6/option_elapsedtime.go | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/dhcpv6/option_elapsedtime.go b/dhcpv6/option_elapsedtime.go index 2d65843..194122e 100644 --- a/dhcpv6/option_elapsedtime.go +++ b/dhcpv6/option_elapsedtime.go @@ -21,7 +21,7 @@ func (op *OptElapsedTime) Code() OptionCode { // ToBytes marshals this option to bytes. func (op *OptElapsedTime) ToBytes() []byte { buf := uio.NewBigEndianBuffer(nil) - buf.Write16(uint16(op.ElapsedTime)) + buf.Write16(op.ElapsedTime) return buf.Data() } |