summaryrefslogtreecommitdiff
path: root/sim/common/sim-hw.c
diff options
context:
space:
mode:
Diffstat (limited to 'sim/common/sim-hw.c')
-rw-r--r--sim/common/sim-hw.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/sim/common/sim-hw.c b/sim/common/sim-hw.c
index 89fe45e2690..1000aaede62 100644
--- a/sim/common/sim-hw.c
+++ b/sim/common/sim-hw.c
@@ -160,7 +160,7 @@ merge_device_file (struct sim_state *sd,
}
line_nr = 0;
- while (fgets (device_path, sizeof(device_path), description))
+ while (fgets (device_path, sizeof (device_path), description))
{
char *device;
/* check that a complete line was read */
@@ -195,13 +195,13 @@ merge_device_file (struct sim_state *sd,
sim_io_eprintf (sd, "%s:%d: unexpected eof", file_name, line_nr);
return SIM_RC_FAIL;
}
- if (strchr(device_path, '\n') == NULL)
+ if (strchr (device_path, '\n') == NULL)
{
- fclose(description);
+ fclose (description);
sim_io_eprintf (sd, "%s:%d: line to long", file_name, line_nr);
return SIM_RC_FAIL;
}
- *strchr(device_path, '\n') = '\0';
+ *strchr (device_path, '\n') = '\0';
line_nr++;
}
/* parse this line */