#ifndef SUDOERS_TOKE_H
#define SUDOERS_TOKE_H
-bool append(const char *, int);
-bool fill_args(const char *, int, int);
-bool fill_cmnd(const char *, int);
-bool fill_txt(const char *, int, int);
+bool append(const char *, size_t);
+bool fill_args(const char *, size_t, int);
+bool fill_cmnd(const char *, size_t);
+bool fill_txt(const char *, size_t, size_t);
bool ipv6_valid(const char *s);
int sudoers_trace_print(const char *msg);
void sudoerserror(const char *);
static int arg_size = 0;
bool
-fill_txt(const char *src, int len, int olen)
+fill_txt(const char *src, size_t len, size_t olen)
{
char *dst;
int h;
}
bool
-append(const char *src, int len)
+append(const char *src, size_t len)
{
int olen = 0;
debug_decl(append, SUDOERS_DEBUG_PARSER)
((c) == ',' || (c) == ':' || (c) == '=' || (c) == ' ' || (c) == '\t' || (c) == '#')
bool
-fill_cmnd(const char *src, int len)
+fill_cmnd(const char *src, size_t len)
{
char *dst;
- int i;
+ size_t i;
debug_decl(fill_cmnd, SUDOERS_DEBUG_PARSER)
arg_len = arg_size = 0;
}
bool
-fill_args(const char *s, int len, int addspace)
+fill_args(const char *s, size_t len, int addspace)
{
int new_len;
char *p;