aboutsummaryrefslogtreecommitdiff
path: root/bin
diff options
context:
space:
mode:
authorGarrett Wollman <wollman@FreeBSD.org>2002-09-21 01:28:41 +0000
committerGarrett Wollman <wollman@FreeBSD.org>2002-09-21 01:28:41 +0000
commit0d3bcc2e8068cb87817b732860cbde589ea25347 (patch)
treec2d8e348e30a733b07a594d611c3ba17a5b0e689 /bin
parent0c7fb5347cd38d724f34bacd8f4992a1ea9cc30d (diff)
Notes
Diffstat (limited to 'bin')
-rw-r--r--bin/cp/cp.c4
-rw-r--r--bin/ls/ls.c4
2 files changed, 4 insertions, 4 deletions
diff --git a/bin/cp/cp.c b/bin/cp/cp.c
index 5a7834e7c1f3..10072094b3f0 100644
--- a/bin/cp/cp.c
+++ b/bin/cp/cp.c
@@ -92,7 +92,7 @@ static int Rflag, rflag;
enum op { FILE_TO_FILE, FILE_TO_DIR, DIR_TO_DNE };
static int copy(char *[], enum op, int);
-static int mastercmp(const FTSENT **, const FTSENT **);
+static int mastercmp(const FTSENT * const *, const FTSENT * const *);
int
main(int argc, char *argv[])
@@ -484,7 +484,7 @@ copy(char *argv[], enum op type, int fts_options)
* files first reduces seeking.
*/
int
-mastercmp(const FTSENT **a, const FTSENT **b)
+mastercmp(const FTSENT * const *a, const FTSENT * const *b)
{
int a_info, b_info;
diff --git a/bin/ls/ls.c b/bin/ls/ls.c
index 71158deead22..be19f3634a82 100644
--- a/bin/ls/ls.c
+++ b/bin/ls/ls.c
@@ -82,7 +82,7 @@ __FBSDID("$FreeBSD$");
static void display(FTSENT *, FTSENT *);
static u_quad_t makenines(u_long);
-static int mastercmp(const FTSENT **, const FTSENT **);
+static int mastercmp(const FTSENT * const *, const FTSENT * const *);
static void traverse(int, char **, int);
static void (*printfcn)(DISPLAY *);
@@ -759,7 +759,7 @@ display(FTSENT *p, FTSENT *list)
* All other levels use the sort function. Error entries remain unsorted.
*/
static int
-mastercmp(const FTSENT **a, const FTSENT **b)
+mastercmp(const FTSENT * const *a, const FTSENT * const *b)
{
int a_info, b_info;