diff options
author | Toomas Soome <tsoome@me.com> | 2017-08-08 16:25:33 +0300 |
---|---|---|
committer | Dan McDonald <danmcd@joyent.com> | 2017-12-04 10:24:20 -0500 |
commit | 13ddffeef026c03c1ddee21119335c00d6b7f3ae (patch) | |
tree | b079f4d4995c8c66c58b47564712402eb1ed09a9 | |
parent | cd964fce751ca752af4158842063a9579a2d4331 (diff) | |
download | illumos-gate-13ddffeef026c03c1ddee21119335c00d6b7f3ae.tar.gz |
8827 libldap5: variable set but not used
Reviewed by: C Fraire <cfraire@me.com>
Reviewed by: Gary Mills <gary_mills@fastmail.fm>
Approved by: Dan McDonald <danmcd@joyent.com>
-rw-r--r-- | usr/src/lib/libldap5/sources/ldap/common/tmplout.c | 9 |
1 files changed, 2 insertions, 7 deletions
diff --git a/usr/src/lib/libldap5/sources/ldap/common/tmplout.c b/usr/src/lib/libldap5/sources/ldap/common/tmplout.c index 91b2c7ef4a..0e4e9a5336 100644 --- a/usr/src/lib/libldap5/sources/ldap/common/tmplout.c +++ b/usr/src/lib/libldap5/sources/ldap/common/tmplout.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 @@ -448,7 +446,7 @@ do_entry2text_search( char *urlprefix ) { - int err, freedn, html; + int err, freedn; char *buf, **fetchattrs, **vals; LDAPMessage *ldmp; struct ldap_disptmpl *tmpl; @@ -464,8 +462,6 @@ do_entry2text_search( return( err ); } - html = ( urlprefix != NULL ); - timeout.tv_sec = SEARCH_TIMEOUT_SECS; timeout.tv_usec = 0; @@ -1039,7 +1035,7 @@ searchaction( LDAP *ld, char *buf, char *base, LDAPMessage *entry, char *dn, { int err = LDAP_SUCCESS, lderr, i, count, html; char **vals, **members; - char *value, *filtpattern, *attr, *selectname; + char *value, *filtpattern, *attr; char *retattrs[2], filter[ 256 ]; LDAPMessage *ldmp; struct timeval timeout; @@ -1056,7 +1052,6 @@ searchaction( LDAP *ld, char *buf, char *base, LDAPMessage *entry, char *dn, filtpattern = tip->ti_args[ 1 ]; retattrs[ 0 ] = tip->ti_args[ 2 ]; retattrs[ 1 ] = NULL; - selectname = tip->ti_args[ 3 ]; vals = NULL; if ( attr == NULL ) { |