Imported Upstream version 1.20.1
[platform/upstream/krb5.git] / src / lib / krb5 / krb / unparse.c
index 5bb64d0..76b1894 100644 (file)
@@ -122,13 +122,6 @@ copy_component_quoting(char *dest, const krb5_data *src, int flags)
             *q++ = '\\';
             *q++ = 'b';
             break;
-#if 0
-            /* Heimdal escapes spaces in principal names upon unparsing */
-        case ' ':
-            *q++ = '\\';
-            *q++ = ' ';
-            break;
-#endif
         case '\0':
             *q++ = '\\';
             *q++ = '0';
@@ -183,7 +176,7 @@ k5_unparse_name(krb5_context context, krb5_const_principal principal,
      * Allocate space for the ascii string; if space has been
      * provided, use it, realloc'ing it if necessary.
      *
-     * We need only n-1 seperators for n components, but we need
+     * We need only n-1 separators for n components, but we need
      * an extra byte for the NUL at the end.
      */
     if (size) {
@@ -225,7 +218,8 @@ cleanup:
 }
 
 krb5_error_code KRB5_CALLCONV
-krb5_unparse_name(krb5_context context, krb5_const_principal principal, register char **name)
+krb5_unparse_name(krb5_context context, krb5_const_principal principal,
+                  char **name)
 {
     if (name != NULL)                      /* name == NULL will return error from _ext */
         *name = NULL;