summaryrefslogtreecommitdiffstats
path: root/usr.bin/diff/diffdir.c
diff options
context:
space:
mode:
authorguenther <guenther@openbsd.org>2012-11-29 02:15:44 +0000
committerguenther <guenther@openbsd.org>2012-11-29 02:15:44 +0000
commita737da78244b7083cf46696406625dd05c33eafa (patch)
tree4d2b2009264ea914ac361e9067525a99b1abeb74 /usr.bin/diff/diffdir.c
parentFix white spaces in relayd. No binary diff. (diff)
downloadwireguard-openbsd-a737da78244b7083cf46696406625dd05c33eafa.tar.xz
wireguard-openbsd-a737da78244b7083cf46696406625dd05c33eafa.zip
Change scandir()'s 'select' argument from
int (*)(struct dirent *) to int (*)(const struct dirent *) to match POSIX. ok millert@, ports check by naddy@
Diffstat (limited to 'usr.bin/diff/diffdir.c')
-rw-r--r--usr.bin/diff/diffdir.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/usr.bin/diff/diffdir.c b/usr.bin/diff/diffdir.c
index 80fff5c3bff..cb8a6acd883 100644
--- a/usr.bin/diff/diffdir.c
+++ b/usr.bin/diff/diffdir.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: diffdir.c,v 1.40 2010/11/14 18:24:43 millert Exp $ */
+/* $OpenBSD: diffdir.c,v 1.41 2012/11/29 02:15:44 guenther Exp $ */
/*
* Copyright (c) 2003, 2010 Todd C. Miller <Todd.Miller@courtesan.com>
@@ -37,7 +37,7 @@
#include "diff.h"
#include "xmalloc.h"
-static int selectfile(struct dirent *);
+static int selectfile(const struct dirent *);
static void diffit(struct dirent *, char *, size_t, char *, size_t, int);
#define d_status d_type /* we need to store status for -l */
@@ -232,7 +232,7 @@ diffit(struct dirent *dp, char *path1, size_t plen1, char *path2, size_t plen2,
* diff, else 0. Checks the excludes list.
*/
static int
-selectfile(struct dirent *dp)
+selectfile(const struct dirent *dp)
{
struct excludes *excl;