mirror of
https://git.openldap.org/openldap/openldap.git
synced 2025-12-20 22:59:34 -05:00
Shut up gcc -Wparentheses
This commit is contained in:
parent
94c6048f2f
commit
d8ac5cabb4
2 changed files with 3 additions and 3 deletions
|
|
@ -185,7 +185,7 @@ get_add_entry( char *filename, LDAPMod ***mods )
|
|||
FILE *fp;
|
||||
char *entry = NULL;
|
||||
|
||||
if ( fp = fopen( filename, "r" )) {
|
||||
if ( (fp = fopen( filename, "r" )) != NULL ) {
|
||||
char line[BUFSIZ];
|
||||
|
||||
if ( fgets( line, BUFSIZ, fp )) {
|
||||
|
|
|
|||
|
|
@ -259,7 +259,7 @@ get_search_filters( char *filename, char *filters[] )
|
|||
FILE *fp;
|
||||
int filter = 0;
|
||||
|
||||
if ( fp = fopen( filename, "r" )) {
|
||||
if ( (fp = fopen( filename, "r" )) != NULL ) {
|
||||
char line[BUFSIZ];
|
||||
|
||||
while (( filter < MAXREQS ) && ( fgets( line, BUFSIZ, fp ))) {
|
||||
|
|
@ -283,7 +283,7 @@ get_read_entries( char *filename, char *entries[] )
|
|||
FILE *fp;
|
||||
int entry = 0;
|
||||
|
||||
if ( fp = fopen( filename, "r" )) {
|
||||
if ( (fp = fopen( filename, "r" )) != NULL ) {
|
||||
char line[BUFSIZ];
|
||||
|
||||
while (( entry < MAXREQS ) && ( fgets( line, BUFSIZ, fp ))) {
|
||||
|
|
|
|||
Loading…
Reference in a new issue