Skip to content

Commit

Permalink
rename struct krb5_name_canon_* name collisions
Browse files Browse the repository at this point in the history
C++ does not permit struct names and typedef names to be the same.
Rename

  struct krb5_name_canon_rule to struct krb5_name_canon_rule_data

and

  struct krb5_name_canon_iterator to struct krb5_name_canon_iterator_data

Change-Id: I92766e0878bf0beef92de1649baf9e5cafbf86aa
  • Loading branch information
jaltman committed Oct 6, 2013
1 parent a2ca442 commit c1f822f
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions lib/krb5/krb5.h
Expand Up @@ -929,8 +929,8 @@ typedef enum krb5_name_canon_rule_options {
KRB5_NCRO_SECURE = 1 << 2
} krb5_name_canon_rule_options;

typedef struct krb5_name_canon_rule *krb5_name_canon_rule;
typedef struct krb5_name_canon_iterator *krb5_name_canon_iterator;
typedef struct krb5_name_canon_rule_data *krb5_name_canon_rule;
typedef struct krb5_name_canon_iterator_data *krb5_name_canon_iterator;

/*
*
Expand Down
4 changes: 2 additions & 2 deletions lib/krb5/principal.c
Expand Up @@ -1256,7 +1256,7 @@ typedef enum krb5_name_canon_rule_type {
KRB5_NCRT_NSS
} krb5_name_canon_rule_type;

struct krb5_name_canon_rule {
struct krb5_name_canon_rule_data {
krb5_name_canon_rule next;
krb5_name_canon_rule_type type;
krb5_name_canon_rule_options options;
Expand Down Expand Up @@ -1931,7 +1931,7 @@ _krb5_free_name_canon_rules(krb5_context context, krb5_name_canon_rule rules)
rules = NULL;
}

struct krb5_name_canon_iterator {
struct krb5_name_canon_iterator_data {
krb5_name_canon_rule rules;
krb5_name_canon_rule rule;
krb5_const_principal in_princ;
Expand Down

0 comments on commit c1f822f

Please sign in to comment.