Include parse.h in timestr.c which is where function prototype lives.

This commit is contained in:
Todd C. Miller
2017-02-13 13:44:11 -07:00
parent 359cacc40f
commit 09438e5b42
2 changed files with 6 additions and 3 deletions

View File

@@ -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);

View File

@@ -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
* purpose with or without fee is hereby granted, provided that the above
@@ -22,8 +23,8 @@
#include <time.h>
#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.