summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorLennart Poettering <lennart@poettering.net>2010-08-15 02:21:17 +0200
committerLennart Poettering <lennart@poettering.net>2010-08-16 20:07:01 +0200
commita2a3a5b93cc4aabdbb1b89eed8899979bb6a2cca (patch)
treef3b183bc95881ecd9ba083df98eb4a9ebdb3688c /src
parent9be9828c00449e3cab77aaea8359de61e793cc28 (diff)
systemctl: sort case-insensitively
Diffstat (limited to 'src')
-rw-r--r--src/systemctl.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/systemctl.c b/src/systemctl.c
index ca676f9da3..a3186db4a0 100644
--- a/src/systemctl.c
+++ b/src/systemctl.c
@@ -216,11 +216,11 @@ static int compare_unit_info(const void *a, const void *b) {
if (d1 && d2) {
int r;
- if ((r = strcmp(d1, d2)) != 0)
+ if ((r = strcasecmp(d1, d2)) != 0)
return r;
}
- return strcmp(u->id, v->id);
+ return strcasecmp(u->id, v->id);
}
static int list_units(DBusConnection *bus, char **args, unsigned n) {