]> CyberLeo.Net >> Repos - FreeBSD/FreeBSD.git/commit - lib/libpam/modules/pam_exec/pam_exec.c
Apply tentative fix for clang 11 warning in pam_exec(8):
authorDimitry Andric <dim@FreeBSD.org>
Thu, 6 Aug 2020 19:31:52 +0000 (19:31 +0000)
committerDimitry Andric <dim@FreeBSD.org>
Thu, 6 Aug 2020 19:31:52 +0000 (19:31 +0000)
commit228005931ca9c800e306e7b7d4aa0803197fea7d
tree40b44ec46c152ce65cafe12c981e5664ddb1b823
parentb0e89acc6516e48f6bf428238227c55187555b0a
Apply tentative fix for clang 11 warning in pam_exec(8):

lib/libpam/modules/pam_exec/pam_exec.c:222:56: error: format specifies type 'char *' but the argument has type 'const void *' [-Werror,-Wformat]
               if (asprintf(&envstr, "%s=%s", pam_item_env[i].name, item) < 0)
                                         ~~                         ^~~~
lib/libpam/modules/pam_exec/pam_exec.c