[CRIU] [PATCH 1/4] Trivial whitespace cleanup
Kir Kolyshkin
kir at openvz.org
Mon Jan 30 12:18:37 EST 2012
Cleaning a few space-at-EOL occurences, plus one spaces-instead-of-tab.
Found using:
git grep -n '[[:space:]]$'
git grep -n ' '
Signed-off-by: Kir Kolyshkin <kir at openvz.org>
---
cr-show.c | 8 ++++----
crtools.c | 2 +-
include/inet_diag.h | 2 +-
parasite-syscall.c | 2 +-
parasite.c | 2 +-
test/zdtm/live/static/sockets00.c | 4 ++--
6 files changed, 10 insertions(+), 10 deletions(-)
diff --git a/cr-show.c b/cr-show.c
index c012e69..267380a 100644
--- a/cr-show.c
+++ b/cr-show.c
@@ -59,7 +59,7 @@ static void show_shmem(int fd_shmem)
while (1) {
int ret;
-
+
ret = read_img_eof(fd_shmem, &e);
if (ret <= 0)
goto out;
@@ -78,7 +78,7 @@ static void show_files(int fd_files)
while (1) {
int ret;
-
+
ret = read_img_eof(fd_files, &e);
if (ret <= 0)
goto out;
@@ -112,7 +112,7 @@ static void show_pipes(int fd_pipes)
while (1) {
int ret;
-
+
ret = read_img_eof(fd_pipes, &e);
if (ret <= 0)
goto out;
@@ -211,7 +211,7 @@ static void show_sigacts(int fd_sigacts)
while (1) {
int ret;
-
+
ret = read_img_eof(fd_sigacts, &e);
if (ret <= 0)
goto out;
diff --git a/crtools.c b/crtools.c
index cde561b..957acbc 100644
--- a/crtools.c
+++ b/crtools.c
@@ -150,7 +150,7 @@ struct cr_fdset *cr_fdset_open(int pid, unsigned long use_mask, struct cr_fdset
if (ret && errno != ENOENT) {
pr_perror("Unable to unlink %s (%s)\n", path, strerror(errno));
goto err;
- }
+ }
ret = open(path, O_RDWR | O_CREAT | O_EXCL, CR_FD_PERM);
if (ret < 0) {
diff --git a/include/inet_diag.h b/include/inet_diag.h
index fed8c61..395e715 100644
--- a/include/inet_diag.h
+++ b/include/inet_diag.h
@@ -55,7 +55,7 @@ enum {
* to offset cc+"yes" or to offset cc+"no". "yes" is supposed to be
* length of the command and its arguments.
*/
-
+
struct inet_diag_bc_op {
unsigned char code;
unsigned char yes;
diff --git a/parasite-syscall.c b/parasite-syscall.c
index 6b3e0e7..480e07e 100644
--- a/parasite-syscall.c
+++ b/parasite-syscall.c
@@ -199,7 +199,7 @@ retry_signal:
ret = 0;
/*
- * Our code is done.
+ * Our code is done.
*/
jerr(ptrace(PTRACE_INTERRUPT, pid, NULL, NULL), err_restore_full);
jerr(ptrace(PTRACE_CONT, pid, NULL, NULL), err_restore_full);
diff --git a/parasite.c b/parasite.c
index b2bbba6..5ef08d8 100644
--- a/parasite.c
+++ b/parasite.c
@@ -251,7 +251,7 @@ static int dump_sigact(struct parasite_dump_file_args *args)
sys_lseek(fd, MAGIC_OFFSET, SEEK_SET);
- for (sig = 1; sig < SIGMAX; sig++) {
+ for (sig = 1; sig < SIGMAX; sig++) {
if (sig == SIGKILL || sig == SIGSTOP)
continue;
diff --git a/test/zdtm/live/static/sockets00.c b/test/zdtm/live/static/sockets00.c
index b07ddc2..376347b 100644
--- a/test/zdtm/live/static/sockets00.c
+++ b/test/zdtm/live/static/sockets00.c
@@ -55,7 +55,7 @@ int main(int argc, char *argv[])
ssk_icon[1] = socket(AF_UNIX, SOCK_STREAM, 0);
if (ssk_icon[0] < 0 || ssk_icon[1] < 0) {
fail("socket\n");
- exit(1);
+ exit(1);
}
ret = bind(ssk_icon[0], &addr, addrlen);
@@ -103,7 +103,7 @@ int main(int argc, char *argv[])
ret = accept(ssk_icon[0], NULL, NULL);
if (ret < 0) {
fail("accept\n");
- exit(1);
+ exit(1);
} else
ssk_icon[0] = ret;
--
1.7.4.4
More information about the CRIU
mailing list