summaryrefslogtreecommitdiff
path: root/usr.bin/diff
diff options
context:
space:
mode:
authorPhilip Guenthe <guenther@cvs.openbsd.org>2012-11-29 02:15:45 +0000
committerPhilip Guenthe <guenther@cvs.openbsd.org>2012-11-29 02:15:45 +0000
commit1e87be8757cbe08120f7c18840ffee4fb5ab557d (patch)
treea984d28d5f20f0b7adc6856d8dd43ecb96f18f7c /usr.bin/diff
parent36563650e8f70470f880cd5c1a85e86cc4b105b5 (diff)
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')
-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;