chiark
/
gitweb
/
~ianmdlvl
/
elogind.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
9be9828
)
systemctl: sort case-insensitively
author
Lennart Poettering
<lennart@poettering.net>
Sun, 15 Aug 2010 00:21:17 +0000
(
02:21
+0200)
committer
Lennart Poettering
<lennart@poettering.net>
Mon, 16 Aug 2010 18:07:01 +0000
(20:07 +0200)
src/systemctl.c
patch
|
blob
|
history
diff --git
a/src/systemctl.c
b/src/systemctl.c
index ca676f9da3437c2493de38e21282f8e3f6f31279..a3186db4a060017f170f126991308443b664147b 100644
(file)
--- 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 = strc
asec
mp(d1, d2)) != 0)
return r;
}
- return strcmp(u->id, v->id);
+ return strc
asec
mp(u->id, v->id);
}
static int list_units(DBusConnection *bus, char **args, unsigned n) {