summaryrefslogtreecommitdiffstats
path: root/usr.bin/units/units.c
diff options
context:
space:
mode:
Diffstat (limited to 'usr.bin/units/units.c')
-rw-r--r--usr.bin/units/units.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/usr.bin/units/units.c b/usr.bin/units/units.c
index e789a17..9ca5cda 100644
--- a/usr.bin/units/units.c
+++ b/usr.bin/units/units.c
@@ -379,7 +379,7 @@ addunit(struct unittype * theunit, char *toadd, int flip)
int
compare(const void *item1, const void *item2)
{
- return strcmp(*(const char **) item1, *(const char **) item2);
+ return strcmp(*(const char * const *)item1, *(const char * const *)item2);
}
OpenPOWER on IntegriCloud