X-Git-Url: http://git.madism.org/?p=apps%2Fmadmutt.git;a=blobdiff_plain;f=lib-sys%2Funix.c;h=62a2f1e79e85b08a2adf2e196ca8d897064e5edc;hp=8a1b86017858267505ec6a18deadad01fc98bc13;hb=16536d59024177409f49134c3f03f69855c144b9;hpb=18da1add170065091118e7379b58d1e385faf0cd diff --git a/lib-sys/unix.c b/lib-sys/unix.c index 8a1b860..62a2f1e 100644 --- a/lib-sys/unix.c +++ b/lib-sys/unix.c @@ -8,16 +8,7 @@ * please see the file GPL in the top level source directory. */ -#include -#include -#include -#include -#include - -#include -#include -#include -#include +#include #include "unix.h" #include "mutt_signal.h" @@ -29,7 +20,7 @@ * otherwise assume that the GECOS field is a comma-separated list. * Replace "&" by a capitalized version of the user's login name. */ -ssize_t mutt_gecos_name(char *dst, ssize_t n, struct passwd *pw, rx_t *rx) +ssize_t mutt_gecos_name(char *dst, ssize_t n, struct passwd *pw, regex_t *rx) { const char *p, *end; ssize_t len; @@ -43,7 +34,7 @@ ssize_t mutt_gecos_name(char *dst, ssize_t n, struct passwd *pw, rx_t *rx) if (rx) { regmatch_t pat_match[1]; - if (regexec(rx->rx, pw->pw_gecos, 1, pat_match, 0)) { + if (regexec(rx, pw->pw_gecos, 1, pat_match, 0)) { return 0; }