]> www.vanbest.org Git - sasc-ng.git/commitdiff
fix more gcc 4.x warnings
authorleslie <unknown>
Tue, 8 Jan 2008 17:24:14 +0000 (18:24 +0100)
committerleslie <unknown>
Tue, 8 Jan 2008 17:24:14 +0000 (18:24 +0100)
smartcard.h
systems/sc-cryptoworks/sc-cryptoworks.c
systems/sc-seca/sc-seca.c
systems/sc-viaccess/sc-viaccess.c
systems/viaccess/st20.c
systems/viaccess/st20.h

index 184cef45c6b7f2f459819106eb398b7c27ce5103..56fd6e87ba3a3b844180af2f1bb3f16bef06e475 100644 (file)
@@ -96,7 +96,7 @@ struct CardConfig {
 
 struct StatusMsg {
   unsigned char sb[SB_LEN];
-  char *message; 
+  const char *message; 
   bool retval;
   };
 
index 4d29eba0c4c2f983aa69dd7efb695cacf4a9693a..9f1688999a4b040a43ce6794e18be51aa25facf4 100644 (file)
@@ -296,7 +296,7 @@ bool cSmartCardCryptoworks::Init(void)
                  atr->hist[2],atr->hist[3],caid,HexStr(str,&buff[2],5));
   PRINTF(L_SC_INIT,"card v.%d (pindown=%d) caid %04x serial %s MF %04X",atr->hist[2],atr->hist[3],caid,HexStr(str,&buff[2],5),mfid);
   if(ReadRecord(buff,0x9F)>=3) {
-    char *n="(unknown)";
+    const char *n="(unknown)";
     if(ReadRecord(buff+10,0xC0)>=18) n=(char *)buff+10+2;
     infoStr.Printf("Issuer:     0x%02x (%.16s)\n",buff[2],n);
     PRINTF(L_SC_INIT,"card issuer: 0x%02x %.16s",buff[2],n);
@@ -348,7 +348,7 @@ bool cSmartCardCryptoworks::Init(void)
     }
   for(unsigned int i=0; i<count ; i++) {
     if(SelectFile(0x1F00+provId[i])) {
-      char *n="(unknown)";
+      const char *n="(unknown)";
       if(SelectFile(0x0E11) && ReadRecord(buff,0xD6)>=18) n=(char *)buff+2;
       infoStr.Printf("Provider %d: 0x%02x (%.16s)\n",i,provId[i],n);
       PRINTF(L_SC_INIT,"provider %d: 0x%02x %.16s",i,provId[i],n);
index c994857a33dfd6d7e3ccd4fbc9c4e2215fdcaaa1..763da5fa6556e40e9e4bf9526e80ddedb1dd44e5 100644 (file)
@@ -196,7 +196,7 @@ bool cSmartCardSeca::Init(void)
 
   infoStr.Begin();
   infoStr.Strcat("Seca smartcard\n");
-  char *type;
+  const char *type;
   switch(atr->hist[0]*256+atr->hist[1]) {
     case 0x5084: type="Generic"; break;
     case 0x5384: type="Philips"; break;
index dc18fb28adf60cae52bd4e0afce258d97f58f400..c6298cfc790d90bb0150b7fe86a3b9dab9f19775 100644 (file)
@@ -148,7 +148,7 @@ bool cSmartCardViaccess::Init(void)
 
   infoStr.Begin();
   infoStr.Strcat("Viaccess smartcard\n");
-  char *ver=0;
+  const char *ver=0;
   switch((atr->hist[3]<<8)|atr->hist[4]) {
     case 0x6268: ver="2.3"; break;
     case 0x6468:
index eccbe7e9b15f4cbb3585b01e9fd0f1a7b6c5a1ad..bbee87b6a3ff233dd52cfeba2afc9257ec896193 100644 (file)
@@ -246,7 +246,7 @@ void cST20::LogOpOper(int op, int oper)
   else            loglb->Printf("%*s%-5s  %-8d ",max(OP_COL-n,1)," ",cmds[op],oper);
 }
 
-void cST20::LogOp(char *op)
+void cST20::LogOp(const char *op)
 {
   int n=loglb->Length();
   loglb->Printf("%*s%-15s ",max(OP_COL-n,1)," ",op);
index 12eced0ef5d57eff1347387ade72fd5152272d71..ae70ab5490a29a33e4332589549fc9bfadbc7637 100644 (file)
@@ -58,7 +58,7 @@ private:
   cLineBuff *loglb;
   //
   unsigned char *Addr(unsigned int off);
-  void LogOp(char *op);
+  void LogOp(const char *op);
   void LogOpOper(int op, int oper);
 public:
   cST20(void);