diff --git a/Makefile.linux32 b/Makefile.linux32 index 909c61b..347b6b1 100644 --- a/Makefile.linux32 +++ b/Makefile.linux32 @@ -1,7 +1,7 @@ TSMAPIDIR=/opt/tivoli/tsm/client/api/bin/sample TSMLIB=-lApiDS CC=gcc -CFLAGS=-g -W -Wall -Wextra -O -I$(TSMAPIDIR) +CFLAGS=-g -W -Wall -Wextra -m32 -O -I$(TSMAPIDIR) LDFLAGS= FILES=tsmpipe.c diff --git a/lib/dsmlist.c b/lib/dsmlist.c index 97a1fcc..c735379 100644 --- a/lib/dsmlist.c +++ b/lib/dsmlist.c @@ -22,9 +22,9 @@ extern dsInt16_t tsm_queryfile(dsUint32_t sesshandle, dsmObjName *objName, char * Our Callback to show what is in TSM */ int tsm_listfile_cb(dsmQueryType qType, DataBlk *qResp, void *userdata) { - char stor[1]="?"; - char state[2]="??"; - char ced[3]="---"; + char stor[2]; + char state[3]; + char ced[4]; qryRespBackupData respBackup; qryRespArchiveData respArchive; diff --git a/lib/dsmsendrecv.c b/lib/dsmsendrecv.c index 9cdcbd4..025e3b1 100644 --- a/lib/dsmsendrecv.c +++ b/lib/dsmsendrecv.c @@ -127,7 +127,7 @@ int tsm_regfs(dsUint32_t dsmHandle, char *fsname) { } /* Send data to TSM for storage */ -int tsm_sendfile(dsUint32_t dsmHandle, char *fsname, char *filename, off_t length, char *description, dsmSendType sendtype, char verbose) { +int tsm_sendfile(dsUint32_t dsmHandle, char *fsname, char *filename, long long length, char *description, dsmSendType sendtype, char verbose) { char *buffer; dsInt16_t rc=0; dsmObjName objName; diff --git a/tsmpipe.c b/tsmpipe.c index 469327b..0058607 100644 --- a/tsmpipe.c +++ b/tsmpipe.c @@ -40,7 +40,7 @@ SOFTWARE. extern dsUint32_t tsm_initsess(char *options); extern void tsm_sessioninfo(dsUint32_t dsmHandle); extern int tsm_listfile(dsUint32_t dsmHandle, char *fsname, char *filename, char *description, dsmSendType sendtype, char verbose, char *pitdate); -extern int tsm_sendfile(dsUint32_t dsmHandle, char *fsname, char *filename, off_t length, char *description, dsmSendType sendtype, char verbose); +extern int tsm_sendfile(dsUint32_t dsmHandle, char *fsname, char *filename, long long length, char *description, dsmSendType sendtype, char verbose); extern int tsm_restorefile(dsUint32_t dsmHandle, char *fsname, char *filename, char *description, dsmSendType sendtype, char verbose, char *pitdate); extern int tsm_deletefile(dsUint32_t dsmHandle, char *fsname, char *filename, char *description, dsmSendType sendtype, char verbose);