mirror of https://github.com/restic/restic.git
Match ParseInt return type.
This commit is contained in:
parent
346c0c0c58
commit
2291e70322
|
@ -9,7 +9,7 @@ import (
|
||||||
|
|
||||||
// uidGidInt returns uid, gid of the user as a number.
|
// uidGidInt returns uid, gid of the user as a number.
|
||||||
func uidGidInt(u user.User) (uid, gid uint32, err error) {
|
func uidGidInt(u user.User) (uid, gid uint32, err error) {
|
||||||
var ui, gi int
|
var ui, gi int64
|
||||||
ui, err = strconv.ParseInt(u.Uid, 10, 32)
|
ui, err = strconv.ParseInt(u.Uid, 10, 32)
|
||||||
if err != nil {
|
if err != nil {
|
||||||
return
|
return
|
||||||
|
|
Loading…
Reference in New Issue