Include parse.h in timestr.c which is where function prototype lives.
This commit is contained in:
@@ -257,6 +257,8 @@ void free_members(struct member_list *members);
|
|||||||
bool addr_matches(char *n);
|
bool addr_matches(char *n);
|
||||||
|
|
||||||
/* match.c */
|
/* match.c */
|
||||||
|
struct group;
|
||||||
|
struct passwd;
|
||||||
bool command_matches(const char *sudoers_cmnd, const char *sudoers_args, const struct sudo_digest *digest);
|
bool command_matches(const char *sudoers_cmnd, const char *sudoers_args, const struct sudo_digest *digest);
|
||||||
bool group_matches(const char *sudoers_group, const struct group *gr);
|
bool group_matches(const char *sudoers_group, const struct group *gr);
|
||||||
bool hostname_matches(const char *shost, const char *lhost, const char *pattern);
|
bool hostname_matches(const char *shost, const char *lhost, const char *pattern);
|
||||||
|
@@ -1,5 +1,6 @@
|
|||||||
/*
|
/*
|
||||||
* Copyright (c) 1999, 2009-2011 Todd C. Miller <Todd.Miller@courtesan.com>
|
* Copyright (c) 1999, 2009-2011, 2013-2015, 2017
|
||||||
|
* Todd C. Miller <Todd.Miller@courtesan.com>
|
||||||
*
|
*
|
||||||
* Permission to use, copy, modify, and distribute this software for any
|
* Permission to use, copy, modify, and distribute this software for any
|
||||||
* purpose with or without fee is hereby granted, provided that the above
|
* purpose with or without fee is hereby granted, provided that the above
|
||||||
@@ -22,8 +23,8 @@
|
|||||||
#include <time.h>
|
#include <time.h>
|
||||||
|
|
||||||
#include "sudo_compat.h"
|
#include "sudo_compat.h"
|
||||||
|
#include "sudo_debug.h"
|
||||||
char *get_timestr(time_t, int);
|
#include "parse.h"
|
||||||
|
|
||||||
/*
|
/*
|
||||||
* Return a static buffer with the current date + time.
|
* Return a static buffer with the current date + time.
|
||||||
|
Reference in New Issue
Block a user