Skip to content

Commit

Permalink
Correct a type mismatch
Browse files Browse the repository at this point in the history
In one place in the source code, the debug level of type `int` was used and in other places of type `debug_t`. This commit introduces a change so that the type `debug_t` is used in both places.
This also resolves a compiler warning.

Signed-off-by: Marek Küthe <[email protected]>
  • Loading branch information
marek22k authored and gsliepen committed Dec 12, 2023
1 parent 4c6a9a9 commit 6e6dcbc
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/info.c
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@
#include "tincctl.h"
#include "utils.h"

void logger(int level, int priority, const char *format, ...) {
void logger(debug_t level, int priority, const char *format, ...) {
(void)level;
(void)priority;
va_list ap;
Expand Down
2 changes: 1 addition & 1 deletion src/tincctl.c
Original file line number Diff line number Diff line change
Expand Up @@ -80,7 +80,7 @@ char *scriptextension = defaultextension;
static char *prompt;
char *device = NULL;
char *iface = NULL;
int debug_level = -1;
debug_t debug_level = -1;

typedef enum option_t {
OPT_BAD_OPTION = '?',
Expand Down

0 comments on commit 6e6dcbc

Please sign in to comment.