From epeisach@engrailed.mit.edu Thu Sep 2 10:24:09 1999
Received: from MIT.EDU (SOUTH-STATION-ANNEX.MIT.EDU [18.72.1.2]) by rt-11.MIT.EDU (8.7.5/8.7.3) with SMTP id KAA09380 for <bugs@RT-11.MIT.EDU>; Thu, 2 Sep 1999 10:24:09 -0400
Received: from ENGRAILED.MIT.EDU by MIT.EDU with SMTP
id AA29981; Thu, 2 Sep 99 10:23:58 EDT
Received: (from epeisach@localhost) by engrailed.mit.edu (980427.SGI.8.8.8/970903.SGI.AUTOCF) id KAA65429; Thu, 2 Sep 1999 10:13:15 -0400 (EDT)
Message-Id: <199909021413.KAA65429@engrailed.mit.edu>
Date: Thu, 2 Sep 1999 10:13:15 -0400 (EDT)
From: epeisach@engrailed.mit.edu (Ezra Peisach)
Reply-To: epeisach@engrailed.mit.edu
To: krb5-bugs@MIT.EDU
Subject: lib/krb5/keytab/srvtab compiler warnings
X-Send-Pr-Version: 3.99
"../../../../../src/lib/krb5/keytab/srvtab/kts_ops.c", line 36: warning(1140):
a value of type "krb5_error_code (*)(krb5_context, krb5_keytab,
krb5_principal, krb5_kvno, krb5_enctype, krb5_keytab_entry *)"
cannot be used to initialize an entity of type "krb5_error_code
(*)(krb5_context, krb5_keytab, krb5_const_principal, krb5_kvno,
krb5_enctype, krb5_keytab_entry *)"
krb5_ktsrvtab_get_entry,
Change the function to take krb5_const_principal instead of
krb5_principal.
*** kts_g_ent.c 1999/09/02 14:06:33 1.1
--- kts_g_ent.c 1999/09/02 14:07:37
***************
*** 33,39 ****
krb5_ktsrvtab_get_entry(context, id, principal, kvno, enctype, entry)
krb5_context context;
krb5_keytab id;
! krb5_principal principal;
krb5_kvno kvno;
krb5_enctype enctype;
krb5_keytab_entry * entry;
--- 33,39 ----
krb5_ktsrvtab_get_entry(context, id, principal, kvno, enctype, entry)
krb5_context context;
krb5_keytab id;
! krb5_const_principal principal;
krb5_kvno kvno;
krb5_enctype enctype;
krb5_keytab_entry * entry;
*** ktsrvtab.h 1999/09/02 14:06:15 1.1
--- ktsrvtab.h 1999/09/02 14:06:22
***************
*** 77,83 ****
krb5_error_code KRB5_CALLCONV krb5_ktsrvtab_get_entry
PROTOTYPE((krb5_context,
krb5_keytab,
! krb5_principal,
krb5_kvno,
krb5_enctype,
krb5_keytab_entry *));
--- 77,83 ----
krb5_error_code KRB5_CALLCONV krb5_ktsrvtab_get_entry
PROTOTYPE((krb5_context,
krb5_keytab,
! krb5_const_principal,
krb5_kvno,
krb5_enctype,
krb5_keytab_entry *));
Received: from MIT.EDU (SOUTH-STATION-ANNEX.MIT.EDU [18.72.1.2]) by rt-11.MIT.EDU (8.7.5/8.7.3) with SMTP id KAA09380 for <bugs@RT-11.MIT.EDU>; Thu, 2 Sep 1999 10:24:09 -0400
Received: from ENGRAILED.MIT.EDU by MIT.EDU with SMTP
id AA29981; Thu, 2 Sep 99 10:23:58 EDT
Received: (from epeisach@localhost) by engrailed.mit.edu (980427.SGI.8.8.8/970903.SGI.AUTOCF) id KAA65429; Thu, 2 Sep 1999 10:13:15 -0400 (EDT)
Message-Id: <199909021413.KAA65429@engrailed.mit.edu>
Date: Thu, 2 Sep 1999 10:13:15 -0400 (EDT)
From: epeisach@engrailed.mit.edu (Ezra Peisach)
Reply-To: epeisach@engrailed.mit.edu
To: krb5-bugs@MIT.EDU
Subject: lib/krb5/keytab/srvtab compiler warnings
X-Send-Pr-Version: 3.99
Show quoted text
>Number: 746
>Category: krb5-libs
>Synopsis: function in dispatch table has wrong arguments
>Confidential: no
>Severity: non-critical
>Priority: low
>Responsible: krb5-unassigned
>State: open
>Class: sw-bug
>Submitter-Id: unknown
>Arrival-Date: Thu Sep 02 10:25:01 EDT 1999
>Last-Modified:
>Originator: Ezra Peisach
>Organization:
MIT>Category: krb5-libs
>Synopsis: function in dispatch table has wrong arguments
>Confidential: no
>Severity: non-critical
>Priority: low
>Responsible: krb5-unassigned
>State: open
>Class: sw-bug
>Submitter-Id: unknown
>Arrival-Date: Thu Sep 02 10:25:01 EDT 1999
>Last-Modified:
>Originator: Ezra Peisach
>Organization:
Show quoted text
>Release: krb5-1.1-beta1
>Environment:
System: IRIX64 engrailed 6.5 05190004 IP30>Environment:
Show quoted text
>Description:
Warning during compiling:"../../../../../src/lib/krb5/keytab/srvtab/kts_ops.c", line 36: warning(1140):
a value of type "krb5_error_code (*)(krb5_context, krb5_keytab,
krb5_principal, krb5_kvno, krb5_enctype, krb5_keytab_entry *)"
cannot be used to initialize an entity of type "krb5_error_code
(*)(krb5_context, krb5_keytab, krb5_const_principal, krb5_kvno,
krb5_enctype, krb5_keytab_entry *)"
krb5_ktsrvtab_get_entry,
Show quoted text
>How-To-Repeat:
Compile with compiler that complains about prototypes mismatchesShow quoted text
>Fix:
Change the function to take krb5_const_principal instead of
krb5_principal.
*** kts_g_ent.c 1999/09/02 14:06:33 1.1
--- kts_g_ent.c 1999/09/02 14:07:37
***************
*** 33,39 ****
krb5_ktsrvtab_get_entry(context, id, principal, kvno, enctype, entry)
krb5_context context;
krb5_keytab id;
! krb5_principal principal;
krb5_kvno kvno;
krb5_enctype enctype;
krb5_keytab_entry * entry;
--- 33,39 ----
krb5_ktsrvtab_get_entry(context, id, principal, kvno, enctype, entry)
krb5_context context;
krb5_keytab id;
! krb5_const_principal principal;
krb5_kvno kvno;
krb5_enctype enctype;
krb5_keytab_entry * entry;
*** ktsrvtab.h 1999/09/02 14:06:15 1.1
--- ktsrvtab.h 1999/09/02 14:06:22
***************
*** 77,83 ****
krb5_error_code KRB5_CALLCONV krb5_ktsrvtab_get_entry
PROTOTYPE((krb5_context,
krb5_keytab,
! krb5_principal,
krb5_kvno,
krb5_enctype,
krb5_keytab_entry *));
--- 77,83 ----
krb5_error_code KRB5_CALLCONV krb5_ktsrvtab_get_entry
PROTOTYPE((krb5_context,
krb5_keytab,
! krb5_const_principal,
krb5_kvno,
krb5_enctype,
krb5_keytab_entry *));
Show quoted text
>Audit-Trail:
>Unformatted:
>Unformatted: