aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/compat_fts.h
diff options
context:
space:
mode:
authorIngo Schwarze <schwarze@openbsd.org>2020-06-14 22:49:36 +0000
committerIngo Schwarze <schwarze@openbsd.org>2020-06-14 22:49:36 +0000
commit77c0aeafdb196f1dfe90683bbff71a3d1cb5fbcf (patch)
tree87e6e841c412635fe5ebcab1897ee8aca7c36eae /compat_fts.h
parent98bea86787275725dd85ea3efa889650f0b41c87 (diff)
downloadmandoc-77c0aeafdb196f1dfe90683bbff71a3d1cb5fbcf.tar.gz
mandoc-77c0aeafdb196f1dfe90683bbff71a3d1cb5fbcf.tar.zst
mandoc-77c0aeafdb196f1dfe90683bbff71a3d1cb5fbcf.zip
Give the fts_compar struct member a real prototype.
This adds clarity and avoids compiler warnings.
Diffstat (limited to 'compat_fts.h')
-rw-r--r--compat_fts.h3
1 files changed, 2 insertions, 1 deletions
diff --git a/compat_fts.h b/compat_fts.h
index f4a97a4c..ca3f3a7e 100644
--- a/compat_fts.h
+++ b/compat_fts.h
@@ -43,7 +43,8 @@ typedef struct {
char *fts_path; /* path for this descent */
size_t fts_pathlen; /* sizeof(path) */
int fts_nitems; /* elements in the sort array */
- int (*fts_compar)(); /* compare function */
+ int (*fts_compar)(const struct _ftsent **, const struct _ftsent **);
+ /* compare function */
#define FTS_NOCHDIR 0x0004 /* don't change directories */
#define FTS_PHYSICAL 0x0010 /* physical walk */