aboutsummaryrefslogtreecommitdiffstats
path: root/epan/dissectors/packet-kerberos.c
diff options
context:
space:
mode:
authorwmeier <wmeier@f5534014-38df-0310-8fa8-9805f1628bb7>2008-12-15 20:35:13 +0000
committerwmeier <wmeier@f5534014-38df-0310-8fa8-9805f1628bb7>2008-12-15 20:35:13 +0000
commitfdc621e45d700e618bac1273797625981952600c (patch)
tree5fa7915d741c2f2564378b1878d3b056752685c3 /epan/dissectors/packet-kerberos.c
parent7dac48b4ff5b0b7b8692c106c375c142810695d7 (diff)
Trivial change to use gboolean & etc for TRUE/FALSE variables
git-svn-id: http://anonsvn.wireshark.org/wireshark/trunk@27007 f5534014-38df-0310-8fa8-9805f1628bb7
Diffstat (limited to 'epan/dissectors/packet-kerberos.c')
-rw-r--r--epan/dissectors/packet-kerberos.c18
1 files changed, 9 insertions, 9 deletions
diff --git a/epan/dissectors/packet-kerberos.c b/epan/dissectors/packet-kerberos.c
index 8f683ad973..92ca6c6772 100644
--- a/epan/dissectors/packet-kerberos.c
+++ b/epan/dissectors/packet-kerberos.c
@@ -432,11 +432,11 @@ read_keytab_file(const char *filename)
krb5_keytab_entry key;
krb5_kt_cursor cursor;
enc_key_t *new_key;
- static int first_time=1;
+ static gboolean first_time=TRUE;
-printf("read keytab file %s\n", filename);
+ printf("read keytab file %s\n", filename);
if(first_time){
- first_time=0;
+ first_time=FALSE;
ret = krb5_init_context(&krb5_ctx);
if(ret){
return;
@@ -500,7 +500,7 @@ decrypt_krb5_data(proto_tree *tree, packet_info *pinfo,
int keytype,
int *datalen)
{
- static int first_time=1;
+ static gboolean first_time=TRUE;
krb5_error_code ret;
enc_key_t *ek;
static krb5_data data = {0,0,NULL};
@@ -516,7 +516,7 @@ decrypt_krb5_data(proto_tree *tree, packet_info *pinfo,
/* should this have a destroy context ? MIT people would know */
if(first_time){
- first_time=0;
+ first_time=FALSE;
read_keytab_file(keytab_filename);
}
@@ -571,10 +571,10 @@ read_keytab_file(const char *filename)
krb5_keytab_entry key;
krb5_kt_cursor cursor;
enc_key_t *new_key;
- static int first_time=1;
+ static gboolean first_time=TRUE;
if(first_time){
- first_time=0;
+ first_time=FALSE;
ret = krb5_init_context(&krb5_ctx);
if(ret){
return;
@@ -637,7 +637,7 @@ decrypt_krb5_data(proto_tree *tree, packet_info *pinfo,
int keytype,
int *datalen)
{
- static int first_time=1;
+ static gboolean first_time=TRUE;
krb5_error_code ret;
krb5_data data;
enc_key_t *ek;
@@ -652,7 +652,7 @@ decrypt_krb5_data(proto_tree *tree, packet_info *pinfo,
/* should this have a destroy context ? Heimdal people would know */
if(first_time){
- first_time=0;
+ first_time=FALSE;
read_keytab_file(keytab_filename);
}