summaryrefslogtreecommitdiffstats
path: root/sys-utils/fsfreeze.c
diff options
context:
space:
mode:
Diffstat (limited to 'sys-utils/fsfreeze.c')
-rw-r--r--sys-utils/fsfreeze.c14
1 files changed, 2 insertions, 12 deletions
diff --git a/sys-utils/fsfreeze.c b/sys-utils/fsfreeze.c
index 727319a66..a25eaff20 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);
@@ -138,13 +128,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;
}