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

Split Close
Expand all
Collapse all
          --- old/usr/src/cmd/cmd-crypto/cryptoadm/adm_kef_util.c
          +++ new/usr/src/cmd/cmd-crypto/cryptoadm/adm_kef_util.c
   1    1  /*
   2    2   * CDDL HEADER START
   3    3   *
   4    4   * The contents of this file are subject to the terms of the
   5      - * Common Development and Distribution License, Version 1.0 only
   6      - * (the "License").  You may not use this file except in compliance
   7      - * with the License.
        5 + * Common Development and Distribution License (the "License").
        6 + * You may not use this file except in compliance with the License.
   8    7   *
   9    8   * You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
  10    9   * or http://www.opensolaris.org/os/licensing.
  11   10   * See the License for the specific language governing permissions
  12   11   * and limitations under the License.
  13   12   *
  14   13   * When distributing Covered Code, include this CDDL HEADER in each
  15   14   * file and include the License file at usr/src/OPENSOLARIS.LICENSE.
  16   15   * If applicable, add the following below this CDDL HEADER, with the
  17   16   * fields enclosed by brackets "[]" replaced with your own identifying
  18   17   * information: Portions Copyright [yyyy] [name of copyright owner]
  19   18   *
  20   19   * CDDL HEADER END
  21   20   */
  22   21  /*
  23      - * Copyright 2005 Sun Microsystems, Inc.  All rights reserved.
       22 + * Copyright 2008 Sun Microsystems, Inc.  All rights reserved.
  24   23   * Use is subject to license terms.
  25   24   */
  26   25  
  27      -#pragma ident   "%Z%%M% %I%     %E% SMI"
  28      -
  29   26  #include <errno.h>
  30   27  #include <fcntl.h>
  31   28  #include <stdio.h>
  32   29  #include <stdlib.h>
  33   30  #include <strings.h>
  34   31  #include <time.h>
  35   32  #include <unistd.h>
  36   33  #include <locale.h>
  37   34  #include <sys/types.h>
  38   35  #include <sys/stat.h>
↓ open down ↓ 1147 lines elided ↑ open up ↑
1186 1183                  return;
1187 1184          }
1188 1185  
1189 1186          rnd_disabled = filter_mechlist(&pent->dislist, RANDOM);
1190 1187          ptr = pent->dislist;
1191 1188  
1192 1189          (void) printf("%s:", pent->name);
1193 1190  
1194 1191          if (has_mechs == B_TRUE) {
1195 1192                  /*
1196      -                 * TRANSLATION_NOTE:
     1193 +                 * TRANSLATION_NOTE
1197 1194                   * This code block may need to be modified a bit to avoid
1198 1195                   * constructing the text message on the fly.
1199 1196                   */
1200 1197                  (void) printf(gettext(" all mechanisms are enabled"));
1201 1198                  if (ptr != NULL)
1202 1199                          (void) printf(gettext(", except "));
1203 1200                  while (ptr != NULL) {
1204 1201                          (void) printf("%s", ptr->name);
1205 1202                          ptr = ptr->next;
1206 1203                          if (ptr != NULL)
1207 1204                                  (void) printf(",");
1208 1205                  }
1209 1206                  if (ptr == NULL)
1210 1207                          (void) printf(".");
1211 1208          }
1212 1209  
1213 1210          /*
1214      -         * TRANSLATION_NOTE:
     1211 +         * TRANSLATION_NOTE
1215 1212           * "random" is a keyword and not to be translated.
1216 1213           */
1217 1214          if (rnd_disabled)
1218 1215                  (void) printf(gettext(" %s is disabled."), "random");
1219 1216          else if (has_random)
1220 1217                  (void) printf(gettext(" %s is enabled."), "random");
1221 1218          (void) printf("\n");
1222 1219  }
1223 1220  
1224 1221  /*
↓ open down ↓ 72 lines elided ↑ open up ↑
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX