aboutsummaryrefslogtreecommitdiff
path: root/src/helper/ioutil.c
diff options
context:
space:
mode:
authorzwelch <zwelch@b42882b7-edfa-0310-969c-e2dbd0fdcd60>2009-06-23 22:47:42 +0000
committerzwelch <zwelch@b42882b7-edfa-0310-969c-e2dbd0fdcd60>2009-06-23 22:47:42 +0000
commitdc575dc5bf8cb597a0e9a47794744ae6b1928087 (patch)
tree325ee3b79fe5801fd11a9cfa5e848ea15a52d5eb /src/helper/ioutil.c
parentf90d8fa45f2d4c9d4b7990f198b232ee55cbb4e1 (diff)
downloadriscv-openocd-dc575dc5bf8cb597a0e9a47794744ae6b1928087.zip
riscv-openocd-dc575dc5bf8cb597a0e9a47794744ae6b1928087.tar.gz
riscv-openocd-dc575dc5bf8cb597a0e9a47794744ae6b1928087.tar.bz2
Remove whitespace that occurs before ')'.
- Replace '[ \t]*[)]' with ')'. git-svn-id: svn://svn.berlios.de/openocd/trunk@2377 b42882b7-edfa-0310-969c-e2dbd0fdcd60
Diffstat (limited to 'src/helper/ioutil.c')
-rw-r--r--src/helper/ioutil.c24
1 files changed, 12 insertions, 12 deletions
diff --git a/src/helper/ioutil.c b/src/helper/ioutil.c
index 2bde024..e03f133 100644
--- a/src/helper/ioutil.c
+++ b/src/helper/ioutil.c
@@ -199,7 +199,7 @@ int handle_meminfo_command(struct command_context_s *cmd_ctx, char *cmd, char **
}
prev = info.fordblks;
- command_print(cmd_ctx, "Available ram: %d", info.fordblks );
+ command_print(cmd_ctx, "Available ram: %d", info.fordblks);
return ERROR_OK;
}
@@ -325,34 +325,34 @@ void copyfile(char *name2, char *name1)
fd1 = open(name1, O_WRONLY | O_CREAT, 0664);
if (fd1 < 0)
- SHOW_RESULT(open, fd1 );
+ SHOW_RESULT(open, fd1);
fd2 = open(name2, O_RDONLY);
if (fd2 < 0)
- SHOW_RESULT(open, fd2 );
+ SHOW_RESULT(open, fd2);
for (;;)
{
- done = read(fd2, buf, IOSIZE );
+ done = read(fd2, buf, IOSIZE);
if (done < 0)
{
- SHOW_RESULT(read, done );
+ SHOW_RESULT(read, done);
break;
}
- if (done == 0 ) break;
+ if (done == 0) break;
wrote = write(fd1, buf, done);
- if (wrote != done ) SHOW_RESULT(write, wrote );
+ if (wrote != done) SHOW_RESULT(write, wrote);
- if (wrote != done ) break;
+ if (wrote != done) break;
}
err = close(fd1);
- if (err < 0 ) SHOW_RESULT(close, err );
+ if (err < 0) SHOW_RESULT(close, err);
err = close(fd2);
- if (err < 0 ) SHOW_RESULT(close, err );
+ if (err < 0) SHOW_RESULT(close, err);
}
@@ -372,7 +372,7 @@ void copydir(char *name, char *destdir)
}
dirp = opendir(name);
- if (dirp == NULL ) SHOW_RESULT(opendir, -1 );
+ if (dirp == NULL) SHOW_RESULT(opendir, -1);
for (;;)
{
@@ -421,7 +421,7 @@ void copydir(char *name, char *destdir)
}
err = closedir(dirp);
- if (err < 0 ) SHOW_RESULT(stat, err );
+ if (err < 0) SHOW_RESULT(stat, err);
}