taskset: fix incorrect rage spec and allow 0xXXX input

ping: shave off 60 bytes
This commit is contained in:
Denis Vlasenko
2007-01-29 18:03:54 +00:00
parent 86811803e3
commit e935602ff5
2 changed files with 31 additions and 38 deletions

View File

@@ -62,7 +62,7 @@ int taskset_main(int argc, char** argv)
aff = *++argv; /* <aff> <cmd...> */
if (aff) {
unsigned i = 0;
unsigned long l = xstrtol_range(aff, 16, 1, ULONG_MAX);
unsigned long l = xstrtol_range(aff, 0, 1, LONG_MAX);
CPU_ZERO(&new_mask);
while (i < CPU_SETSIZE && l >= (1<<i)) {