commit 4b72fcf421bff69543669327e877be46dc989dd2
parent 422f400c2182ef0cdcdf0e237aac2bb9a5a9dd03
Author: sin <sin@2f30.org>
Date: Sat, 15 Feb 2014 18:18:17 +0000
Fix indentation
Diffstat:
2 files changed, 5 insertions(+), 5 deletions(-)
diff --git a/swapoff.c b/swapoff.c
@@ -40,7 +40,7 @@ main(int argc, char *argv[])
if (strcmp(me->mnt_type, MNTTYPE_SWAP) == 0) {
if (swapoff(me->mnt_fsname) < 0) {
fprintf(stderr, "swapoff %s: %s\n",
- me->mnt_fsname, strerror(errno));
+ me->mnt_fsname, strerror(errno));
ret = EXIT_FAILURE;
}
}
@@ -50,7 +50,7 @@ main(int argc, char *argv[])
for (i = 0; i < argc; i++) {
if (swapoff(argv[i]) < 0) {
fprintf(stderr, "swapoff %s: %s\n",
- argv[i], strerror(errno));
+ argv[i], strerror(errno));
ret = EXIT_FAILURE;
}
}
diff --git a/swapon.c b/swapon.c
@@ -45,10 +45,10 @@ main(int argc, char *argv[])
fp = setmntent("/etc/fstab", "r");
while ((me = getmntent(fp)) != NULL) {
if (strcmp(me->mnt_type, MNTTYPE_SWAP) == 0
- && (hasmntopt(me, MNTOPT_NOAUTO) == NULL)) {
+ && (hasmntopt(me, MNTOPT_NOAUTO) == NULL)) {
if (swapon(me->mnt_fsname, flags) < 0) {
fprintf(stderr, "swapon %s: %s\n",
- me->mnt_fsname, strerror(errno));
+ me->mnt_fsname, strerror(errno));
ret = EXIT_FAILURE;
}
}
@@ -58,7 +58,7 @@ main(int argc, char *argv[])
for (i = 0; i < argc; i++) {
if (swapon(argv[i], flags) < 0) {
fprintf(stderr, "swapon %s: %s\n",
- argv[i], strerror(errno));
+ argv[i], strerror(errno));
ret = EXIT_FAILURE;
}
}