Skip to content

Commit 368ec5c

Browse files
authored
Issue #157 Fix src/util/folder tests (#243)
1 parent c9cb52e commit 368ec5c

File tree

15 files changed

+92
-548
lines changed

15 files changed

+92
-548
lines changed

src/util/folder/fts.cpp

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -195,7 +195,7 @@ static FTSENT* fts_alloc(FTS*, const char*, int);
195195
static FTSENT* fts_build(FTS*, int);
196196
static void fts_lfree(FTSENT*);
197197
static void fts_load(FTS*, FTSENT*);
198-
static size_t fts_maxarglen(char* const*);
198+
static size_t fts_maxarglen(const char* const*);
199199
static void fts_padjust(FTS*);
200200
static int fts_palloc(FTS*, size_t);
201201
static FTSENT* fts_sort(FTS*, FTSENT*, int);
@@ -239,7 +239,7 @@ yreallocf(void* ptr, size_t size)
239239
return (nptr);
240240
}
241241

242-
FTS* yfts_open(char* const* argv, int options, int (*compar)(const FTSENT**, const FTSENT**))
242+
FTS* yfts_open(const char* const* argv, int options, int (*compar)(const FTSENT**, const FTSENT**))
243243
{
244244
FTS* sp;
245245
FTSENT *p, *root;
@@ -1338,7 +1338,7 @@ fts_padjust(FTS* sp)
13381338
}
13391339

13401340
static size_t
1341-
fts_maxarglen(char* const* argv)
1341+
fts_maxarglen(const char* const* argv)
13421342
{
13431343
size_t len, max;
13441344

src/util/folder/fts.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -103,6 +103,6 @@ typedef struct _ftsent {
103103

104104
FTSENT* yfts_children(FTS*, int);
105105
int yfts_close(FTS*);
106-
FTS* yfts_open(char* const*, int, int (*)(const FTSENT**, const FTSENT**));
106+
FTS* yfts_open(const char* const*, int, int (*)(const FTSENT**, const FTSENT**));
107107
FTSENT* yfts_read(FTS*);
108108
int yfts_set(FTS*, FTSENT*, int);

src/util/folder/path.pxd

Lines changed: 0 additions & 93 deletions
This file was deleted.

0 commit comments

Comments
 (0)