Merge "Sync with upstream NetBSD."
am: b5c1b12389
Change-Id: Ie102594cac997d017ac1d0eb5c33f600e1194212
This commit is contained in:
commit
3272d82928
3 changed files with 15 additions and 11 deletions
|
@ -1,4 +1,4 @@
|
|||
/* $NetBSD: random.c,v 1.4 2014/06/12 20:59:46 christos Exp $ */
|
||||
/* $NetBSD: random.c,v 1.5 2016/02/08 05:27:24 dholland Exp $ */
|
||||
|
||||
/*
|
||||
* Copyright (c) 1983, 1993
|
||||
|
@ -35,7 +35,7 @@
|
|||
#if 0
|
||||
static char sccsid[] = "@(#)random.c 8.2 (Berkeley) 5/19/95";
|
||||
#else
|
||||
__RCSID("$NetBSD: random.c,v 1.4 2014/06/12 20:59:46 christos Exp $");
|
||||
__RCSID("$NetBSD: random.c,v 1.5 2016/02/08 05:27:24 dholland Exp $");
|
||||
#endif
|
||||
#endif /* LIBC_SCCS and not lint */
|
||||
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
/* $NetBSD: dst.h,v 1.1.1.4 2009/04/12 16:35:44 christos Exp $ */
|
||||
/* $NetBSD: dst.h,v 1.2 2014/08/03 19:14:24 wiz Exp $ */
|
||||
|
||||
#ifndef DST_H
|
||||
#define DST_H
|
||||
|
@ -55,7 +55,7 @@ typedef struct dst_key {
|
|||
#define dst_write_key __dst_write_key
|
||||
|
||||
/*
|
||||
* DST Crypto API defintions
|
||||
* DST Crypto API definitions
|
||||
*/
|
||||
void dst_init(void);
|
||||
int dst_check_algorithm(const int);
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
/* $NetBSD: regcomp.c,v 1.36 2015/09/12 19:08:47 christos Exp $ */
|
||||
/* $NetBSD: regcomp.c,v 1.38 2019/02/07 22:22:31 christos Exp $ */
|
||||
|
||||
/*-
|
||||
* Copyright (c) 1992, 1993, 1994
|
||||
|
@ -76,7 +76,7 @@
|
|||
#if 0
|
||||
static char sccsid[] = "@(#)regcomp.c 8.5 (Berkeley) 3/20/94";
|
||||
#else
|
||||
__RCSID("$NetBSD: regcomp.c,v 1.36 2015/09/12 19:08:47 christos Exp $");
|
||||
__RCSID("$NetBSD: regcomp.c,v 1.38 2019/02/07 22:22:31 christos Exp $");
|
||||
#endif
|
||||
#endif /* LIBC_SCCS and not lint */
|
||||
|
||||
|
@ -474,6 +474,8 @@ p_ere_exp(
|
|||
REQUIRE(!MORE() || !isdigit((unsigned char)PEEK()), REG_BADRPT);
|
||||
/* FALLTHROUGH */
|
||||
default:
|
||||
if (p->error != 0)
|
||||
return;
|
||||
ordinary(p, c);
|
||||
break;
|
||||
}
|
||||
|
@ -692,6 +694,8 @@ p_simp_re(
|
|||
REQUIRE(starordinary, REG_BADRPT);
|
||||
/* FALLTHROUGH */
|
||||
default:
|
||||
if (p->error != 0)
|
||||
return(0);
|
||||
ordinary(p, c &~ BACKSL);
|
||||
break;
|
||||
}
|
||||
|
@ -1007,7 +1011,7 @@ p_b_coll_elem(
|
|||
}
|
||||
len = p->next - sp;
|
||||
for (cp = cnames; cp->name != NULL; cp++)
|
||||
if (strncmp(cp->name, sp, len) == 0 && cp->name[len] == '\0')
|
||||
if (strncmp(cp->name, sp, len) == 0 && strlen(cp->name) == len)
|
||||
return(cp->code); /* known name */
|
||||
if (len == 1)
|
||||
return(*sp); /* single character */
|
||||
|
|
Loading…
Reference in a new issue