diff options
Diffstat (limited to 'src/kadmin')
| -rw-r--r-- | src/kadmin/dbutil/ChangeLog | 5 | ||||
| -rw-r--r-- | src/kadmin/dbutil/dump.c | 8 |
2 files changed, 9 insertions, 4 deletions
diff --git a/src/kadmin/dbutil/ChangeLog b/src/kadmin/dbutil/ChangeLog index d8b1e59bb9..39f2e63d90 100644 --- a/src/kadmin/dbutil/ChangeLog +++ b/src/kadmin/dbutil/ChangeLog @@ -1,5 +1,10 @@ 2001-06-18 Ezra Peisach <epeisach@mit.edu> + * dump.c (name_matches): Cleanup warning of assignments in + conditionals. + +2001-06-18 Ezra Peisach <epeisach@mit.edu> + * dump.c: Include regex.h if exists and if HAVE_REGCOMP defined. Preior to this, regex.h was never included. diff --git a/src/kadmin/dbutil/dump.c b/src/kadmin/dbutil/dump.c index 3bfc4ebafe..dfdfb7dee1 100644 --- a/src/kadmin/dbutil/dump.c +++ b/src/kadmin/dbutil/dump.c @@ -356,9 +356,8 @@ name_matches(name, arglist) /* * Compile the regular expression. */ - if (match_error = regcomp(&match_exp, - arglist->names[i], - REG_EXTENDED)) { + match_error = regcomp(&match_exp, arglist->names[i], REG_EXTENDED); + if (match_error) { errmsg_size = regerror(match_error, &match_exp, match_errmsg, @@ -369,7 +368,8 @@ name_matches(name, arglist) /* * See if we have a match. */ - if (match_error = regexec(&match_exp, name, 1, &match_match, 0)) { + match_error = regexec(&match_exp, name, 1, &match_match, 0); + if (match_error) { if (match_error != REG_NOMATCH) { errmsg_size = regerror(match_error, &match_exp, |
