[Pcsclite-cvs-commit] r449 - /trunk/muscleTool/help.c

rousseau at users.alioth.debian.org rousseau at users.alioth.debian.org
Fri Nov 13 09:47:10 UTC 2009


Author: rousseau
Date: Fri Nov 13 09:47:09 2009
New Revision: 449

URL: http://svn.debian.org/wsvn/muscleapps/?sc=1&rev=449
Log:
warning: initialization discards qualifiers from pointer target type

Modified:
    trunk/muscleTool/help.c

Modified: trunk/muscleTool/help.c
URL: http://svn.debian.org/wsvn/muscleapps/trunk/muscleTool/help.c?rev=449&op=diff
==============================================================================
--- trunk/muscleTool/help.c (original)
+++ trunk/muscleTool/help.c Fri Nov 13 09:47:09 2009
@@ -15,7 +15,7 @@
 
 #include "help.h"
 
-static char *help_txt[] = {
+static const char *help_txt[] = {
 	"",
 	"Object related functions:",
 	"----------------------------------------------------",
@@ -82,7 +82,7 @@
 	NULL
 };
 
-static char *help_help_txt[] = {
+static const char *help_help_txt[] = {
 	"Show help about muscleTool functions.",
 	"Usage: help [name]",
 	"Arguments:",
@@ -90,7 +90,7 @@
 	NULL
 };
 
-static char *help_create_txt[] = {
+static const char *help_create_txt[] = {
 	"Create an object.",
 	"Usage: create id size",
 	"Arguments:",
@@ -99,7 +99,7 @@
 	NULL
 };
 
-static char *help_delete_txt[] = {
+static const char *help_delete_txt[] = {
 	"Delete an object.",
 	"Usage: delete id",
 	"Arguments:",
@@ -107,7 +107,7 @@
 	NULL,
 };
 
-static char *help_move_txt[] = {
+static const char *help_move_txt[] = {
 	"Move an object.",
 	"Usage: move oldid newid",
 	"Arguments:",
@@ -116,7 +116,7 @@
 	NULL,
 };
 
-static char *help_changeacl_txt[] = {
+static const char *help_changeacl_txt[] = {
 	"Changes the ACL of an object.",
 	"Usage: changeacl id",
 	"Arguments:",
@@ -124,7 +124,7 @@
 	NULL,
 };
 
-static char *help_write_txt[] = {
+static const char *help_write_txt[] = {
 	"Write from file to object.",
 	"Usage: write file id",
 	"Arguments:",
@@ -133,7 +133,7 @@
 	NULL
 };
 
-static char *help_read_txt[] = {
+static const char *help_read_txt[] = {
 	"Read from object to file.",
 	"Usage: read id file",
 	"Arguments:",
@@ -142,13 +142,13 @@
 	NULL
 };
 
-static char *help_list_txt[] = {
+static const char *help_list_txt[] = {
 	"List objects on token.",
 	"Usage: list",
 	NULL
 };
 
-static char *help_verify_txt[] = {
+static const char *help_verify_txt[] = {
 	"Verify a PIN.",
 	"Usage: verify pin value",
 	"Arguments:",
@@ -157,7 +157,7 @@
 	NULL
 };
 
-static char *help_makepin_txt[] = {
+static const char *help_makepin_txt[] = {
 	"Create a PIN.",
 	"Usage: makepin pin value unblk",
 	"Arguments:",
@@ -167,7 +167,7 @@
 	NULL
 };
 
-static char *help_changepin_txt[] = {
+static const char *help_changepin_txt[] = {
 	"Change a PIN.",
 	"Usage: changepin pin ovalue nvalue",
 	"Arguments:",
@@ -177,7 +177,7 @@
 	NULL
 };
 
-static char *help_unblock_txt[] = {
+static const char *help_unblock_txt[] = {
 	"Unblock a PIN.",
 	"Usage: unblock pin unblk",
 	"Arguments:",
@@ -186,19 +186,19 @@
 	NULL
 };
 
-static char *help_listpins_txt[] = {
+static const char *help_listpins_txt[] = {
 	"List PINs.",
 	"Usage: listpins",
 	NULL
 };
 
-static char *help_listkeys_txt[] = {
+static const char *help_listkeys_txt[] = {
 	"List the keys.",
 	"Usage: listkeys",
 	NULL
 };
 
-static char *help_changekeyacl_txt[] = {
+static const char *help_changekeyacl_txt[] = {
 	"Changes the ACL of a key.",
 	"Usage: changekeyacl keynum",
 	"Arguments:",
@@ -206,7 +206,7 @@
 	NULL,
 };
 
-static char *help_exportkey_txt[] = {
+static const char *help_exportkey_txt[] = {
 	"Export a key.",
 	"Usage: exportkey keynum path",
 	"Arguments:",
@@ -215,7 +215,7 @@
 	NULL
 };
 
-static char *help_movekey_txt[] = {
+static const char *help_movekey_txt[] = {
 	"Move a key.",
 	"Usage: movekey oldkeynum newkeynum",
 	"Arguments:",
@@ -224,7 +224,7 @@
 	NULL
 };
 
-static char *help_importkey_txt[] = {
+static const char *help_importkey_txt[] = {
 	"Import a key.",
 	"Usage: importkey pin path",
 	"Arguments:",
@@ -233,7 +233,7 @@
 	NULL
 };
 
-static char *help_genkeys_txt[] = {
+static const char *help_genkeys_txt[] = {
 	"Generate keys.",
 	"Usage: genkeys algorithm keysize ",
 	"Arguments:",
@@ -242,7 +242,7 @@
 	NULL
 };
 
-static char *help_crypt_txt[] = {
+static const char *help_crypt_txt[] = {
 	"Perform a cipher operation on user supplied text.",
 	"Usage: crypt keynum",
 	"Arguments:",
@@ -250,7 +250,7 @@
 	NULL
 };
 
-static char *help_filecrypt_txt[] = {
+static const char *help_filecrypt_txt[] = {
 	"Perform a cipher operation on a file.",
 	"Usage: crypt keynum infilename outfilename",
 	"Arguments:",
@@ -260,7 +260,7 @@
 	NULL
 };
 
-static char *help_format_txt[] = {
+static const char *help_format_txt[] = {
 	"Format a token.",
 	"Usage: format number",
 	"Arguments:",
@@ -268,13 +268,13 @@
 	NULL
 };
 
-static char *help_tokens_txt[] = {
+static const char *help_tokens_txt[] = {
 	"List available tokens.",
 	"Usage: tokens",
 	NULL
 };
 
-static char *help_connect_txt[] = {
+static const char *help_connect_txt[] = {
 	"Connect to a token.",
 	"Usage: connect number",
 	"Arguments:",
@@ -282,7 +282,7 @@
 	NULL
 };
 
-static char *help_deletekey_txt[] = {
+static const char *help_deletekey_txt[] = {
 	"Delete a key.",
 	"Usage: deletekey keynum",
 	"Arguments:",
@@ -290,7 +290,7 @@
 	NULL
 };
 
-static char *help_deleteid_txt[] = {
+static const char *help_deleteid_txt[] = {
 	"Delete an ID (PIN or strong identity).",
 	"Usage: deleteid ID",
 	"Arguments:",
@@ -298,7 +298,7 @@
 	NULL
 };
 
-static char *help_resume_txt[] = {
+static const char *help_resume_txt[] = {
 	"Get the token capabilities.",
 	"",
 	"Resume related functions:",
@@ -319,91 +319,91 @@
 	NULL
 };
 
-static char *help_resume_crypt_txt[] = {
+static const char *help_resume_crypt_txt[] = {
 	"List available crypto algorithms.",
 	"Usage: resume crypt",
 	NULL
 };
 
-static char *help_resume_rsa_txt[] = {
+static const char *help_resume_rsa_txt[] = {
 	"List RSA capabilities.",
 	"Usage: resume rsa",
 	NULL
 };
 
-static char *help_resume_dsa_txt[] = {
+static const char *help_resume_dsa_txt[] = {
 	"List DSA capabilities.",
 	"Usage: resume dsa",
 	NULL
 };
 
-static char *help_resume_des_txt[] = {
+static const char *help_resume_des_txt[] = {
 	"List DES capabilities.",
 	"Usage: resume des",
 	NULL
 };
 
-static char *help_resume_aes_txt[] = {
+static const char *help_resume_aes_txt[] = {
 	"List AES capabilities.",
 	"Usage: resume aes",
 	NULL
 };
 
-static char *help_resume_ec_txt[] = {
+static const char *help_resume_ec_txt[] = {
 	"List Elliptic Curve capabilities.",
 	"Usage: resume ec",
 	NULL
 };
 
-static char *help_resume_3des_txt[] = {
+static const char *help_resume_3des_txt[] = {
 	"List 3DES capabilities.",
 	"Usage: resume 3des",
 	NULL
 };
 
-static char *help_resume_3des3_txt[] = {
+static const char *help_resume_3des3_txt[] = {
 	"List 3DES3 capabilities.",
 	"Usage: resume 3des3",
 	NULL
 };
 
-static char *help_resume_keys_txt[] = {
+static const char *help_resume_keys_txt[] = {
 	"List key capabilities.",
 	"Usage: resume keys",
 	NULL
 };
 
-static char *help_resume_pins_txt[] = {
+static const char *help_resume_pins_txt[] = {
 	"List PIN capabilities.",
 	"Usage: resume pins",
 	NULL
 };
 
-static char *help_resume_objects_txt[] = {
+static const char *help_resume_objects_txt[] = {
 	"List object capabilities.",
 	"Usage: resume objects",
 	NULL
 };
 
-static char *help_release_txt[] = {
+static const char *help_release_txt[] = {
 	"Release a token.",
 	"Usage: release",
 	NULL
 };
 
-static char *help_status_txt[] = {
+static const char *help_status_txt[] = {
 	"Get the token status.",
 	"Usage: status",
 	NULL
 };
 
-static char *help_setstatus_txt[] = {
+static const char *help_setstatus_txt[] = {
 	"Set a token state.",
 	"Usage: setstatus",
 	NULL
 };
 
-static char *help_challenge_txt[] = {
+static const char *help_challenge_txt[] = {
 	"Get a random number.",
 	"Usage: challenge len",
 	"Arguments:",
@@ -411,25 +411,25 @@
 	NULL
 };
 
-static char *help_logout_txt[] = {
+static const char *help_logout_txt[] = {
 	"Log out AUT.",
 	"Usage: logout",
 	NULL
 };
 
-static char *help_version_txt[] = {
+static const char *help_version_txt[] = {
 	"Print the program version.",
 	"Usage: version",
 	NULL
 };
 
-static char *help_exit_txt[] = {
+static const char *help_exit_txt[] = {
 	"Exit the program.",
 	"Usage: exit",
 	NULL
 };
 
-static void print(char *text[])
+static void print(const char *text[])
 {
 	int i;
 




More information about the Pcsclite-cvs-commit mailing list