Skip to content

Commit

Permalink
..
Browse files Browse the repository at this point in the history
  • Loading branch information
koekeishiya committed Aug 22, 2022
1 parent 876ca06 commit 8b7e8fc
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions src/message.c
Original file line number Diff line number Diff line change
Expand Up @@ -429,6 +429,8 @@ static void get_key_value_pair(char *token, char **key, char **value, bool *excl

static inline void daemon_fail(FILE *rsp, char *fmt, ...)
{
if (!rsp) return;

va_list ap;
va_start(ap, fmt);
fprintf(rsp, FAILURE_MESSAGE);
Expand All @@ -438,6 +440,8 @@ static inline void daemon_fail(FILE *rsp, char *fmt, ...)

__unused static inline void daemon_deprecated(FILE *rsp, char *fmt, ...)
{
if (!rsp) return;

va_list ap;
va_start(ap, fmt);
fprintf(rsp, "deprecation warning: ");
Expand Down

0 comments on commit 8b7e8fc

Please sign in to comment.