summaryrefslogtreecommitdiff
path: root/src/helper/ioutil.c
diff options
context:
space:
mode:
authorzwelch <zwelch@b42882b7-edfa-0310-969c-e2dbd0fdcd60>2009-06-23 22:46:23 +0000
committerzwelch <zwelch@b42882b7-edfa-0310-969c-e2dbd0fdcd60>2009-06-23 22:46:23 +0000
commitf90d8fa45f2d4c9d4b7990f198b232ee55cbb4e1 (patch)
tree66070c6e1e7a5a72c1d1af437e0e2c49a410fa7b /src/helper/ioutil.c
parent6d1d58a1fc3dfd60e9cac89460b5a6e438d11efa (diff)
downloadopenocd+libswd-f90d8fa45f2d4c9d4b7990f198b232ee55cbb4e1.tar.gz
openocd+libswd-f90d8fa45f2d4c9d4b7990f198b232ee55cbb4e1.tar.bz2
openocd+libswd-f90d8fa45f2d4c9d4b7990f198b232ee55cbb4e1.tar.xz
openocd+libswd-f90d8fa45f2d4c9d4b7990f198b232ee55cbb4e1.zip
Remove whitespace that occurs after '('.
- Replace '([ \t]*' with '('. git-svn-id: svn://svn.berlios.de/openocd/trunk@2376 b42882b7-edfa-0310-969c-e2dbd0fdcd60
Diffstat (limited to 'src/helper/ioutil.c')
-rw-r--r--src/helper/ioutil.c20
1 files changed, 10 insertions, 10 deletions
diff --git a/src/helper/ioutil.c b/src/helper/ioutil.c
index 2a74ab31..2bde024e 100644
--- a/src/helper/ioutil.c
+++ b/src/helper/ioutil.c
@@ -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 );
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 );
}