]> git.ipfire.org Git - thirdparty/util-linux.git/commitdiff
blkdiscard: fix err->errx()
authorKarel Zak <kzak@redhat.com>
Tue, 14 Oct 2014 10:14:05 +0000 (12:14 +0200)
committerKarel Zak <kzak@redhat.com>
Tue, 14 Oct 2014 10:14:05 +0000 (12:14 +0200)
Signed-off-by: Karel Zak <kzak@redhat.com>
sys-utils/blkdiscard.c

index 2f22af7249c37b0ccdb66fd4924951a2f751c44e..1eb2b2857f9c125c9d30003da8c2612fd0907efa 100644 (file)
@@ -150,7 +150,7 @@ int main(int argc, char **argv)
 
        /* is the range end behind the end of the device ?*/
        if (range[0] > blksize)
-               err(EXIT_FAILURE, _("%s: offset is greater than device size"), path);
+               errx(EXIT_FAILURE, _("%s: offset is greater than device size"), path);
        end = range[0] + range[1];
        if (end < range[0] || end > blksize)
                range[1] = blksize - range[0];