X-Git-Url: http://git.madism.org/?p=apps%2Fmadmutt.git;a=blobdiff_plain;f=sort.c;h=2b700011d6483b3e6754461a4336a8896206d9dc;hp=c19ef98c5b888ef2ae16ab9498b391f3d8d7465f;hb=230399f9632c37b66c1c117a17e8327eae6b3235;hpb=c88f8ebd5e7542e4ee2ac2c24dfd5f358dbb4235 diff --git a/sort.c b/sort.c index c19ef98..2b70001 100644 --- a/sort.c +++ b/sort.c @@ -11,20 +11,19 @@ # include "config.h" #endif -#include -#include +#include +#include +#include +#include + +#include #include "mutt.h" +#include "alias.h" #include "sort.h" #include "thread.h" #include "mutt_idna.h" - -#include -#include -#include -#include - #define SORTCODE(x) (Sort & SORT_REVERSE) ? -(x) : x /* function to use as discriminator when normal sort method is equal */ @@ -90,11 +89,11 @@ int compare_subject (const void *a, const void *b) const char *mutt_get_name (address_t * a) { - address_t *ali; + const address_t *ali; const char *name = ""; if (a) { - if (option (OPTREVALIAS) && (ali = alias_reverse_lookup (a)) + if (option (OPTREVALIAS) && (ali = alias_reverse_lookup(a)) && ali->personal) name = ali->personal; else if (a->personal)