Ignore:
Timestamp:
Oct 4, 2023, 6:18:02 PM (2 years ago)
Author:
gyoung
Message:

Fix all the warnings and errors reported by CPPCheck.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/mediafolder/c/cddb/cddbcls.cpp

    r57 r108  
    453453  char key[20];
    454454  char trackName[100];
    455   int iTrack;
     455  ULONG iTrack;
    456456 
    457457  do{
     
    472472      sscanf(buffer,"%20[^0-9=]",key);
    473473      /* We put track names into a linked list in the cddb instance */
    474       if(!strcmp(strupr(key),"TTITLE")) {
     474      if(!strcmp(strupr(key),"TITLE")) {
    475475        iTrack=0;
    476476        /* We have a disc title */
    477         sscanf(buffer,"%20[^0-9]%d=%100[^\n\r]",key,iTrack,trackName);
     477        sscanf(buffer,"%20[^0-9]%lu=%100[^\n\r]",key,iTrack,trackName);
    478478        Cddb->newTrack(trackName,iTrack); /* New track entry in cddb instance */
    479479      }
     
    483483}
    484484
    485 cddb_read(int s,cddb * Cddb)
     485int cddb_read(int s,cddb * Cddb)
    486486{
    487487  char buffer[512];
Note: See TracChangeset for help on using the changeset viewer.