Fixes for 32bit compile

This commit is contained in:
Deon George 2013-07-19 14:19:03 +10:00 committed by Deon George
parent b60f0934f5
commit f7dc4c18d4
4 changed files with 6 additions and 6 deletions

View File

@ -1,7 +1,7 @@
TSMAPIDIR=/opt/tivoli/tsm/client/api/bin/sample TSMAPIDIR=/opt/tivoli/tsm/client/api/bin/sample
TSMLIB=-lApiDS TSMLIB=-lApiDS
CC=gcc CC=gcc
CFLAGS=-g -W -Wall -Wextra -O -I$(TSMAPIDIR) CFLAGS=-g -W -Wall -Wextra -m32 -O -I$(TSMAPIDIR)
LDFLAGS= LDFLAGS=
FILES=tsmpipe.c FILES=tsmpipe.c

View File

@ -22,9 +22,9 @@ extern dsInt16_t tsm_queryfile(dsUint32_t sesshandle, dsmObjName *objName, char
* Our Callback to show what is in TSM * Our Callback to show what is in TSM
*/ */
int tsm_listfile_cb(dsmQueryType qType, DataBlk *qResp, void *userdata) { int tsm_listfile_cb(dsmQueryType qType, DataBlk *qResp, void *userdata) {
char stor[1]="?"; char stor[2];
char state[2]="??"; char state[3];
char ced[3]="---"; char ced[4];
qryRespBackupData respBackup; qryRespBackupData respBackup;
qryRespArchiveData respArchive; qryRespArchiveData respArchive;

View File

@ -127,7 +127,7 @@ int tsm_regfs(dsUint32_t dsmHandle, char *fsname) {
} }
/* Send data to TSM for storage */ /* 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; char *buffer;
dsInt16_t rc=0; dsInt16_t rc=0;
dsmObjName objName; dsmObjName objName;

View File

@ -40,7 +40,7 @@ SOFTWARE.
extern dsUint32_t tsm_initsess(char *options); extern dsUint32_t tsm_initsess(char *options);
extern void tsm_sessioninfo(dsUint32_t dsmHandle); 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_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_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); extern int tsm_deletefile(dsUint32_t dsmHandle, char *fsname, char *filename, char *description, dsmSendType sendtype, char verbose);