diff options
Diffstat (limited to 'chpst.c')
-rw-r--r-- | chpst.c | 6 |
1 files changed, 4 insertions, 2 deletions
@@ -309,12 +309,14 @@ int main(int argc, char **argv) { | |||
309 | case 'n': | 309 | case 'n': |
310 | switch (*optarg) { | 310 | switch (*optarg) { |
311 | case '-': | 311 | case '-': |
312 | if (optarg[scan_ulong(++optarg, &ul)]) usage(); nicelvl =ul; | 312 | if (optarg[scan_ulong(++optarg, &ul)]) usage(); |
313 | nicelvl =ul; | ||
313 | nicelvl *=-1; | 314 | nicelvl *=-1; |
314 | break; | 315 | break; |
315 | case '+': ++optarg; | 316 | case '+': ++optarg; |
316 | default: | 317 | default: |
317 | if (optarg[scan_ulong(optarg, &ul)]) usage(); nicelvl =ul; | 318 | if (optarg[scan_ulong(optarg, &ul)]) usage(); |
319 | nicelvl =ul; | ||
318 | break; | 320 | break; |
319 | } | 321 | } |
320 | break; | 322 | break; |