RIP BOOL. Convert BOOL -> bool. I found a few interesting
[amitay/samba.git] / source3 / libads / kerberos_keytab.c
index 7847b689c2f03b0aba3734ea72ad64b57aeb4ab5..d0161ada011a89bf6902aa500a6098b7aaefb908 100644 (file)
@@ -13,7 +13,7 @@
 
    This program is free software; you can redistribute it and/or modify
    it under the terms of the GNU General Public License as published by
-   the Free Software Foundation; either version 2 of the License, or
+   the Free Software Foundation; either version 3 of the License, or
    (at your option) any later version.
 
    This program is distributed in the hope that it will be useful,
@@ -22,8 +22,7 @@
    GNU General Public License for more details.
 
    You should have received a copy of the GNU General Public License
-   along with this program; if not, write to the Free Software
-   Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
+   along with this program.  If not, see <http://www.gnu.org/licenses/>.
 */
 
 #include "includes.h"
@@ -58,7 +57,7 @@ static int smb_krb5_kt_add_entry( krb5_context context, krb5_keytab keytab,
        if (ret != KRB5_KT_END && ret != ENOENT ) {
                DEBUG(3,("smb_krb5_kt_add_entry: Will try to delete old keytab entries\n"));
                while(!krb5_kt_next_entry(context, keytab, &kt_entry, &cursor)) {
-                       BOOL compare_name_ok = False;
+                       bool compare_name_ok = False;
 
                        ret = smb_krb5_unparse_name(context, kt_entry.principal, &ktprinc);
                        if (ret) {
@@ -550,7 +549,7 @@ int ads_keytab_create_default(ADS_STRUCT *ads)
        ret = smb_krb5_open_keytab(context, NULL, True, &keytab);
        if (ret) {
                DEBUG(1,("ads_keytab_create_default: smb_krb5_open_keytab failed (%s)\n", error_message(ret)));
-               goto out;
+               goto done;
        }
 
        ret = krb5_kt_start_seq_get(context, keytab, &cursor);