mirror of git://git.suckless.org/sbase
prefer swap device option
This commit is contained in:
parent
9938320eea
commit
c41c38649c
5
swapon.c
5
swapon.c
|
@ -10,7 +10,7 @@
|
|||
static void
|
||||
usage(void)
|
||||
{
|
||||
eprintf("usage: %s [-d] [-a] device\n", argv0);
|
||||
eprintf("usage: %s [-dp] [-a] device\n", argv0);
|
||||
}
|
||||
|
||||
int
|
||||
|
@ -28,6 +28,9 @@ main(int argc, char *argv[])
|
|||
case 'd':
|
||||
flags |= SWAP_FLAG_DISCARD;
|
||||
break;
|
||||
case 'p':
|
||||
flags |= SWAP_FLAG_PREFER;
|
||||
break;
|
||||
default:
|
||||
usage();
|
||||
} ARGEND;
|
||||
|
|
Loading…
Reference in New Issue