From d7fdecd2374114124f192b3bfc84d2d294bb45ab Mon Sep 17 00:00:00 2001 From: Toomas Soome Date: Sat, 1 Jul 2017 10:54:17 +0300 Subject: 9154 libldap5: this statement may fall through Reviewed by: Sebastian Wiedenroth Reviewed by: Jason King Approved by: Richard Lowe --- usr/src/lib/libldap5/sources/ldap/common/friendly.c | 17 ++++------------- 1 file changed, 4 insertions(+), 13 deletions(-) (limited to 'usr/src/lib/libldap5/sources/ldap/common/friendly.c') 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; -- cgit v1.2.3