From 1e87be8757cbe08120f7c18840ffee4fb5ab557d Mon Sep 17 00:00:00 2001 From: Philip Guenthe Date: Thu, 29 Nov 2012 02:15:45 +0000 Subject: Change scandir()'s 'select' argument from int (*)(struct dirent *) to int (*)(const struct dirent *) to match POSIX. ok millert@, ports check by naddy@ --- usr.bin/diff/diffdir.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'usr.bin') 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 @@ -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; -- cgit v1.2.3