aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authormaximilian attems <max@stro.at>2011-01-26 10:28:49 +0100
committermaximilian attems <max@stro.at>2011-01-26 10:32:55 +0100
commit2776f4db4c5e02f58faf231ef03d69638886a5f0 (patch)
treebd33dcbf6ac1bd7ae21e04637827e661a0aa172e
parent08a1e6815e641ac35786781742d242cfeb69cd36 (diff)
downloadklibc-2776f4db4c5e02f58faf231ef03d69638886a5f0.tar.gz
[klibc] Cleanup various trailing whitespaces
They crept in with time, verified no functional change: ls -l usr/klibc/klibc-*.so -rwxr-xr-x 2 maks maks 71960 Jan 26 10:31 usr/klibc/klibc-r1_A6R6EwMsdze5h5xz93JiNuoM.so Signed-off-by: maximilian attems <max@stro.at>
-rw-r--r--usr/include/klibc/sysconfig.h2
-rw-r--r--usr/kinit/fstype/reiser4_fs.h2
-rw-r--r--usr/kinit/ipconfig/main.c2
-rw-r--r--usr/klibc/tests/fnmatch.c2
-rw-r--r--usr/klibc/tests/getoptlong.c2
-rw-r--r--usr/klibc/tests/select.c2
-rw-r--r--usr/utils/cpio.c18
7 files changed, 14 insertions, 16 deletions
diff --git a/usr/include/klibc/sysconfig.h b/usr/include/klibc/sysconfig.h
index 1fc851a892d92..bf1daf5bc4299 100644
--- a/usr/include/klibc/sysconfig.h
+++ b/usr/include/klibc/sysconfig.h
@@ -169,7 +169,7 @@
*
* mips has it's own definition of statfs, which is
* different from any other 32 bit arch.
- */
+ */
#ifndef _KLIBC_STATFS_F_TYPE_32B
# define _KLIBC_STATFS_F_TYPE_32B 0
#endif
diff --git a/usr/kinit/fstype/reiser4_fs.h b/usr/kinit/fstype/reiser4_fs.h
index fb2fa12718c5f..af6ccc499f926 100644
--- a/usr/kinit/fstype/reiser4_fs.h
+++ b/usr/kinit/fstype/reiser4_fs.h
@@ -8,7 +8,7 @@
* Master super block structure. It is the same for all reiser4 filesystems,
* so, we can declare it here. It contains common for all format fields like
* block size etc.
- */
+ */
struct reiser4_master_sb {
/* Master super block magic. */
char ms_magic[SS_MAGIC_SIZE];
diff --git a/usr/kinit/ipconfig/main.c b/usr/kinit/ipconfig/main.c
index 095a6f04ec1bc..d501bec0cebcc 100644
--- a/usr/kinit/ipconfig/main.c
+++ b/usr/kinit/ipconfig/main.c
@@ -536,7 +536,7 @@ static int parse_device(struct netdev *dev, const char *ip)
case 4:
strncpy(dev->hostname, ip, SYS_NMLN - 1);
dev->hostname[SYS_NMLN - 1] = '\0';
- memcpy(dev->reqhostname, dev->hostname,
+ memcpy(dev->reqhostname, dev->hostname,
SYS_NMLN);
break;
case 5:
diff --git a/usr/klibc/tests/fnmatch.c b/usr/klibc/tests/fnmatch.c
index 415085735b037..ff8d58e6e27af 100644
--- a/usr/klibc/tests/fnmatch.c
+++ b/usr/klibc/tests/fnmatch.c
@@ -11,5 +11,3 @@ int main(int argc, char *argv[])
return match;
}
-
-
diff --git a/usr/klibc/tests/getoptlong.c b/usr/klibc/tests/getoptlong.c
index c1174abc28816..6c019b7e438c1 100644
--- a/usr/klibc/tests/getoptlong.c
+++ b/usr/klibc/tests/getoptlong.c
@@ -11,7 +11,7 @@
#include <getopt.h>
static int foo = 0;
-
+
static const struct option long_options[] = {
{ "first", 1, NULL, 'f' },
{ "second", 0, NULL, 's' },
diff --git a/usr/klibc/tests/select.c b/usr/klibc/tests/select.c
index db75c55d7b54f..ba081122adbb6 100644
--- a/usr/klibc/tests/select.c
+++ b/usr/klibc/tests/select.c
@@ -42,7 +42,7 @@ int main(int argc, char *argv[])
FD_SET(fdz, &readset);
rv = select(FD_SETSIZE, &readset, NULL, NULL, &timeout);
-
+
if (rv != 1 || !FD_ISSET(fdz, &readset) ||
FD_ISSET(fdn, &readset)) {
fprintf(stderr,
diff --git a/usr/utils/cpio.c b/usr/utils/cpio.c
index e9cd0b48da6c1..68918832d1739 100644
--- a/usr/utils/cpio.c
+++ b/usr/utils/cpio.c
@@ -104,7 +104,7 @@ struct new_cpio_header {
char *c_tar_linkname;
};
-/* Total number of bytes read and written for all files.
+/* Total number of bytes read and written for all files.
* Now that many tape drives hold more than 4Gb we need more than 32
* bits to hold input_bytes and output_bytes.
*/
@@ -157,7 +157,7 @@ static void tape_fill_input_buffer(int in_des, int num_bytes)
descriptor OUT_DES and reset `output_size' and `out_buff'.
If `swapping_halfwords' or `swapping_bytes' is set,
do the appropriate swapping first. Our callers have
- to make sure to only set these flags if `output_size'
+ to make sure to only set these flags if `output_size'
is appropriate (a multiple of 4 for `swapping_halfwords',
2 for `swapping_bytes'). The fact that DISK_IO_BLOCK_SIZE
must always be a multiple of 4 helps us (and our callers)
@@ -406,7 +406,7 @@ static char *find_inode_file(unsigned long node_num, unsigned long major_num,
return NULL;
}
-/* Try and create a hard link from FILE_NAME to another file
+/* Try and create a hard link from FILE_NAME to another file
with the given major/minor device number and inode. If no other
file with the same major/minor/inode numbers is known, add this file
to the list of known files and associated major/minor/inode numbers
@@ -481,10 +481,10 @@ try_existing_file(struct new_cpio_header *file_hdr, int in_file_des,
return 0;
}
-/* The newc and crc formats store multiply linked copies of the same file
- in the archive only once. The actual data is attached to the last link
- in the archive, and the other links all have a filesize of 0. When a
- file in the archive has multiple links and a filesize of 0, its data is
+/* The newc and crc formats store multiply linked copies of the same file
+ in the archive only once. The actual data is attached to the last link
+ in the archive, and the other links all have a filesize of 0. When a
+ file in the archive has multiple links and a filesize of 0, its data is
probably "attatched" to another file in the archive, so we can't create
it right away. We have to "defer" creating it until we have created
the file that has the data "attatched" to it. We keep a list of the
@@ -679,8 +679,8 @@ copyin_regular_file(struct new_cpio_header *file_hdr, int in_file_des)
tape_skip_padding(in_file_des, file_hdr->c_filesize);
if (file_hdr->c_nlink > 1) {
- /* (see comment above for how the newc and crc formats
- store multiple links). Now that we have the data
+ /* (see comment above for how the newc and crc formats
+ store multiple links). Now that we have the data
for this file, create any other links to it which
we defered. */
create_defered_links(file_hdr);