fedora core 6 1.2949 + vserver 2.2.0
[linux-2.6.git] / kernel / vserver / helper.c
index c336ba2..60f570f 100644 (file)
@@ -3,7 +3,7 @@
  *
  *  Virtual Context Support
  *
- *  Copyright (C) 2004-2005  Herbert Pötzl
+ *  Copyright (C) 2004-2007  Herbert Pötzl
  *
  *  V0.01  basic helper
  *
@@ -106,7 +106,7 @@ long vs_reboot_helper(struct vx_info *vxi, int cmd, void __user *arg)
 }
 
 
-long vs_reboot(unsigned int cmd, void __user *arg)
+long vs_reboot(unsigned int cmd, void __user * arg)
 {
        struct vx_info *vxi = current->vx_info;
        long ret = 0;
@@ -167,8 +167,7 @@ long vs_state_change(struct vx_info *vxi, unsigned int cmd)
                return 0;
        }
 
-       do_vshelper(vshelper_path, argv, envp, 1);
-       return 0;
+       return do_vshelper(vshelper_path, argv, envp, 1);
 }
 
 
@@ -204,7 +203,6 @@ long vs_net_change(struct nx_info *nxi, unsigned int cmd)
                return 0;
        }
 
-       do_vshelper(vshelper_path, argv, envp, 1);
-       return 0;
+       return do_vshelper(vshelper_path, argv, envp, 1);
 }