Print this page
6621176 $SRC/cmd/cmd-crypto/cryptoadm/*.c seem to have syntax errors in the translation notes

@@ -17,16 +17,14 @@
  * information: Portions Copyright [yyyy] [name of copyright owner]
  *
  * CDDL HEADER END
  */
 /*
- * Copyright 2006 Sun Microsystems, Inc.  All rights reserved.
+ * Copyright 2008 Sun Microsystems, Inc.  All rights reserved.
  * Use is subject to license terms.
  */
 
-#pragma ident   "%Z%%M% %I%     %E% SMI"
-
 #include <fcntl.h>
 #include <stdio.h>
 #include <stdlib.h>
 #include <strings.h>
 #include <unistd.h>

@@ -212,11 +210,11 @@
                 } else if (is_active == B_TRUE) {
                         (void) printf(gettext(
                             "%s: all mechanisms are enabled."), provname);
                         if (has_random)
                                 /*
-                                 * TRANSLATION_NOTE:
+                                 * TRANSLATION_NOTE
                                  * "random" is a keyword and not to be
                                  * translated.
                                  */
                                 (void) printf(gettext(" %s is enabled.\n"),
                                     "random");

@@ -385,11 +383,11 @@
         if (check_active_for_soft(provname, &is_active) == FAILURE) {
                 free_entry(pent);
                 return (FAILURE);
         } else if (is_active == B_FALSE) {
                 /*
-                 * TRANSLATION_NOTE:
+                 * TRANSLATION_NOTE
                  * "disable" is a keyword and not to be translated.
                  */
                 cryptoerror(LOG_STDERR,
                     gettext("can not do %1$s on an unloaded "
                     "kernel software provider -- %2$s."), "disable", provname);

@@ -1321,11 +1319,11 @@
 
         if (punload_soft->sm_return_value != CRYPTO_SUCCESS) {
                 cryptodebug("CRYPTO_UNLOAD_SOFT_MODULE ioctl return_value = "
                     "%d", punload_soft->sm_return_value);
                 /*
-                 * If the return value is CRYPTO_UNKNOWN_PRIVDER, it means
+                 * If the return value is CRYPTO_UNKNOWN_PROVIDER, it means
                  * that the provider is not registered yet.  Should just
                  * continue.
                  */
                 if (punload_soft->sm_return_value != CRYPTO_UNKNOWN_PROVIDER) {
                         free_entry(pent);