cleanups
[util-vserver.git] / util-vserver / src / vlimit.c
index cfed32a..31b5894 100644 (file)
@@ -75,7 +75,7 @@ showHelp(int fd, char const *cmd, int res)
   WRITE_MSG(fd, "Usage:  ");
   WRITE_STR(fd, cmd);
   WRITE_MSG(fd,
-           " [-c|--ctx <ctx>] [-a|--all] [-MSH  --<nr> <value>]*\n"
+           " [-c <ctx>] [-a|--all] [-MSH  --<nr> <value>]*\n"
            "Please report bugs to " PACKAGE_BUGREPORT "\n");
   exit(res);
 }
@@ -104,7 +104,7 @@ appendLimit(char *ptr, bool do_it, vc_limit_t lim)
     else {
       memcpy(ptr, "0x", 2); ptr += 2;
       
-      ptr += utilvserver_fmt_uint64_base(ptr, lim, 16);
+      ptr += utilvserver_fmt_xuint64(ptr, lim);
       *ptr = ' ';
     }
   }
@@ -169,7 +169,7 @@ int main (int argc, char *argv[])
   int                  set_mask = 0;
   struct vc_rlimit     limits[32];
   bool                 show_all = false;
-  ctx_t                        ctx      = VC_SAMECTX;
+  xid_t                        ctx      = VC_SAMECTX;
 
   {
     size_t             i;
@@ -193,7 +193,7 @@ int main (int argc, char *argv[])
 
       if (set_mask & 1) limits[id].min  = val;
       if (set_mask & 2) limits[id].soft = val;
-      if (set_mask & 4) limits[id].soft = val;
+      if (set_mask & 4) limits[id].hard = val;
 
       lim_mask |= (1<<id);
       set_mask  = 0;