[hackers] [ubase] Fix indentation || sin
commit 4b72fcf421bff69543669327e877be46dc989dd2
Author: sin <sin_AT_2f30.org>
Date: Sat Feb 15 18:18:17 2014 +0000
Fix indentation
diff --git a/swapoff.c b/swapoff.c
index 68b1f02..806d1f0 100644
--- a/swapoff.c
+++ b/swapoff.c
_AT_@ -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
",
- me->mnt_fsname, strerror(errno));
+ me->mnt_fsname, strerror(errno));
ret = EXIT_FAILURE;
}
}
_AT_@ -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
",
- argv[i], strerror(errno));
+ argv[i], strerror(errno));
ret = EXIT_FAILURE;
}
}
diff --git a/swapon.c b/swapon.c
index 278aa73..40e6c9f 100644
--- a/swapon.c
+++ b/swapon.c
_AT_@ -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
",
- me->mnt_fsname, strerror(errno));
+ me->mnt_fsname, strerror(errno));
ret = EXIT_FAILURE;
}
}
_AT_@ -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
",
- argv[i], strerror(errno));
+ argv[i], strerror(errno));
ret = EXIT_FAILURE;
}
}
Received on Sat Feb 15 2014 - 19:27:36 CET
This archive was generated by hypermail 2.3.0
: Sat Feb 15 2014 - 19:36:16 CET