Signed-off-by: Sami Kerola <kerolasa@xxxxxx> --- sys-utils/fsfreeze.c | 14 ++------------ 1 file changed, 2 insertions(+), 12 deletions(-) diff --git a/sys-utils/fsfreeze.c b/sys-utils/fsfreeze.c index d4d5bd3df..a9b32aa66 100644 --- a/sys-utils/fsfreeze.c +++ b/sys-utils/fsfreeze.c @@ -33,16 +33,6 @@ enum fs_operation { UNFREEZE }; -static int freeze_f(int fd) -{ - return ioctl(fd, FIFREEZE, 0); -} - -static int unfreeze_f(int fd) -{ - return ioctl(fd, FITHAW, 0); -} - static void __attribute__((__noreturn__)) usage(FILE *out) { fprintf(out, USAGE_HEADER); @@ -139,13 +129,13 @@ int main(int argc, char **argv) switch (action) { case FREEZE: - if (freeze_f(fd)) { + if (ioctl(fd, FIFREEZE, 0)) { warn(_("%s: freeze failed"), path); goto done; } break; case UNFREEZE: - if (unfreeze_f(fd)) { + if (ioctl(fd, FITHAW, 0)) { warn(_("%s: unfreeze failed"), path); goto done; } -- 2.11.0 -- To unsubscribe from this list: send the line "unsubscribe util-linux" in the body of a message to majordomo@xxxxxxxxxxxxxxx More majordomo info at http://vger.kernel.org/majordomo-info.html