summaryrefslogtreecommitdiff
path: root/chpst.c
diff options
context:
space:
mode:
Diffstat (limited to 'chpst.c')
-rw-r--r--chpst.c6
1 files changed, 4 insertions, 2 deletions
diff --git a/chpst.c b/chpst.c
index 2b9eb01..8de213f 100644
--- a/chpst.c
+++ b/chpst.c
@@ -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;