commit 59a2d87ee14a416b3151c096051d736a1e8f3305
parent eaa1cc2737207d5ab03ccf4ca63c7cfb63d3f1e6
Author: aabacchus <ben@bvnf.space>
Date: Sun, 24 Oct 2021 00:13:46 +0100
formatting
Diffstat:
M | irC.c | | | 14 | +++++++------- |
1 file changed, 7 insertions(+), 7 deletions(-)
diff --git a/irC.c b/irC.c
@@ -3,17 +3,17 @@
* Author: Ben Fuller
*
*/
-#include <stdio.h>
-#include <errno.h>
#include <ctype.h>
+#include <errno.h>
+#include <netdb.h>
#include <poll.h>
-#include <sys/socket.h>
-#include <sys/types.h>
#include <stdarg.h>
+#include <stdio.h>
#include <stdlib.h>
#include <string.h>
+#include <sys/socket.h>
+#include <sys/types.h>
#include <unistd.h>
-#include <netdb.h>
#define BUF_LEN 1024
@@ -91,7 +91,7 @@ int main(int argc, char *argv[]) {
}
free(line);
continue;
- }
+ }
if (sock_write(sfd, line) != 0) {
free(line);
return 1;
@@ -154,7 +154,7 @@ void usage(const char *argv0){
char *get_next_word(char *line) {
while (!isspace(*line))
line++;
- while(isspace(*line))
+ while (isspace(*line))
line++;
return line;
}