]> git.ipfire.org Git - thirdparty/util-linux.git/commit
renice: avoid having same lines of code twice
authorSami Kerola <kerolasa@iki.fi>
Fri, 5 Sep 2014 22:33:16 +0000 (23:33 +0100)
committerSami Kerola <kerolasa@iki.fi>
Fri, 19 Sep 2014 18:31:13 +0000 (19:31 +0100)
commit00b490f00239d3fa5a29cf627dc58679fb01210e
treeded0405eae1a19d8f1c10cb43d89bbd8d67b13e6
parent0bb01bb0b7fc05d7eeb8a0117bc8fbecf54a88ce
renice: avoid having same lines of code twice

Add getprio() function to avoid duplication of a simple task.

Reviewed-by: Karel Zak <kzak@redhat.com>
Signed-off-by: Sami Kerola <kerolasa@iki.fi>
sys-utils/renice.c