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
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

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
*/
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;

View File

@ -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;

View File

@ -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);