From: Todd C. Miller Date: Mon, 13 Feb 2017 20:44:11 +0000 (-0700) Subject: Include parse.h in timestr.c which is where function prototype lives. X-Git-Tag: SUDO_1_8_20^2~120 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=09438e5b4243ddb20748a61f9dfd861c5738fc19;p=sudo Include parse.h in timestr.c which is where function prototype lives. --- diff --git a/plugins/sudoers/parse.h b/plugins/sudoers/parse.h index 64881fd4d..e9cf62404 100644 --- a/plugins/sudoers/parse.h +++ b/plugins/sudoers/parse.h @@ -257,6 +257,8 @@ void free_members(struct member_list *members); bool addr_matches(char *n); /* match.c */ +struct group; +struct passwd; 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 hostname_matches(const char *shost, const char *lhost, const char *pattern); diff --git a/plugins/sudoers/timestr.c b/plugins/sudoers/timestr.c index 0d977d96b..06c4983d9 100644 --- a/plugins/sudoers/timestr.c +++ b/plugins/sudoers/timestr.c @@ -1,5 +1,6 @@ /* - * Copyright (c) 1999, 2009-2011 Todd C. Miller + * Copyright (c) 1999, 2009-2011, 2013-2015, 2017 + * Todd C. Miller * * Permission to use, copy, modify, and distribute this software for any * purpose with or without fee is hereby granted, provided that the above @@ -22,8 +23,8 @@ #include #include "sudo_compat.h" - -char *get_timestr(time_t, int); +#include "sudo_debug.h" +#include "parse.h" /* * Return a static buffer with the current date + time.