X-Git-Url: https://git.cameronkatri.com/pw-darwin.git/blobdiff_plain/dcbc2eec155f1abda6e3f21555f114996b0079d4..fcf4b2f12ab5618542cc036a40239eedd658f95a:/libutil/login_crypt.c diff --git a/libutil/login_crypt.c b/libutil/login_crypt.c index e080ba9..b5ab10e 100644 --- a/libutil/login_crypt.c +++ b/libutil/login_crypt.c @@ -1,4 +1,6 @@ /*- + * SPDX-License-Identifier: BSD-2-Clause-FreeBSD + * * Copyright (c) 2000 Brian Fundakowski Feldman * All rights reserved. * @@ -22,10 +24,11 @@ * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF * SUCH DAMAGE. - * - * $FreeBSD$ */ +#include +__FBSDID("$FreeBSD$"); + #include #include @@ -37,7 +40,7 @@ const char * login_setcryptfmt(login_cap_t *lc, const char *def, const char *error) { const char *cipher; - cipher = login_getcapstr(lc, "passwd_format", (char *)def, NULL); + cipher = login_getcapstr(lc, "passwd_format", def, NULL); if (getenv("CRYPT_DEBUG") != NULL) fprintf(stderr, "login_setcryptfmt: " "passwd_format = %s\n", cipher);