aboutsummaryrefslogtreecommitdiffstats
path: root/server.c
diff options
context:
space:
mode:
authorverdant <im@verdant.ee>2026-06-09 18:27:47 +0800
committerverdant <im@verdant.ee>2026-06-09 18:27:47 +0800
commitc72a925374638e703df787b38fc81f478f901752 (patch)
treebd0cb144e17aedcc87e45be7069969868f054c59 /server.c
parentd1e2ad9a9e278473d0583ba733928f9924d0ce04 (diff)
downloadshsd-c72a925374638e703df787b38fc81f478f901752.tar.gz
shsd-c72a925374638e703df787b38fc81f478f901752.zip
Fix some typos
Diffstat (limited to 'server.c')
-rw-r--r--server.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/server.c b/server.c
index 0197aab..f44d77a 100644
--- a/server.c
+++ b/server.c
@@ -48,7 +48,7 @@ static HTTP_METHODS get_require_method(char *method)
}
}
-sitatic int check_file_stat(const char *path, int fd)
+static int check_file_stat(const char *path, int fd)
{
struct stat st;
if (stat(path, &st) == -1 && S_ISDIR(st.st_mode)) {
@@ -58,7 +58,7 @@ sitatic int check_file_stat(const char *path, int fd)
return 0;
}
-sitatic int handle_client(int client_fd, char *buf)
+static int handle_client(int client_fd, char *buf)
{
char method[16], path[256];
if (sscanf(buf, "%15s %255s", method, path) < 2) {