aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorThomas White <taw@physics.org>2014-09-24 13:40:20 +0200
committerThomas White <taw@physics.org>2014-09-24 13:40:20 +0200
commit185969c8d8b9f2bd7426c4c2b7e1ee2c3c9fb799 (patch)
tree5cb3a0ad1f7dfbb7c333690125f33e45f414982f /src
parent10f77e1e2f11baae436bb149066625d295ae521a (diff)
Fussiness
Diffstat (limited to 'src')
-rw-r--r--src/im-sandbox.c16
1 files changed, 8 insertions, 8 deletions
diff --git a/src/im-sandbox.c b/src/im-sandbox.c
index 6c712ba3..5589c444 100644
--- a/src/im-sandbox.c
+++ b/src/im-sandbox.c
@@ -178,8 +178,8 @@ static struct filename_plus_event *get_pattern(FILE *fh, int config_basename,
len = strlen(prefix)+strlen(filename_buf)+1;
- /* Round the length of the buffer, too keep Valgrind quiet when it gets
- * given to write() a bit later on */
+ /* Round the length of the buffer, to keep Valgrind quiet when
+ * it gets given to write() a bit later on */
len += 4 - (len % 4);
if ( filename == NULL ) {
@@ -199,11 +199,11 @@ static struct filename_plus_event *get_pattern(FILE *fh, int config_basename,
ev_list = initialize_event_list();
- if ( scan_check == 1) {
+ if ( scan_check == 1 ) {
hdfile = hdfile_open(filename);
if ( hdfile == NULL ) {
- ERROR("Failed to open file %s\n", filename);
+ ERROR("Failed to open %s\n", filename);
free(line);
return NULL;
}
@@ -232,6 +232,7 @@ static struct filename_plus_event *get_pattern(FILE *fh, int config_basename,
event_index = 0;
}
+
} else {
event_index = 0;
@@ -310,8 +311,8 @@ static int read_fpe_data(struct buffer_data *bd)
/* Now the block's been parsed, it should be
* forgotten about */
memmove(bd->rbuffer,
- bd->rbuffer + line_end + 1,
- bd->rbuflen - line_end - 1);
+ bd->rbuffer + line_end + 1,
+ bd->rbuflen - line_end - 1);
/* Subtract the number of bytes removed */
bd->rbufpos = bd->rbufpos - line_end - 1;
@@ -384,8 +385,7 @@ static void run_work(const struct index_args *iargs,
error = 0;
pargs.filename_p_e = initialize_filename_plus_event();
- rval =0;
-
+ rval = 0;
do {
fd_set fds;