made the initial file-list a 'char const **' to ease
initialization from string constants
git-svn-id: http://svn.linux-vserver.org/svn/util-vserver/trunk@2607
94cd875c-1c1d-0410-91d2-
eb244daf1a30
void
MatchList_appendFiles(struct MatchList *list, size_t idx,
- char **files, size_t count,
+ char const **files, size_t count,
bool auto_type)
{
struct MatchItem *ptr = list->data + idx;
if (auto_type) {
for (i=0; i<count; ++i) {
- char *file = files[i];
+ char const *file = files[i];
switch (file[0]) {
case '+' : ptr->type = stINCLUDE; ++file; break;
case '~' : ptr->type = stSKIP; ++file; break;
static void
readExcludeListFD(int fd,
- char ***files, size_t *size,
+ char const ***files, size_t *size,
char **buf)
{
off_t len;
static void
readExcludeList(char const *filename,
- char ***files, size_t *size,
+ char const ***files, size_t *size,
char **buf)
{
int fd = open(filename, O_RDONLY);
static void
getConfigfileList(char const *vserver,
- char ***files, size_t *size,
+ char const ***files, size_t *size,
char **buf)
{
char tmpname[] = "/tmp/vunify.XXXXXX";
{
char *buf[2] = { 0,0 };
- char **fixed_files = 0;
+ char const **fixed_files = 0;
size_t fixed_count = 0;
- char **expr_files = 0;
+ char const **expr_files = 0;
size_t expr_count = 0;
size_t len;
char const *dir) NONNULL((1,2,3));
void MatchList_destroy(struct MatchList *) NONNULL((1));
void MatchList_appendFiles(struct MatchList *, size_t idx,
- char **files, size_t count,
+ char const **files, size_t count,
bool auto_type) NONNULL((1,3));
MatchType MatchList_compare(struct MatchList const *,