hermes

HTTP GET/HEAD-only web server for static content.
git clone git://git.francescosaccone.com/hermes
Log | Files | Refs | README | LICENSE

commit 6eafb16761358da31984aad2b8254970c5e477e4
parent 2944a697ac4add003fb682eaa584964309cb45f3
Author: Francesco Saccone <francesco@francescosaccone.com>
Date:   Tue,  1 Apr 2025 10:45:41 +0200

style: align comments in if statement more nicely

Signed-off-by: Francesco Saccone <francesco@francescosaccone.com>

Diffstat:
Mfile.c | 6+++---
1 file changed, 3 insertions(+), 3 deletions(-)

diff --git a/file.c b/file.c @@ -30,9 +30,9 @@ get_normalised_path(char *path) { for (i = 0; path[i] != '\0'; i++) { if (path[i] != '/' || /* In the following conditions, we have path[i] == '/'. */ - i == 0 || /* Keep leading slash */ - path[i - 1] != '/' || /* No continous slashes */ - path[i + 1] != '\0' /* No trailing slash */) { + i == 0 || /* Keep leading slash */ + path[i - 1] != '/' || /* No continous slashes */ + path[i + 1] != '\0') { /* No trailing slash */ normalised[j] = path[i]; j++; }