static int cmp_gss_names(gss_name_t n1, gss_name_t n2)
{
- OM_uint32 emaj, emin;
+ OM_uint32 emin;
int equal;
- if (GSS_ERROR(emaj = gss_compare_name(&emin, n1, n2, &equal)))
+ if (GSS_ERROR(gss_compare_name(&emin, n1, n2, &equal)))
return(0);
return(equal);
#include <memory.h>
#endif
-static const char kg_arcfour_l40[] = "fortybits";
-
static krb5_error_code
kg_copy_keys(krb5_context context, krb5_gss_ctx_id_rec *ctx, krb5_key subkey)
{
krb5_boolean retval;
gss_buffer_desc caller_buf;
gss_OID caller_oid;
- OM_uint32 emaj, emin;
+ OM_uint32 emin;
krb5_error_code code;
krb5_principal caller_princ;
- if (GSS_ERROR(emaj = gss_display_name(&emin, caller, &caller_buf,
- &caller_oid)))
+ if (GSS_ERROR(gss_display_name(&emin, caller, &caller_buf, &caller_oid)))
return FALSE;
code = krb5_parse_name(kcontext, (char *) caller_buf.value,
int nfds;
};
-static const char *const state_strings[] = {
- "INITIALIZING", "CONNECTING", "WRITING", "READING", "FAILED"
-};
-
/* connection states */
enum conn_states { INITIALIZING, CONNECTING, WRITING, READING, FAILED };
struct incoming_message {
ure_exec(ure_dfa_t dfa, int flags, ucs2_t *text, unsigned long textlen,
unsigned long *match_start, unsigned long *match_end)
{
- int i, j, matched, found, skip;
+ int i, j, matched, found;
unsigned long ms, me;
ucs4_t c;
ucs2_t *sp, *ep, *lp;
stp = dfa->states;
- for (found = skip = 0; found == 0 && sp < ep; ) {
+ for (found = 0; found == 0 && sp < ep; ) {
lp = sp;
c = *sp++;
const HASHINFO *info;
{
struct stat statbuf;
- int32_t nelem;
- nelem = 1;
hashp->hdr.nkeys = 0;
hashp->hdr.lorder = DB_BYTE_ORDER;
hashp->hdr.bsize = DEF_BUCKET_SIZE;
HTAB *hashp;
u_int32_t page_size;
{
- u_int32_t num_copied, i;
+ u_int32_t num_copied;
u_int8_t *hdr_dest;
num_copied = 0;
- i = 0;
hdr_dest = (u_int8_t *)&hashp->hdr;
#if DB_BYTE_ORDER == DB_LITTLE_ENDIAN
HASHHDR whdr;
#endif
- u_int32_t num_copied, i;
+ u_int32_t num_copied;
- num_copied = i = 0;
+ num_copied = 0;
whdrp = &hashp->hdr;
#if DB_BYTE_ORDER == DB_LITTLE_ENDIAN
PAGE16 *pagep, *hold_pagep;
db_pgno_t next_pgno;
int32_t ksize;
- u_int16_t bytes;
int8_t *kkey;
ksize = size;
kkey = key;
- bytes = 0;
hold_pagep = NULL;
/* Chances are, hashp->cpage is the base page. */
char *me = progname;
krb5_error_code retval = 0;
krb5_boolean print_usage = FALSE;
- char *basedn = NULL;
char **list = NULL;
char **plist = NULL;
if ((retval = init_ldap_realm (argc, argv)))
goto cleanup;
- retval = krb5_ldap_list_policy(util_context, basedn, &list);
+ retval = krb5_ldap_list_policy(util_context, NULL, &list);
if ((retval != 0) || (list == NULL))
goto cleanup;
free (list);
}
- if (basedn)
- free (basedn);
-
if (print_usage) {
db_usage(LIST_POLICY);
}
void
k5_vset_error(struct errinfo *ep, long code, const char *fmt, va_list args)
{
- char *str, *slash;
+ char *str;
k5_clear_error(ep);
ep->code = code;