Rename flags union.

git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@2242 ec53bebd-3082-4978-b11e-865c3cabbd6b
This commit is contained in:
Johan Danielsson
1997-07-13 02:51:56 +00:00
parent c284fdae80
commit 6c4d1be01b
2 changed files with 5 additions and 5 deletions

View File

@@ -42,7 +42,7 @@ hdb_entry2value(krb5_context context, hdb_entry *ent, krb5_data *value)
krb5_store_int32(sp, ent->last_change);
krb5_store_principal(sp, ent->changed_by);
krb5_store_int32(sp, ent->expires);
krb5_store_int32(sp, ent->u.flags);
krb5_store_int32(sp, ent->flags.i);
krb5_storage_to_data(sp, value);
krb5_storage_free(sp);
}
@@ -67,7 +67,7 @@ hdb_value2entry(krb5_context context, krb5_data *value, hdb_entry *ent)
krb5_ret_int32(sp, &tmp);
ent->expires = tmp;
krb5_ret_int32(sp, &tmp);
ent->u.flags = tmp;
ent->flags.i = tmp;
krb5_storage_free(sp);
}

View File

@@ -15,7 +15,7 @@ typedef struct hdb_entry{
krb5_principal changed_by; /* Who did last update */
time_t expires; /* Time when principal expires */
union {
int flags;
int i;
struct {
int initial:1; /* Require AS_REQ */
int forwardable:1; /* Ticket may be forwardable */
@@ -23,8 +23,8 @@ typedef struct hdb_entry{
int allow_postdate:1; /* Ticket may be postdated */
int server:1; /* Principal may be server */
int locked:1; /* Principal is locked */
}s;
}u;
}b;
}flags;
}hdb_entry;
typedef struct HDB{