Ignore:
Timestamp:
Oct 29, 2023, 11:05:48 PM (22 months ago)
Author:
gyoung
Message:

Changes to build pmcddb.exe with VAC 3.08. This builds but doesn't run no error returned

File:
1 edited

Legend:

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

    r104 r127  
    2424#include <io.h>
    2525#include <fcntl.h>
    26 #include <sys/types.h>
     26//#include <sys/itypes.h>
     27#include <types.h>
    2728#include <sys/socket.h>
    2829#include <netdb.h>
    2930#include <errno.h>
     31#include <nerrno.h>
    3032#include <netinet/in.h>
    3133
     
    4244extern int errno;
    4345LONG extern CDDBDiscID(char * drive,CDDBINFO *cddbInfo);
    44 
     46//unsigned short _Optlink _bswap(unsigned short s);
    4547extern int port;
    4648extern char host[100];
     
    360362      root->linkCddb(Cddb);
    361363
    362   }while(true);
     364  }while(1);
    363365
    364366}
     
    387389  sprintf(buffer,"cddb query %08x %d",cddbInfo->discid,cddbInfo->numTracks);
    388390  for(a=0;a<cddbInfo->numTracks;a++) {
    389     rc=snprintf(track,sizeof(track)," %d",cddbInfo->startSector[a]);
     391    rc=sprintf(track,/*sizeof(track),*/" %d",cddbInfo->startSector[a]);
    390392    if(rc==EOF||rc>=sizeof(track)) {
    391393      printError((char *)"Query: buffer overrun while formatting track offsets.\nPlease report this bug.\n");
     
    399401  }
    400402
    401   rc=snprintf(track,sizeof(track), " %d\n",cddbInfo->discLength);
     403  rc=sprintf(track,/*sizeof(track),*/ " %d\n",cddbInfo->discLength);
    402404  if(rc==EOF||rc>=sizeof(track)) {
    403405    printError((char *)"Query: buffer overrun while formatting disclength.\nPlease report this bug.\n");
Note: See TracChangeset for help on using the changeset viewer.