1
0
mirror of https://github.com/rancher/os.git synced 2025-07-31 22:47:16 +00:00

Merge pull request #559 from luxas/32bit

Fixed 32-bit issue in power.go
This commit is contained in:
Darren Shepherd 2015-09-18 15:56:14 -07:00
commit e451abd532

View File

@ -129,7 +129,7 @@ func Halt() {
reboot(syscall.LINUX_REBOOT_CMD_HALT)
}
func reboot(code int) {
func reboot(code uint) {
err := shutDownContainers()
if err != nil {
log.Error(err)
@ -137,7 +137,7 @@ func reboot(code int) {
syscall.Sync()
err = syscall.Reboot(code)
err = syscall.Reboot(int(code))
if err != nil {
log.Fatal(err)
}