Skip to content

Commit

Permalink
also fix me not using extern to define debug_output
Browse files Browse the repository at this point in the history
Signed-off-by: Mikhail Kulko <mkulko@mkulko.me>
  • Loading branch information
Mikhail Kulko committed May 24, 2023
1 parent 515c3f0 commit 73023cb
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
2 changes: 2 additions & 0 deletions utils.c
Original file line number Diff line number Diff line change
Expand Up @@ -32,6 +32,8 @@
#define security_check_context(x) security_check_context ((security_context_t) x)
#endif

bool debug_output = FALSE;

__attribute__((format(printf, 1, 0))) static void
warnv (const char *format, va_list args)
{
Expand Down
2 changes: 1 addition & 1 deletion utils.h
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,7 @@ typedef int bool;
#define PR_SET_CHILD_SUBREAPER 36
#endif

bool debug_output = FALSE;
extern bool debug_output;

void warn (const char *format,
...) __attribute__((format (printf, 1, 2)));
Expand Down

0 comments on commit 73023cb

Please sign in to comment.