* kadm_server.h: Update prototype for convert_kadm5_to_kadm
authorEzra Peisach <epeisach@mit.edu>
Mon, 19 Nov 2001 18:32:44 +0000 (18:32 +0000)
committerEzra Peisach <epeisach@mit.edu>
Mon, 19 Nov 2001 18:32:44 +0000 (18:32 +0000)
* admin_server.c (process_client): Do not assign negative value to
unsigned variable.
(convert_kadm5_to_kadm): Return krb5_int32 instead of krb5_ui_4 to
be compatible with error codes.

git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@13993 dc483132-0cff-0310-8789-dd5450dbe970

src/kadmin/v4server/ChangeLog
src/kadmin/v4server/admin_server.c
src/kadmin/v4server/kadm_server.h

index 293881c75d6ea8983e4f3c0bc34e3b01b1c8cb86..a21170680e042329e872165014b596d2c438c57a 100644 (file)
@@ -1,3 +1,12 @@
+2001-11-19  Ezra Peisach  <epeisach@mit.edu>
+
+       * kadm_server.h: Update prototype for convert_kadm5_to_kadm.
+
+       * admin_server.c (process_client): Do not assign negative value to
+       unsigned variable.
+       (convert_kadm5_to_kadm): Return krb5_int32 instead of krb5_ui_4 to
+       be compatible with error codes.
+
 2001-07-09  Ezra Peisach  <epeisach@mit.edu>
 
        * admin_server.c: Provide prototype for do_child and declare static.
index 84b1ef20d54156d7f1341dc03df6a47a81e4bb34..8aaf0888fbfff5023dc3d2a2cf7423ce546eb308 100644 (file)
@@ -466,7 +466,7 @@ static void process_client(fd, who)
     /* ugh... clean this up later */
     if (status == KRB5_KDB_DB_INUSE) {
        /* db locked */
-       krb5_ui_4 retcode = KADM_DB_INUSE;
+       krb5_ui_4 retcode;
        char *pdat;
        
        dat_len = KADM_VERSIZE + sizeof(krb5_ui_4);
@@ -661,8 +661,8 @@ kill_children()
 }
 
 #ifdef KADM5
-krb5_ui_4 convert_kadm5_to_kadm(val)
-   krb5_ui_4 val;
+krb5_int32 convert_kadm5_to_kadm(val)
+   krb5_int32 val;
 {
      switch (val) {
      case KADM5_AUTH_GET:
index 6476373858672f1de9a251ce1eb9b253e43b68bc..45007b4ac8e6e238c11c67521d148741ba93cdcb 100644 (file)
@@ -116,7 +116,7 @@ int acl_initialize(char *, int);
 
 /* admin_server.c */
 #ifdef KADM5
-krb5_ui_4 convert_kadm5_to_kadm(krb5_ui_4);
+krb5_int32 convert_kadm5_to_kadm(krb5_int32);
 #endif
 
 #endif /* KADM_SERVER_DEFS */