Skip to content

Commit

Permalink
Use the right type when calling ykpiv_get_serial (C.uint32_t vs C.uint)
Browse files Browse the repository at this point in the history
  • Loading branch information
LouisBrunner committed Mar 17, 2020
1 parent 22b83c2 commit eb9c2d3
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion ykpiv.go
Expand Up @@ -203,7 +203,7 @@ func (y Yubikey) Version() ([]byte, error) {
}

func (y Yubikey) Serial() (uint32, error) {
serial := C.uint(0)
serial := C.uint32_t(0)
if err := getError(C.ykpiv_get_serial(y.state, &serial), "get_serial"); err != nil {
return 0, err
}
Expand Down

0 comments on commit eb9c2d3

Please sign in to comment.