summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJerry Jelinek <jerry.jelinek@joyent.com>2018-02-23 13:01:53 +0000
committerJerry Jelinek <jerry.jelinek@joyent.com>2018-02-23 13:01:53 +0000
commitb7718c339dde99eb2f4bf2e8a4cdabfc3acf9d6c (patch)
tree92d313f21c843f56ef4dd64594a4f51ccd82804c
parent4f5bbb4c37e2dca7b0722f89c8dfe13be1fbc131 (diff)
parentcf421650297f304644a9fe84c51540de5823fe84 (diff)
downloadillumos-joyent-b7718c339dde99eb2f4bf2e8a4cdabfc3acf9d6c.tar.gz
[illumos-gate merge]
commit cf421650297f304644a9fe84c51540de5823fe84 9160 libtecla: this statement may fall through commit 38a641c5970af3d16902370fb738a6792620e1bf 9155 pkcs11: this statement may fall through commit d7fdecd2374114124f192b3bfc84d2d294bb45ab 9154 libldap5: this statement may fall through commit e10a6edabdc38e5fd1d9da6a6a54774a41f91b22 9152 loader: allow comma in variable names commit e501678557789347eedf20b9e0f9a5014f56f18d 9151 libdhcputil: this statement may fall through commit 48122e8f03678c2b5a9cea6e9c4d4d2629c5a13f 9148 sun_sas: this statement may fall through commit 69b2e41e53282c11528827637e627614e2af615b 9147 sun_sas: comparison between pointer and zero character constant commit 59ee40951f56cfa1c0e6c5c6aeea10605267116a 9138 libcurses: this statement may fall through
-rw-r--r--usr/src/boot/sys/boot/forth/support.4th4
-rw-r--r--usr/src/common/crypto/ecc/ec2_163.c12
-rw-r--r--usr/src/common/crypto/ecc/ec2_193.c14
-rw-r--r--usr/src/common/crypto/ecc/ec2_233.c16
-rw-r--r--usr/src/common/crypto/ecc/ecl_gf.c58
-rw-r--r--usr/src/common/crypto/ecc/ecp_192.c17
-rw-r--r--usr/src/common/crypto/ecc/ecp_224.c11
-rw-r--r--usr/src/common/crypto/ecc/ecp_256.c12
-rw-r--r--usr/src/lib/libcurses/screen/scr_reset.c40
-rw-r--r--usr/src/lib/libdhcputil/common/dhcp_inittab.c3
-rw-r--r--usr/src/lib/libldap5/sources/ldap/ber/io.c2
-rw-r--r--usr/src/lib/libldap5/sources/ldap/common/friendly.c17
-rw-r--r--usr/src/lib/libldap5/sources/ldap/common/getdn.c11
-rw-r--r--usr/src/lib/libldap5/sources/ldap/common/ldaputf8.c12
-rw-r--r--usr/src/lib/libtecla/common/expand.c3
-rw-r--r--usr/src/lib/libtecla/common/getline.c3
-rw-r--r--usr/src/lib/libtecla/common/history.c3
-rw-r--r--usr/src/lib/pkcs11/libpkcs11/common/metaAttrManager.c1
-rw-r--r--usr/src/lib/sun_sas/common/devtree_device_disco.c2
-rw-r--r--usr/src/lib/sun_sas/common/sun_sas.c1
20 files changed, 171 insertions, 71 deletions
diff --git a/usr/src/boot/sys/boot/forth/support.4th b/usr/src/boot/sys/boot/forth/support.4th
index b95068f745..40492769b5 100644
--- a/usr/src/boot/sys/boot/forth/support.4th
+++ b/usr/src/boot/sys/boot/forth/support.4th
@@ -533,8 +533,8 @@ also parser definitions
line_pointer
begin
end_of_line? if 0 else
- letter? digit? underscore? dot? dash?
- or or or or
+ letter? digit? underscore? dot? dash? comma?
+ or or or or or
then
while
skip_character
diff --git a/usr/src/common/crypto/ecc/ec2_163.c b/usr/src/common/crypto/ecc/ec2_163.c
index ed45a53f95..cda034208c 100644
--- a/usr/src/common/crypto/ecc/ec2_163.c
+++ b/usr/src/common/crypto/ecc/ec2_163.c
@@ -44,8 +44,6 @@
* Sun elects to use this software under the MPL license.
*/
-#pragma ident "%Z%%M% %I% %E% SMI"
-
#include "ec2.h"
#include "mp_gf2m.h"
#include "mp_gf2m-priv.h"
@@ -197,15 +195,20 @@ ec_GF2m_163_mul(const mp_int *a, const mp_int *b, mp_int *r,
#ifdef ECL_THIRTY_TWO_BIT
case 6:
a5 = MP_DIGIT(a, 5);
+ /* FALLTHROUGH */
case 5:
a4 = MP_DIGIT(a, 4);
+ /* FALLTHROUGH */
case 4:
a3 = MP_DIGIT(a, 3);
#endif
+ /* FALLTHROUGH */
case 3:
a2 = MP_DIGIT(a, 2);
+ /* FALLTHROUGH */
case 2:
a1 = MP_DIGIT(a, 1);
+ /* FALLTHROUGH */
default:
a0 = MP_DIGIT(a, 0);
}
@@ -213,15 +216,20 @@ ec_GF2m_163_mul(const mp_int *a, const mp_int *b, mp_int *r,
#ifdef ECL_THIRTY_TWO_BIT
case 6:
b5 = MP_DIGIT(b, 5);
+ /* FALLTHROUGH */
case 5:
b4 = MP_DIGIT(b, 4);
+ /* FALLTHROUGH */
case 4:
b3 = MP_DIGIT(b, 3);
#endif
+ /* FALLTHROUGH */
case 3:
b2 = MP_DIGIT(b, 2);
+ /* FALLTHROUGH */
case 2:
b1 = MP_DIGIT(b, 1);
+ /* FALLTHROUGH */
default:
b0 = MP_DIGIT(b, 0);
}
diff --git a/usr/src/common/crypto/ecc/ec2_193.c b/usr/src/common/crypto/ecc/ec2_193.c
index d0b2e57399..fad259d636 100644
--- a/usr/src/common/crypto/ecc/ec2_193.c
+++ b/usr/src/common/crypto/ecc/ec2_193.c
@@ -44,8 +44,6 @@
* Sun elects to use this software under the MPL license.
*/
-#pragma ident "%Z%%M% %I% %E% SMI"
-
#include "ec2.h"
#include "mp_gf2m.h"
#include "mp_gf2m-priv.h"
@@ -206,17 +204,23 @@ ec_GF2m_193_mul(const mp_int *a, const mp_int *b, mp_int *r,
#ifdef ECL_THIRTY_TWO_BIT
case 7:
a6 = MP_DIGIT(a, 6);
+ /* FALLTHROUGH */
case 6:
a5 = MP_DIGIT(a, 5);
+ /* FALLTHROUGH */
case 5:
a4 = MP_DIGIT(a, 4);
#endif
+ /* FALLTHROUGH */
case 4:
a3 = MP_DIGIT(a, 3);
+ /* FALLTHROUGH */
case 3:
a2 = MP_DIGIT(a, 2);
+ /* FALLTHROUGH */
case 2:
a1 = MP_DIGIT(a, 1);
+ /* FALLTHROUGH */
default:
a0 = MP_DIGIT(a, 0);
}
@@ -224,17 +228,23 @@ ec_GF2m_193_mul(const mp_int *a, const mp_int *b, mp_int *r,
#ifdef ECL_THIRTY_TWO_BIT
case 7:
b6 = MP_DIGIT(b, 6);
+ /* FALLTHROUGH */
case 6:
b5 = MP_DIGIT(b, 5);
+ /* FALLTHROUGH */
case 5:
b4 = MP_DIGIT(b, 4);
#endif
+ /* FALLTHROUGH */
case 4:
b3 = MP_DIGIT(b, 3);
+ /* FALLTHROUGH */
case 3:
b2 = MP_DIGIT(b, 2);
+ /* FALLTHROUGH */
case 2:
b1 = MP_DIGIT(b, 1);
+ /* FALLTHROUGH */
default:
b0 = MP_DIGIT(b, 0);
}
diff --git a/usr/src/common/crypto/ecc/ec2_233.c b/usr/src/common/crypto/ecc/ec2_233.c
index f7131f8641..5876f0e818 100644
--- a/usr/src/common/crypto/ecc/ec2_233.c
+++ b/usr/src/common/crypto/ecc/ec2_233.c
@@ -44,8 +44,6 @@
* Sun elects to use this software under the MPL license.
*/
-#pragma ident "%Z%%M% %I% %E% SMI"
-
#include "ec2.h"
#include "mp_gf2m.h"
#include "mp_gf2m-priv.h"
@@ -225,19 +223,26 @@ ec_GF2m_233_mul(const mp_int *a, const mp_int *b, mp_int *r,
#ifdef ECL_THIRTY_TWO_BIT
case 8:
a7 = MP_DIGIT(a, 7);
+ /* FALLTHROUGH */
case 7:
a6 = MP_DIGIT(a, 6);
+ /* FALLTHROUGH */
case 6:
a5 = MP_DIGIT(a, 5);
+ /* FALLTHROUGH */
case 5:
a4 = MP_DIGIT(a, 4);
#endif
+ /* FALLTHROUGH */
case 4:
a3 = MP_DIGIT(a, 3);
+ /* FALLTHROUGH */
case 3:
a2 = MP_DIGIT(a, 2);
+ /* FALLTHROUGH */
case 2:
a1 = MP_DIGIT(a, 1);
+ /* FALLTHROUGH */
default:
a0 = MP_DIGIT(a, 0);
}
@@ -245,19 +250,26 @@ ec_GF2m_233_mul(const mp_int *a, const mp_int *b, mp_int *r,
#ifdef ECL_THIRTY_TWO_BIT
case 8:
b7 = MP_DIGIT(b, 7);
+ /* FALLTHROUGH */
case 7:
b6 = MP_DIGIT(b, 6);
+ /* FALLTHROUGH */
case 6:
b5 = MP_DIGIT(b, 5);
+ /* FALLTHROUGH */
case 5:
b4 = MP_DIGIT(b, 4);
#endif
+ /* FALLTHROUGH */
case 4:
b3 = MP_DIGIT(b, 3);
+ /* FALLTHROUGH */
case 3:
b2 = MP_DIGIT(b, 2);
+ /* FALLTHROUGH */
case 2:
b1 = MP_DIGIT(b, 1);
+ /* FALLTHROUGH */
default:
b0 = MP_DIGIT(b, 0);
}
diff --git a/usr/src/common/crypto/ecc/ecl_gf.c b/usr/src/common/crypto/ecc/ecl_gf.c
index 073cf73f77..ab27353e76 100644
--- a/usr/src/common/crypto/ecc/ecl_gf.c
+++ b/usr/src/common/crypto/ecc/ecl_gf.c
@@ -43,8 +43,6 @@
* Sun elects to use this software under the MPL license.
*/
-#pragma ident "%Z%%M% %I% %E% SMI"
-
#include "mpi.h"
#include "mp_gf2m.h"
#include "ecl-priv.h"
@@ -280,16 +278,20 @@ ec_GFp_add_3(const mp_int *a, const mp_int *b, mp_int *r,
switch(MP_USED(a)) {
case 3:
a2 = MP_DIGIT(a,2);
+ /* FALLTHROUGH */
case 2:
a1 = MP_DIGIT(a,1);
+ /* FALLTHROUGH */
case 1:
a0 = MP_DIGIT(a,0);
}
switch(MP_USED(b)) {
case 3:
r2 = MP_DIGIT(b,2);
+ /* FALLTHROUGH */
case 2:
r1 = MP_DIGIT(b,1);
+ /* FALLTHROUGH */
case 1:
r0 = MP_DIGIT(b,0);
}
@@ -363,20 +365,26 @@ ec_GFp_add_4(const mp_int *a, const mp_int *b, mp_int *r,
switch(MP_USED(a)) {
case 4:
a3 = MP_DIGIT(a,3);
+ /* FALLTHROUGH */
case 3:
a2 = MP_DIGIT(a,2);
+ /* FALLTHROUGH */
case 2:
a1 = MP_DIGIT(a,1);
+ /* FALLTHROUGH */
case 1:
a0 = MP_DIGIT(a,0);
}
switch(MP_USED(b)) {
case 4:
r3 = MP_DIGIT(b,3);
+ /* FALLTHROUGH */
case 3:
r2 = MP_DIGIT(b,2);
+ /* FALLTHROUGH */
case 2:
r1 = MP_DIGIT(b,1);
+ /* FALLTHROUGH */
case 1:
r0 = MP_DIGIT(b,0);
}
@@ -457,24 +465,32 @@ ec_GFp_add_5(const mp_int *a, const mp_int *b, mp_int *r,
switch(MP_USED(a)) {
case 5:
a4 = MP_DIGIT(a,4);
+ /* FALLTHROUGH */
case 4:
a3 = MP_DIGIT(a,3);
+ /* FALLTHROUGH */
case 3:
a2 = MP_DIGIT(a,2);
+ /* FALLTHROUGH */
case 2:
a1 = MP_DIGIT(a,1);
+ /* FALLTHROUGH */
case 1:
a0 = MP_DIGIT(a,0);
}
switch(MP_USED(b)) {
case 5:
r4 = MP_DIGIT(b,4);
+ /* FALLTHROUGH */
case 4:
r3 = MP_DIGIT(b,3);
+ /* FALLTHROUGH */
case 3:
r2 = MP_DIGIT(b,2);
+ /* FALLTHROUGH */
case 2:
r1 = MP_DIGIT(b,1);
+ /* FALLTHROUGH */
case 1:
r0 = MP_DIGIT(b,0);
}
@@ -534,28 +550,38 @@ ec_GFp_add_6(const mp_int *a, const mp_int *b, mp_int *r,
switch(MP_USED(a)) {
case 6:
a5 = MP_DIGIT(a,5);
+ /* FALLTHROUGH */
case 5:
a4 = MP_DIGIT(a,4);
+ /* FALLTHROUGH */
case 4:
a3 = MP_DIGIT(a,3);
+ /* FALLTHROUGH */
case 3:
a2 = MP_DIGIT(a,2);
+ /* FALLTHROUGH */
case 2:
a1 = MP_DIGIT(a,1);
+ /* FALLTHROUGH */
case 1:
a0 = MP_DIGIT(a,0);
}
switch(MP_USED(b)) {
case 6:
r5 = MP_DIGIT(b,5);
+ /* FALLTHROUGH */
case 5:
r4 = MP_DIGIT(b,4);
+ /* FALLTHROUGH */
case 4:
r3 = MP_DIGIT(b,3);
+ /* FALLTHROUGH */
case 3:
r2 = MP_DIGIT(b,2);
+ /* FALLTHROUGH */
case 2:
r1 = MP_DIGIT(b,1);
+ /* FALLTHROUGH */
case 1:
r0 = MP_DIGIT(b,0);
}
@@ -625,16 +651,20 @@ ec_GFp_sub_3(const mp_int *a, const mp_int *b, mp_int *r,
switch(MP_USED(a)) {
case 3:
r2 = MP_DIGIT(a,2);
+ /* FALLTHROUGH */
case 2:
r1 = MP_DIGIT(a,1);
+ /* FALLTHROUGH */
case 1:
r0 = MP_DIGIT(a,0);
}
switch(MP_USED(b)) {
case 3:
b2 = MP_DIGIT(b,2);
+ /* FALLTHROUGH */
case 2:
b1 = MP_DIGIT(b,1);
+ /* FALLTHROUGH */
case 1:
b0 = MP_DIGIT(b,0);
}
@@ -709,20 +739,26 @@ ec_GFp_sub_4(const mp_int *a, const mp_int *b, mp_int *r,
switch(MP_USED(a)) {
case 4:
r3 = MP_DIGIT(a,3);
+ /* FALLTHROUGH */
case 3:
r2 = MP_DIGIT(a,2);
+ /* FALLTHROUGH */
case 2:
r1 = MP_DIGIT(a,1);
+ /* FALLTHROUGH */
case 1:
r0 = MP_DIGIT(a,0);
}
switch(MP_USED(b)) {
case 4:
b3 = MP_DIGIT(b,3);
+ /* FALLTHROUGH */
case 3:
b2 = MP_DIGIT(b,2);
+ /* FALLTHROUGH */
case 2:
b1 = MP_DIGIT(b,1);
+ /* FALLTHROUGH */
case 1:
b0 = MP_DIGIT(b,0);
}
@@ -802,24 +838,32 @@ ec_GFp_sub_5(const mp_int *a, const mp_int *b, mp_int *r,
switch(MP_USED(a)) {
case 5:
r4 = MP_DIGIT(a,4);
+ /* FALLTHROUGH */
case 4:
r3 = MP_DIGIT(a,3);
+ /* FALLTHROUGH */
case 3:
r2 = MP_DIGIT(a,2);
+ /* FALLTHROUGH */
case 2:
r1 = MP_DIGIT(a,1);
+ /* FALLTHROUGH */
case 1:
r0 = MP_DIGIT(a,0);
}
switch(MP_USED(b)) {
case 5:
b4 = MP_DIGIT(b,4);
+ /* FALLTHROUGH */
case 4:
b3 = MP_DIGIT(b,3);
+ /* FALLTHROUGH */
case 3:
b2 = MP_DIGIT(b,2);
+ /* FALLTHROUGH */
case 2:
b1 = MP_DIGIT(b,1);
+ /* FALLTHROUGH */
case 1:
b0 = MP_DIGIT(b,0);
}
@@ -870,28 +914,38 @@ ec_GFp_sub_6(const mp_int *a, const mp_int *b, mp_int *r,
switch(MP_USED(a)) {
case 6:
r5 = MP_DIGIT(a,5);
+ /* FALLTHROUGH */
case 5:
r4 = MP_DIGIT(a,4);
+ /* FALLTHROUGH */
case 4:
r3 = MP_DIGIT(a,3);
+ /* FALLTHROUGH */
case 3:
r2 = MP_DIGIT(a,2);
+ /* FALLTHROUGH */
case 2:
r1 = MP_DIGIT(a,1);
+ /* FALLTHROUGH */
case 1:
r0 = MP_DIGIT(a,0);
}
switch(MP_USED(b)) {
case 6:
b5 = MP_DIGIT(b,5);
+ /* FALLTHROUGH */
case 5:
b4 = MP_DIGIT(b,4);
+ /* FALLTHROUGH */
case 4:
b3 = MP_DIGIT(b,3);
+ /* FALLTHROUGH */
case 3:
b2 = MP_DIGIT(b,2);
+ /* FALLTHROUGH */
case 2:
b1 = MP_DIGIT(b,1);
+ /* FALLTHROUGH */
case 1:
b0 = MP_DIGIT(b,0);
}
diff --git a/usr/src/common/crypto/ecc/ecp_192.c b/usr/src/common/crypto/ecc/ecp_192.c
index 41df2037b8..f1c80f304e 100644
--- a/usr/src/common/crypto/ecc/ecp_192.c
+++ b/usr/src/common/crypto/ecc/ecp_192.c
@@ -42,8 +42,6 @@
* Sun elects to use this software under the MPL license.
*/
-#pragma ident "%Z%%M% %I% %E% SMI"
-
#include "ecp.h"
#include "mpi.h"
#include "mplogic.h"
@@ -96,14 +94,19 @@ ec_GFp_nistp192_mod(const mp_int *a, mp_int *r, const GFMethod *meth)
switch (a_used) {
case 12:
a5b = MP_DIGIT(a, 11);
+ /* FALLTHROUGH */
case 11:
a5a = MP_DIGIT(a, 10);
+ /* FALLTHROUGH */
case 10:
a4b = MP_DIGIT(a, 9);
+ /* FALLTHROUGH */
case 9:
a4a = MP_DIGIT(a, 8);
+ /* FALLTHROUGH */
case 8:
a3b = MP_DIGIT(a, 7);
+ /* FALLTHROUGH */
case 7:
a3a = MP_DIGIT(a, 6);
}
@@ -186,8 +189,10 @@ ec_GFp_nistp192_mod(const mp_int *a, mp_int *r, const GFMethod *meth)
switch (a_used) {
case 6:
a5 = MP_DIGIT(a, 5);
+ /* FALLTHROUGH */
case 5:
a4 = MP_DIGIT(a, 4);
+ /* FALLTHROUGH */
case 4:
a3 = MP_DIGIT(a, 3);
}
@@ -308,16 +313,20 @@ ec_GFp_nistp192_add(const mp_int *a, const mp_int *b, mp_int *r,
switch(MP_USED(a)) {
case 3:
a2 = MP_DIGIT(a,2);
+ /* FALLTHROUGH */
case 2:
a1 = MP_DIGIT(a,1);
+ /* FALLTHROUGH */
case 1:
a0 = MP_DIGIT(a,0);
}
switch(MP_USED(b)) {
case 3:
r2 = MP_DIGIT(b,2);
+ /* FALLTHROUGH */
case 2:
r1 = MP_DIGIT(b,1);
+ /* FALLTHROUGH */
case 1:
r0 = MP_DIGIT(b,0);
}
@@ -389,8 +398,10 @@ ec_GFp_nistp192_sub(const mp_int *a, const mp_int *b, mp_int *r,
switch(MP_USED(a)) {
case 3:
r2 = MP_DIGIT(a,2);
+ /* FALLTHROUGH */
case 2:
r1 = MP_DIGIT(a,1);
+ /* FALLTHROUGH */
case 1:
r0 = MP_DIGIT(a,0);
}
@@ -398,8 +409,10 @@ ec_GFp_nistp192_sub(const mp_int *a, const mp_int *b, mp_int *r,
switch(MP_USED(b)) {
case 3:
b2 = MP_DIGIT(b,2);
+ /* FALLTHROUGH */
case 2:
b1 = MP_DIGIT(b,1);
+ /* FALLTHROUGH */
case 1:
b0 = MP_DIGIT(b,0);
}
diff --git a/usr/src/common/crypto/ecc/ecp_224.c b/usr/src/common/crypto/ecc/ecp_224.c
index 76ae22a2f5..97a6c9bae0 100644
--- a/usr/src/common/crypto/ecc/ecp_224.c
+++ b/usr/src/common/crypto/ecc/ecp_224.c
@@ -42,8 +42,6 @@
* Sun elects to use this software under the MPL license.
*/
-#pragma ident "%Z%%M% %I% %E% SMI"
-
#include "ecp.h"
#include "mpi.h"
#include "mplogic.h"
@@ -90,16 +88,22 @@ ec_GFp_nistp224_mod(const mp_int *a, mp_int *r, const GFMethod *meth)
switch (a_used) {
case 14:
a6b = MP_DIGIT(a, 13);
+ /* FALLTHROUGH */
case 13:
a6a = MP_DIGIT(a, 12);
+ /* FALLTHROUGH */
case 12:
a5b = MP_DIGIT(a, 11);
+ /* FALLTHROUGH */
case 11:
a5a = MP_DIGIT(a, 10);
+ /* FALLTHROUGH */
case 10:
a4b = MP_DIGIT(a, 9);
+ /* FALLTHROUGH */
case 9:
a4a = MP_DIGIT(a, 8);
+ /* FALLTHROUGH */
case 8:
a3b = MP_DIGIT(a, 7);
}
@@ -212,6 +216,7 @@ ec_GFp_nistp224_mod(const mp_int *a, mp_int *r, const GFMethod *meth)
a6 = MP_DIGIT(a, 6);
a6b = a6 >> 32;
a6a_a5b = a6 << 32;
+ /* FALLTHROUGH */
case 6:
a5 = MP_DIGIT(a, 5);
a5b = a5 >> 32;
@@ -219,10 +224,12 @@ ec_GFp_nistp224_mod(const mp_int *a, mp_int *r, const GFMethod *meth)
a5b = a5b << 32;
a5a_a4b = a5 << 32;
a5a = a5 & 0xffffffff;
+ /* FALLTHROUGH */
case 5:
a4 = MP_DIGIT(a, 4);
a5a_a4b |= a4 >> 32;
a4a_a3b = a4 << 32;
+ /* FALLTHROUGH */
case 4:
a3b = MP_DIGIT(a, 3) >> 32;
a4a_a3b |= a3b;
diff --git a/usr/src/common/crypto/ecc/ecp_256.c b/usr/src/common/crypto/ecc/ecp_256.c
index 9a661f07a2..9a68902fa1 100644
--- a/usr/src/common/crypto/ecc/ecp_256.c
+++ b/usr/src/common/crypto/ecc/ecp_256.c
@@ -42,8 +42,6 @@
* Sun elects to use this software under the MPL license.
*/
-#pragma ident "%Z%%M% %I% %E% SMI"
-
#include "ecp.h"
#include "mpi.h"
#include "mplogic.h"
@@ -87,18 +85,25 @@ ec_GFp_nistp256_mod(const mp_int *a, mp_int *r, const GFMethod *meth)
switch (a_used) {
case 16:
a15 = MP_DIGIT(a,15);
+ /* FALLTHROUGH */
case 15:
a14 = MP_DIGIT(a,14);
+ /* FALLTHROUGH */
case 14:
a13 = MP_DIGIT(a,13);
+ /* FALLTHROUGH */
case 13:
a12 = MP_DIGIT(a,12);
+ /* FALLTHROUGH */
case 12:
a11 = MP_DIGIT(a,11);
+ /* FALLTHROUGH */
case 11:
a10 = MP_DIGIT(a,10);
+ /* FALLTHROUGH */
case 10:
a9 = MP_DIGIT(a,9);
+ /* FALLTHROUGH */
case 9:
a8 = MP_DIGIT(a,8);
}
@@ -270,10 +275,13 @@ ec_GFp_nistp256_mod(const mp_int *a, mp_int *r, const GFMethod *meth)
switch (a_used) {
case 8:
a7 = MP_DIGIT(a,7);
+ /* FALLTHROUGH */
case 7:
a6 = MP_DIGIT(a,6);
+ /* FALLTHROUGH */
case 6:
a5 = MP_DIGIT(a,5);
+ /* FALLTHROUGH */
case 5:
a4 = MP_DIGIT(a,4);
}
diff --git a/usr/src/lib/libcurses/screen/scr_reset.c b/usr/src/lib/libcurses/screen/scr_reset.c
index 5d5a359fbf..490863c2e0 100644
--- a/usr/src/lib/libcurses/screen/scr_reset.c
+++ b/usr/src/lib/libcurses/screen/scr_reset.c
@@ -37,8 +37,6 @@
* contributors.
*/
-#pragma ident "%Z%%M% %I% %E% SMI"
-
/*LINTLIBRARY*/
#include "curses_inc.h"
@@ -97,13 +95,13 @@ scr_reset(FILE *filep, int type)
}
/* check magic number */
- if (fread((char *) &magic, sizeof (short), 1, filep) != 1)
+ if (fread((char *)&magic, sizeof (short), 1, filep) != 1)
goto err;
if (magic != SVR3_DUMP_MAGIC_NUMBER)
goto err;
/* get modification time of image in file */
- if (fread((char *) &ttytime, sizeof (time_t), 1, filep) != 1)
+ if (fread((char *)&ttytime, sizeof (time_t), 1, filep) != 1)
goto err;
if ((type != 1) && ((ttyname(cur_term->Filedes) == NULL) ||
@@ -128,13 +126,13 @@ scr_reset(FILE *filep, int type)
((type == 2) && ((win1 = dupwin(win)) == NULL)) ||
(win->_maxy != curscr->_maxy) || (win->_maxx != curscr->_maxx) ||
/* soft labels */
- (fread((char *) &magic, sizeof (int), 1, filep) != 1))
+ (fread((char *)&magic, sizeof (int), 1, filep) != 1))
goto err;
/*
- * if soft labels were dumped, we would like either read them
- * or advance the file pointer pass them
- */
+ * if soft labels were dumped, we would like either read them
+ * or advance the file pointer pass them
+ */
if (magic) {
short i, labmax, lablen;
SLK_MAP *slk = SP->slk;
@@ -144,10 +142,10 @@ scr_reset(FILE *filep, int type)
*/
/*
* char **labdis = SP->slk->_ldis, **labval = SP->slk->_lval;
- */
+ */
- if ((fread((char *) &labmax, sizeof (short), 1, filep) != 1) ||
- (fread((char *) &lablen, sizeof (short), 1, filep) != 1)) {
+ if ((fread((char *)&labmax, sizeof (short), 1, filep) != 1) ||
+ (fread((char *)&lablen, sizeof (short), 1, filep) != 1)) {
goto err;
}
@@ -162,7 +160,7 @@ scr_reset(FILE *filep, int type)
* filep) != lablen) ||
* (fread(labval[i], sizeof (char), lablen,
* filep != lablen))
- */
+ */
if ((fread(slk->_ldis[i], sizeof (char),
lablen, filep) != lablen) ||
(fread(slk->_lval[i],
@@ -172,7 +170,7 @@ scr_reset(FILE *filep, int type)
}
(*_do_slk_tch)();
} else {
- if (fseek(filep, (long) (2 * labmax * lablen *
+ if (fseek(filep, (long)(2 * labmax * lablen *
sizeof (char)), 1) != 0)
goto err;
}
@@ -180,7 +178,7 @@ scr_reset(FILE *filep, int type)
/* read the color information(if any) from the file */
- if (fread((char *) &magic, sizeof (int), 1, filep) != 1)
+ if (fread((char *)&magic, sizeof (int), 1, filep) != 1)
goto err;
if (magic) {
@@ -196,15 +194,15 @@ scr_reset(FILE *filep, int type)
/* new terminal doesn't support color, in order to know how to */
/* deal with the rest of the file */
- if ((fread((char *) &colors, sizeof (int), 1, filep) != 1) ||
- (fread((char *) &color_pairs, sizeof (int), 1,
- filep) != 1) || (fread((char *) &could_change,
+ if ((fread((char *)&colors, sizeof (int), 1, filep) != 1) ||
+ (fread((char *)&color_pairs, sizeof (int), 1,
+ filep) != 1) || (fread((char *)&could_change,
sizeof (char), 1, filep) != 1))
goto err;
if (max_pairs == -1 || cur_term->_pairs_tbl == NULL ||
colors > max_colors || color_pairs > max_pairs) {
- if (fseek(filep, (long) (colors * sizeof (_Color) +
+ if (fseek(filep, (long)(colors * sizeof (_Color) +
color_pairs * sizeof (_Color_pair)), 1) != 0)
goto err;
} else {
@@ -237,7 +235,7 @@ scr_reset(FILE *filep, int type)
/* the old terminal could modify colors, by the new one */
/* cannot skip over color_table info. */
- if (fseek(filep, (long) (colors *
+ if (fseek(filep, (long)(colors *
sizeof (_Color)), 1) != 0)
goto err;
}
@@ -265,7 +263,7 @@ err:
if (ptp->init)
/* LINTED */
(void) init_pair((short)i,
- ptp->foreground, ptp->background);
+ ptp->foreground, ptp->background);
}
free(save_ptp);
}
@@ -289,7 +287,7 @@ err:
/* clear the hash table */
for (y = curscr->_maxy; y > 0; --y)
*hash++ = _NOHASH;
- /* LINTED */ /* Known fall-through on case statement. */
+ /* FALLTHROUGH */
case 0:
{
int saveflag = curscr->_flags & _CANT_BE_IMMED;
diff --git a/usr/src/lib/libdhcputil/common/dhcp_inittab.c b/usr/src/lib/libdhcputil/common/dhcp_inittab.c
index ddaf9d7ab9..f8bcbea0df 100644
--- a/usr/src/lib/libdhcputil/common/dhcp_inittab.c
+++ b/usr/src/lib/libdhcputil/common/dhcp_inittab.c
@@ -1398,8 +1398,7 @@ inittab_msg(const char *fmt, ...)
}
action = INITTAB_MSG_OUTPUT;
-
- /* FALLTHRU into INITTAB_MSG_OUTPUT */
+ /* FALLTHROUGH */
case INITTAB_MSG_OUTPUT:
diff --git a/usr/src/lib/libldap5/sources/ldap/ber/io.c b/usr/src/lib/libldap5/sources/ldap/ber/io.c
index 26d3b7da3a..67e8b775ce 100644
--- a/usr/src/lib/libldap5/sources/ldap/ber/io.c
+++ b/usr/src/lib/libldap5/sources/ldap/ber/io.c
@@ -870,7 +870,7 @@ ber_sockbuf_set_option( Sockbuf *sb, int option, void *value )
switch ( option ) {
case LBER_SOCKBUF_OPT_MAX_INCOMING_SIZE:
sb->sb_max_incoming = *((ber_uint_t *) value);
- /* FALL */
+ /* FALLTHROUGH */
case LBER_SOCKBUF_OPT_TO_FILE:
case LBER_SOCKBUF_OPT_TO_FILE_ONLY:
case LBER_SOCKBUF_OPT_NO_READ_AHEAD:
diff --git a/usr/src/lib/libldap5/sources/ldap/common/friendly.c b/usr/src/lib/libldap5/sources/ldap/common/friendly.c
index 79d602160d..cffccb0f96 100644
--- a/usr/src/lib/libldap5/sources/ldap/common/friendly.c
+++ b/usr/src/lib/libldap5/sources/ldap/common/friendly.c
@@ -2,8 +2,6 @@
* Copyright 2006 Sun Microsystems, Inc. All rights reserved.
* Use is subject to license terms.
*/
-#pragma ident "%Z%%M% %I% %E% SMI"
-
/*
* The contents of this file are subject to the Netscape Public
* License Version 1.1 (the "License"); you may not use this file
@@ -33,12 +31,6 @@
* friendly.c
*/
-#if 0
-#ifndef lint
-static char copyright[] = "@(#) Copyright (c) 1993 Regents of the University of Michigan.\nAll rights reserved.\n";
-#endif
-#endif
-
#include "ldap-int.h"
char *
@@ -53,10 +45,9 @@ ldap_friendly_name( char *filename, char *name, FriendlyMap *map )
if ( map == NULL ) {
return( name );
}
- if ( NULL == name)
- {
- return (name);
- }
+ if ( name == NULL ) {
+ return(name);
+ }
if ( *map == NULL ) {
if ( (fp = fopen( filename, "rF" )) == NULL )
@@ -98,7 +89,7 @@ ldap_friendly_name( char *filename, char *name, FriendlyMap *map )
case '"':
if ( !esc )
found = 1;
- /* FALL */
+ /* FALLTHROUGH */
default:
esc = 0;
break;
diff --git a/usr/src/lib/libldap5/sources/ldap/common/getdn.c b/usr/src/lib/libldap5/sources/ldap/common/getdn.c
index 4ab49eef28..db3b93de06 100644
--- a/usr/src/lib/libldap5/sources/ldap/common/getdn.c
+++ b/usr/src/lib/libldap5/sources/ldap/common/getdn.c
@@ -3,8 +3,6 @@
* All rights reserved.
*/
-#pragma ident "%Z%%M% %I% %E% SMI"
-
/*
* The contents of this file are subject to the Netscape Public
* License Version 1.1 (the "License"); you may not use this file
@@ -34,12 +32,6 @@
* getdn.c
*/
-#if 0
-#ifndef lint
-static char copyright[] = "@(#) Copyright (c) 1990 Regents of the University of Michigan.\nAll rights reserved.\n";
-#endif
-#endif
-
#include "ldap-int.h"
char *
@@ -238,6 +230,7 @@ ldap_explode( const char *dn, const int notypes, const int nametype )
state = INQUOTE;
break;
case '+': if ( nametype != LDAP_RDN ) break;
+ /* FALLTHROUGH */
case ';':
case ',':
case '\0':
@@ -323,7 +316,7 @@ ldap_explode( const char *dn, const int notypes, const int nametype )
if ( state == OUTQUOTE ) {
goteq = 1;
}
- /* FALL */
+ /* FALLTHROUGH */
default:
plen = LDAP_UTF8LEN(p);
break;
diff --git a/usr/src/lib/libldap5/sources/ldap/common/ldaputf8.c b/usr/src/lib/libldap5/sources/ldap/common/ldaputf8.c
index 65bc85a378..b99a43e448 100644
--- a/usr/src/lib/libldap5/sources/ldap/common/ldaputf8.c
+++ b/usr/src/lib/libldap5/sources/ldap/common/ldaputf8.c
@@ -1,5 +1,3 @@
-#pragma ident "%Z%%M% %I% %E% SMI"
-
/*
* The contents of this file are subject to the Netscape Public
* License Version 1.1 (the "License"); you may not use this file
@@ -51,10 +49,15 @@ ldap_utf8next (char* s)
switch (UTF8len [(*next >> 2) & 0x3F]) {
case 0: /* erroneous: s points to the middle of a character. */
case 6: if ((*++next & 0xC0) != 0x80) break;
+ /* FALLTHROUGH */
case 5: if ((*++next & 0xC0) != 0x80) break;
+ /* FALLTHROUGH */
case 4: if ((*++next & 0xC0) != 0x80) break;
+ /* FALLTHROUGH */
case 3: if ((*++next & 0xC0) != 0x80) break;
+ /* FALLTHROUGH */
case 2: if ((*++next & 0xC0) != 0x80) break;
+ /* FALLTHROUGH */
case 1: ++next;
}
return (char*) next;
@@ -88,10 +91,15 @@ ldap_utf8copy (char* dst, const char* src)
switch (UTF8len [(*s >> 2) & 0x3F]) {
case 0: /* erroneous: s points to the middle of a character. */
case 6: *dst++ = *s++; if ((*s & 0xC0) != 0x80) break;
+ /* FALLTHROUGH */
case 5: *dst++ = *s++; if ((*s & 0xC0) != 0x80) break;
+ /* FALLTHROUGH */
case 4: *dst++ = *s++; if ((*s & 0xC0) != 0x80) break;
+ /* FALLTHROUGH */
case 3: *dst++ = *s++; if ((*s & 0xC0) != 0x80) break;
+ /* FALLTHROUGH */
case 2: *dst++ = *s++; if ((*s & 0xC0) != 0x80) break;
+ /* FALLTHROUGH */
case 1: *dst = *s++;
}
return s - (const unsigned char*)src;
diff --git a/usr/src/lib/libtecla/common/expand.c b/usr/src/lib/libtecla/common/expand.c
index db00c7bfff..67991270d0 100644
--- a/usr/src/lib/libtecla/common/expand.c
+++ b/usr/src/lib/libtecla/common/expand.c
@@ -29,8 +29,6 @@
* of the copyright holder.
*/
-#pragma ident "%Z%%M% %I% %E% SMI"
-
/*
* If file-system access is to be excluded, this module has no function,
* so all of its code should be excluded.
@@ -887,6 +885,7 @@ static int ef_string_matches_pattern(const char *file, const char *pattern,
/*
* A normal character to be matched explicitly.
*/
+ /* FALLTHROUGH */
default:
if(*fptr == *pptr) {
fptr++;
diff --git a/usr/src/lib/libtecla/common/getline.c b/usr/src/lib/libtecla/common/getline.c
index b717784666..501c2841b6 100644
--- a/usr/src/lib/libtecla/common/getline.c
+++ b/usr/src/lib/libtecla/common/getline.c
@@ -35,8 +35,6 @@
* Copyright (c) 2016 by Delphix. All rights reserved.
*/
-#pragma ident "%Z%%M% %I% %E% SMI"
-
/*
* Standard headers.
*/
@@ -6481,6 +6479,7 @@ static int _gl_parse_config_line(GetLine *gl, void *stream, GlcGetcFn *getc_fn,
switch(argc) {
case 3:
action = argv[2];
+ /* FALLTHROUGH */
case 2: /* Note the intentional fallthrough */
keyseq = argv[1];
/*
diff --git a/usr/src/lib/libtecla/common/history.c b/usr/src/lib/libtecla/common/history.c
index 377b802890..e1bbbaa8a9 100644
--- a/usr/src/lib/libtecla/common/history.c
+++ b/usr/src/lib/libtecla/common/history.c
@@ -34,8 +34,6 @@
* Use is subject to license terms.
*/
-#pragma ident "%Z%%M% %I% %E% SMI"
-
#include <stdlib.h>
#include <stdio.h>
#include <string.h>
@@ -2722,6 +2720,7 @@ static int glh_line_matches_glob(GlhLineStream *lstr, GlhLineStream *pstr)
/*
* A normal character to be matched explicitly.
*/
+ /* FALLTHROUGH */
default:
if(lstr->c == pstr->c) {
glh_step_stream(lstr);
diff --git a/usr/src/lib/pkcs11/libpkcs11/common/metaAttrManager.c b/usr/src/lib/pkcs11/libpkcs11/common/metaAttrManager.c
index 76fae97a64..d404b567c3 100644
--- a/usr/src/lib/pkcs11/libpkcs11/common/metaAttrManager.c
+++ b/usr/src/lib/pkcs11/libpkcs11/common/metaAttrManager.c
@@ -136,6 +136,7 @@ get_master_attributes_by_template(
case CKO_DATA:
/* CKO_DATA has no subtype, just pretend it is found */
found = B_TRUE;
+ break;
default:
/* unknown object class */
return (CKR_ATTRIBUTE_VALUE_INVALID);
diff --git a/usr/src/lib/sun_sas/common/devtree_device_disco.c b/usr/src/lib/sun_sas/common/devtree_device_disco.c
index 90fb546051..53254766ac 100644
--- a/usr/src/lib/sun_sas/common/devtree_device_disco.c
+++ b/usr/src/lib/sun_sas/common/devtree_device_disco.c
@@ -718,7 +718,7 @@ get_attached_paths_info(di_path_t path, struct sun_sas_port *port_ptr)
break;
}
}
- if (charptr != '\0') {
+ if (*charptr != '\0') {
tmpAddr = htonll(strtoll(charptr, NULL, 16));
(void) memcpy(&SASAddress.wwn[0], &tmpAddr, 8);
} else {
diff --git a/usr/src/lib/sun_sas/common/sun_sas.c b/usr/src/lib/sun_sas/common/sun_sas.c
index 3211a5924f..0494238137 100644
--- a/usr/src/lib/sun_sas/common/sun_sas.c
+++ b/usr/src/lib/sun_sas/common/sun_sas.c
@@ -277,6 +277,7 @@ lock(mutex_t *mp)
case ENOTRECOVERABLE:
log(LOG_DEBUG, ROUTINE,
"Lock failed: not recoverable 0x%x", mp);
+ break;
default:
if (loop > DEADLOCK_WARNING) {
log(LOG_DEBUG, ROUTINE,