mirror of
https://git.openldap.org/openldap/openldap.git
synced 2025-12-24 00:29:35 -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;
|
FILE *fp;
|
||||||
char *entry = NULL;
|
char *entry = NULL;
|
||||||
|
|
||||||
if ( fp = fopen( filename, "r" )) {
|
if ( (fp = fopen( filename, "r" )) != NULL ) {
|
||||||
char line[BUFSIZ];
|
char line[BUFSIZ];
|
||||||
|
|
||||||
if ( fgets( line, BUFSIZ, fp )) {
|
if ( fgets( line, BUFSIZ, fp )) {
|
||||||
|
|
|
||||||
|
|
@ -259,7 +259,7 @@ get_search_filters( char *filename, char *filters[] )
|
||||||
FILE *fp;
|
FILE *fp;
|
||||||
int filter = 0;
|
int filter = 0;
|
||||||
|
|
||||||
if ( fp = fopen( filename, "r" )) {
|
if ( (fp = fopen( filename, "r" )) != NULL ) {
|
||||||
char line[BUFSIZ];
|
char line[BUFSIZ];
|
||||||
|
|
||||||
while (( filter < MAXREQS ) && ( fgets( line, BUFSIZ, fp ))) {
|
while (( filter < MAXREQS ) && ( fgets( line, BUFSIZ, fp ))) {
|
||||||
|
|
@ -283,7 +283,7 @@ get_read_entries( char *filename, char *entries[] )
|
||||||
FILE *fp;
|
FILE *fp;
|
||||||
int entry = 0;
|
int entry = 0;
|
||||||
|
|
||||||
if ( fp = fopen( filename, "r" )) {
|
if ( (fp = fopen( filename, "r" )) != NULL ) {
|
||||||
char line[BUFSIZ];
|
char line[BUFSIZ];
|
||||||
|
|
||||||
while (( entry < MAXREQS ) && ( fgets( line, BUFSIZ, fp ))) {
|
while (( entry < MAXREQS ) && ( fgets( line, BUFSIZ, fp ))) {
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue