aboutsummaryrefslogtreecommitdiff
path: root/utils
diff options
context:
space:
mode:
authorDouglas Gilbert <dgilbert@interlog.com>2008-06-04 18:56:15 +0000
committerDouglas Gilbert <dgilbert@interlog.com>2008-06-04 18:56:15 +0000
commit1ed38622e036161089f63939413f673c79ac81f0 (patch)
treecfafc43e27e6e88e7e3da3e36dcee3c7859d0fcf /utils
parente435ab5aeb5b54382ded4a6525c2b5f4c4956f72 (diff)
downloadsg3_utils-1ed38622e036161089f63939413f673c79ac81f0.tar.gz
remove trailing spaces from various source files
git-svn-id: https://svn.bingwo.ca/repos/sg3_utils/trunk@178 6180dd3e-e324-4e3e-922d-17de1ae2f315
Diffstat (limited to 'utils')
-rw-r--r--utils/hxascdmp.c16
1 files changed, 8 insertions, 8 deletions
diff --git a/utils/hxascdmp.c b/utils/hxascdmp.c
index fb636950..a7ba2020 100644
--- a/utils/hxascdmp.c
+++ b/utils/hxascdmp.c
@@ -54,16 +54,16 @@ dStrHex(const char* str, int len, long start)
char buff[MAX_LINE_LENGTH];
long a = start;
const int bpstart = BINARY_START_COL;
- const int cpstart = BINARY_START_COL +
+ const int cpstart = BINARY_START_COL +
((CHARS_PER_HEX_BYTE * bytes_per_line) + 1) + 5;
int cpos = cpstart;
int bpos = bpstart;
int midline_space = (bytes_per_line / 2) + 1;
int i, k, line_length;
-
- if (len <= 0)
+
+ if (len <= 0)
return;
- line_length = BINARY_START_COL +
+ line_length = BINARY_START_COL +
(bytes_per_line * (1 + CHARS_PER_HEX_BYTE)) + 7;
if (line_length >= MAX_LINE_LENGTH) {
fprintf(stderr, "bytes_per_line causes maximum line length of %d "
@@ -112,10 +112,10 @@ dStrHexOnly(const char* str, int len, long start)
int bpos = bpstart;
int midline_space = (bytes_per_line / 2) + 1;
int i, k, line_length;
-
- if (len <= 0)
+
+ if (len <= 0)
return;
- line_length = BINARY_START_COL +
+ line_length = BINARY_START_COL +
(bytes_per_line * CHARS_PER_HEX_BYTE) + 4;
if (line_length >= MAX_LINE_LENGTH) {
fprintf(stderr, "bytes_per_line causes maximum line length of %d "
@@ -228,7 +228,7 @@ main(int argc, const char ** argv)
ret = 1;
} else {
start = 0;
- printf("%shex dump of file: %s\n",
+ printf("%shex dump of file: %s\n",
(doHex ? "" : "ASCII "), argv[k]);
while ((res = read(inFile, buff, num)) > 0) {
if (doHex)