commit 345c4bd
uint
·
2026-10-26 16:56:00 +0000 UTC
parent aa7e332
rename util.c/h->utils.c/h
7 files changed,
+9,
-9
M
Makefile
+1,
-1
1@@ -11,7 +11,7 @@ SRC = server/config.c \
2 server/parados.c \
3 server/scan.c \
4 server/users.c \
5- server/util.c
6+ server/utils.c
7
8 OUT = parados
9
+1,
-1
1@@ -19,7 +19,7 @@
2 #include "log.h"
3 #include "scan.h"
4 #include "users.h"
5-#include "util.h"
6+#include "utils.h"
7
8 struct response {
9 const char* status;
R server/include/util.h =>
server/include/utils.h
+3,
-3
1@@ -1,5 +1,5 @@
2-#ifndef UTIL_H
3-#define UTIL_H
4+#ifndef UTILS_H
5+#define UTILS_H
6
7 #include <stddef.h>
8
9@@ -59,5 +59,5 @@ void secure_bzero(void* p, size_t n);
10 */
11 int write_all(int fd, const void* buf, size_t n);
12
13-#endif /* UTIL_H */
14+#endif /* UTILS_H */
15
+1,
-1
1@@ -32,7 +32,7 @@
2 #include "http.h"
3 #include "log.h"
4 #include "scan.h"
5-#include "util.h"
6+#include "utils.h"
7
8 #ifndef GIT_VER
9 #define GIT_VER "unknown"
+1,
-1
1@@ -11,7 +11,7 @@
2 #include "config.h"
3 #include "scan.h"
4 #include "log.h"
5-#include "util.h"
6+#include "utils.h"
7
8 static uint64_t encode_fnv1a64(const char* s);
9 static int library_push(struct library* l, const char* rel);
+1,
-1
1@@ -5,7 +5,7 @@
2 #include "config.h"
3 #include "log.h"
4 #include "users.h"
5-#include "util.h"
6+#include "utils.h"
7
8 struct users users;
9
R server/util.c =>
server/utils.c
+1,
-1
1@@ -4,7 +4,7 @@
2 #include <string.h>
3 #include <unistd.h>
4
5-#include "util.h"
6+#include "utils.h"
7
8 static int ci_key_match(const char* a, const char* b, size_t n);
9