X-Git-Url: http://www.average.org/gitweb/?p=pam_pcsc_cr.git;a=blobdiff_plain;f=authfile.c;h=f6a7fea4057d7df1fc90a2f847762d2981c4c7bd;hp=6937a665dddd68b66d85c22ef1394846530ab6ce;hb=0262298f8fc324fb4a1577f0c205bdf339ded782;hpb=b7d64e8a15a3a652d0844596307b787bc1711fa4 diff --git a/authfile.c b/authfile.c index 6937a66..f6a7fea 100644 --- a/authfile.c +++ b/authfile.c @@ -27,9 +27,9 @@ * string. */ -static char *template = "~/.pam_cr/auth"; +static const char *template = "~/.pam_cr/auth"; -void authfile_template(char *str) +void authfile_template(const char *str) { template = str; } @@ -37,7 +37,7 @@ void authfile_template(char *str) static int path_size(const char *tokenid, const char *userid) { const char *usub; - char *p, *q; + const char *p, *q; struct passwd *pw; if ((p = strchr(template, '~')) != strrchr(template, '~')) return 0; @@ -58,7 +58,8 @@ static void make_path(char * const path, const char *tokenid, const char *userid) { const char *usub; - char *p, *q; + const char *p; + char *q; struct passwd *pw; path[0] = '\0';