Skip to content

Commit

Permalink
Enforce newline at the end of files
Browse files Browse the repository at this point in the history
Ensure that all the files conform to the standard of having a newline
character at the end.

Link: https://medium.com/@alexey.inkin/how-to-force-newline-at-end-of-files-and-why-you-should-do-it-fdf76d1d090e
  • Loading branch information
visitorckw committed Mar 6, 2024
1 parent dd6a761 commit 5d1b7f1
Show file tree
Hide file tree
Showing 5 changed files with 5 additions and 5 deletions.
2 changes: 1 addition & 1 deletion console.c
Original file line number Diff line number Diff line change
Expand Up @@ -674,4 +674,4 @@ bool run_console(char *infile_name)
}

return err_cnt == 0;
}
}
2 changes: 1 addition & 1 deletion linenoise.c
Original file line number Diff line number Diff line change
Expand Up @@ -1383,4 +1383,4 @@ int line_history_load(const char *filename)
}
fclose(fp);
return 0;
}
}
2 changes: 1 addition & 1 deletion linenoise.h
Original file line number Diff line number Diff line change
Expand Up @@ -76,4 +76,4 @@ void line_mask_mode_disable(void);
}
#endif

#endif /* __LINENOISE_H */
#endif /* __LINENOISE_H */
2 changes: 1 addition & 1 deletion web.c
Original file line number Diff line number Diff line change
Expand Up @@ -267,4 +267,4 @@ int web_eventmux(char *buf)

FD_CLR(STDIN_FILENO, &listenset);
return 0;
}
}
2 changes: 1 addition & 1 deletion web.h
Original file line number Diff line number Diff line change
Expand Up @@ -11,4 +11,4 @@ void web_send(int out_fd, char *buffer);

int web_eventmux(char *buf);

#endif
#endif

0 comments on commit 5d1b7f1

Please sign in to comment.