From b14a689402f448c2b8f7aa66e939992069c8f3aa Mon Sep 17 00:00:00 2001 From: guenther <> Date: Sun, 20 Jul 2014 04:22:34 +0000 Subject: From ISO/IEC 9899:1999 and 9899:201x, 6.11.5 - Storage-class specifiers: The placement of a storage-class specifier other than at the beginning of the declaration specifiers in a declaration is an obsolescent feature. Diff from Jean-Philippe Ouellet (jean-philippe (at) ouellet.biz) --- src/lib/libc/crypt/bcrypt.c | 6 +++--- src/lib/libc/net/res_random.c | 4 ++-- 2 files changed, 5 insertions(+), 5 deletions(-) (limited to 'src') diff --git a/src/lib/libc/crypt/bcrypt.c b/src/lib/libc/crypt/bcrypt.c index aab26fe2cb..9b0001de0f 100644 --- a/src/lib/libc/crypt/bcrypt.c +++ b/src/lib/libc/crypt/bcrypt.c @@ -1,4 +1,4 @@ -/* $OpenBSD: bcrypt.c,v 1.44 2014/05/17 15:18:06 chl Exp $ */ +/* $OpenBSD: bcrypt.c,v 1.45 2014/07/20 04:22:34 guenther Exp $ */ /* * Copyright (c) 2014 Ted Unangst @@ -231,10 +231,10 @@ bcrypt_checkpass(const char *pass, const char *goodhash) /* * internal utilities */ -const static u_int8_t Base64Code[] = +static const u_int8_t Base64Code[] = "./ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789"; -const static u_int8_t index_64[128] = { +static const u_int8_t index_64[128] = { 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, diff --git a/src/lib/libc/net/res_random.c b/src/lib/libc/net/res_random.c index e22771995a..f28692f7c2 100644 --- a/src/lib/libc/net/res_random.c +++ b/src/lib/libc/net/res_random.c @@ -1,4 +1,4 @@ -/* $OpenBSD: res_random.c,v 1.20 2013/11/12 07:00:24 deraadt Exp $ */ +/* $OpenBSD: res_random.c,v 1.21 2014/07/20 04:22:34 guenther Exp $ */ /* * Copyright 1997 Niels Provos @@ -87,7 +87,7 @@ struct prf_ctx { }; #define PFAC_N 3 -const static u_int16_t pfacts[PFAC_N] = { +static const u_int16_t pfacts[PFAC_N] = { 2, 3, 2729 -- cgit v1.2.3-55-g6feb