summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorLuke Bratch <luke@bratch.co.uk>2024-07-17 22:51:40 +0100
committerLuke Bratch <luke@bratch.co.uk>2024-07-17 22:51:40 +0100
commit69b1cec737fff5d4c547d8879d4c0899124b7e69 (patch)
treefc16c803ddcf83d058aa113a7f468be686061626
parente4f9bef0b48445363d40898daa86469f21efa7c3 (diff)
Correct logline() return value comment in logging.c and logging.h.
-rw-r--r--logging.c4
-rw-r--r--logging.h2
2 files changed, 3 insertions, 3 deletions
diff --git a/logging.c b/logging.c
index 7673fc2..f872ed5 100644
--- a/logging.c
+++ b/logging.c
@@ -58,10 +58,10 @@
// If LOG_KICK then it expects a string in the format:
// :kicker!bar@baz KICK #channel kickee :bla bla bla
//
-// With the ":foo!bar@baz "prefix being important for all
+// With the ":foo!bar@baz" prefix being important for all
// types.
//
-// Returns 1 on success or 0 on failure.
+// Returns the number of bytes written on success, or 0 on failure.
int logline(char *str, struct ircdstate *ircdstate, char *basedir, int type) {
// Filename to write to, gets built as we go
char filename[MAXCHAR];
diff --git a/logging.h b/logging.h
index 2c9764f..3396fce 100644
--- a/logging.h
+++ b/logging.h
@@ -89,7 +89,7 @@
// With the ":foo!bar@baz "prefix being important for all
// types.
//
-// Returns 1 on success or 0 on failure.
+// Returns the number of bytes written on success, or 0 on failure.
int logline(char *str, struct ircdstate *ircdstate, char *basedir, int type);
#endif