diff --git a/usr.sbin/lpr/lpc/cmds.c b/usr.sbin/lpr/lpc/cmds.c index bc470466e801..b4a48ee53db7 100644 --- a/usr.sbin/lpr/lpc/cmds.c +++ b/usr.sbin/lpr/lpc/cmds.c @@ -355,8 +355,8 @@ sortq(const void *a, const void *b) const char *fname_a, *fname_b, *jnum_a, *jnum_b; int cat_a, cat_b, ch, res, seq_a, seq_b; - fname_a = (*(const struct dirent **)a)->d_name; - fname_b = (*(const struct dirent **)b)->d_name; + fname_a = (*(const struct dirent * const *)a)->d_name; + fname_b = (*(const struct dirent * const *)b)->d_name; /* * First separate filenames into cagatories. Catagories are diff --git a/usr.sbin/lpr/pac/pac.c b/usr.sbin/lpr/pac/pac.c index f245fc3a62b7..c948f24e1bfb 100644 --- a/usr.sbin/lpr/pac/pac.c +++ b/usr.sbin/lpr/pac/pac.c @@ -410,8 +410,8 @@ qucmp(const void *a, const void *b) register const struct hent *h1, *h2; register int r; - h1 = *(const struct hent **)a; - h2 = *(const struct hent **)b; + h1 = *(const struct hent * const *)a; + h2 = *(const struct hent * const *)b; if (sort) r = h1->h_feetpages < h2->h_feetpages ? -1 : h1->h_feetpages > h2->h_feetpages;