diff options
author | Richard Jones <rjones@redhat.com> | 2009-04-06 12:55:26 +0100 |
---|---|---|
committer | Richard Jones <rjones@redhat.com> | 2009-04-06 12:55:26 +0100 |
commit | 8e570870f577ff0c3db074f88924633b559af5d4 (patch) | |
tree | 711af1263615c8cd977eceb0e4286425b53bd725 /daemon/ls.c | |
parent | 1cf85b1e60e85c4940869c6291d75ac44a5bd190 (diff) | |
download | libguestfs-8e570870f577ff0c3db074f88924633b559af5d4.tar.gz libguestfs-8e570870f577ff0c3db074f88924633b559af5d4.tar.xz libguestfs-8e570870f577ff0c3db074f88924633b559af5d4.zip |
Implement list-devices and list-partitions.
Diffstat (limited to 'daemon/ls.c')
-rw-r--r-- | daemon/ls.c | 10 |
1 files changed, 1 insertions, 9 deletions
diff --git a/daemon/ls.c b/daemon/ls.c index 05e2cc70..261bc964 100644 --- a/daemon/ls.c +++ b/daemon/ls.c @@ -29,14 +29,6 @@ #include "daemon.h" #include "actions.h" -static int -compare (const void *vp1, const void *vp2) -{ - char * const *p1 = (char * const *) vp1; - char * const *p2 = (char * const *) vp2; - return strcmp (*p1, *p2); -} - char ** do_ls (const char *path) { @@ -78,7 +70,7 @@ do_ls (const char *path) return NULL; } - qsort (r, size-1, sizeof (char *), compare); + sort_strings (r, size-1); return r; } |