Skip to content
Snippets Groups Projects
Commit dba57955 authored by dx's avatar dx
Browse files

style(config): clang-format wants these lines to be joined now i guess

parent bd490819
No related branches found
No related tags found
No related merge requests found
...@@ -316,23 +316,15 @@ void load_config(void) ...@@ -316,23 +316,15 @@ void load_config(void)
if (!seek_back) { if (!seek_back) {
break; break;
} }
int rc = epic_file_seek( int rc = epic_file_seek(fd, seek_back, SEEK_CUR);
fd,
seek_back,
SEEK_CUR
);
if (rc < 0) { if (rc < 0) {
LOG_ERR("card10.cfg", LOG_ERR("card10.cfg", "seek failed, aborting");
"seek failed, aborting");
return; return;
} }
char newline; char newline;
rc = epic_file_read( rc = epic_file_read(fd, &newline, 1);
fd, &newline, 1
);
if (rc < 0 || newline != '\n') { if (rc < 0 || newline != '\n') {
LOG_ERR("card10.cfg", LOG_ERR("card10.cfg", "seek failed, aborting");
"seek failed, aborting");
LOG_DEBUG( LOG_DEBUG(
"card10.cfg", "card10.cfg",
"seek failed at read-back of newline: rc: %d read: %d", "seek failed at read-back of newline: rc: %d read: %d",
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment