Print this page
5910 libnisdb won't build with modern GCC

*** 17,26 **** --- 17,27 ---- * information: Portions Copyright [yyyy] [name of copyright owner] * * CDDL HEADER END */ /* + * Copyright 2015 Gary Mills * Copyright 2008 Sun Microsystems, Inc. All rights reserved. * Use is subject to license terms. */ #include <synch.h>
*** 513,523 **** LDAP *ld; int ldapVersion = LDAP_VERSION3; int derefOption = LDAP_DEREF_ALWAYS; int timelimit = proxyInfo.search_time_limit; int sizelimit = proxyInfo.search_size_limit; - char *myself = "ldapInit"; if (srv == 0) return (0); if (use_ssl) { --- 514,523 ----
*** 616,626 **** * Return LDAP_UNAVAILABLE upon success, in which case the caller mustn't * try to use the structure pointer in any way. */ static int freeCon(__nis_ldap_conn_t *lc) { - char *myself = "freeCon"; if (!assertExclusive(lc)) return (LDAP_PARAM_ERROR); incrementRC(lc); --- 616,625 ----
*** 1032,1042 **** (void) rw_unlock(&ldapConLock); return (LDAP_NO_MEMORY); } /* Remove leading white space */ ! for (0; *sl == ' ' || *sl == '\t'; sl++); /* Create connection for each server on the list */ for (s = sl; *s != '\0'; s = e+1) { int l; --- 1031,1041 ---- (void) rw_unlock(&ldapConLock); return (LDAP_NO_MEMORY); } /* Remove leading white space */ ! for (; *sl == ' ' || *sl == '\t'; sl++); /* Create connection for each server on the list */ for (s = sl; *s != '\0'; s = e+1) { int l;
*** 2225,2235 **** int stat, add = 0; LDAPMod **mods = 0; __nis_ldap_conn_t *lc; struct timeval tv; LDAPMessage *msg = 0; - char *myself = "ldapModify"; int msgid; int lderr; char **referralsp = NULL; bool_t delete = FALSE; --- 2224,2233 ----