mirror of https://github.com/BOINC/boinc.git
Use size_t instead of int for remote file size.
git-svn-id: svn+ssh://cvs.lpds.sztaki.hu/var/lib/svn/szdg/dcapi/trunk@2407 a7169a2c-3604-0410-bc95-c702d8d87f7a
This commit is contained in:
parent
2cb497ec58
commit
44e9fbf44c
|
@ -726,7 +726,7 @@ int DC_addWUInput(DC_Workunit *wu, const char *logicalFileName, const char *URL,
|
|||
{
|
||||
va_start(ap, fileMode);
|
||||
char *md5 = va_arg(ap, char *);
|
||||
int size = va_arg(ap, int);
|
||||
size_t size = va_arg(ap, size_t);
|
||||
va_end(ap);
|
||||
|
||||
rfile = _DC_createRemoteFile(logicalFileName, URL, md5, size);
|
||||
|
|
|
@ -167,7 +167,7 @@ DC_PhysicalFile *_DC_createPhysicalFile(const char *label,
|
|||
}
|
||||
|
||||
DC_RemoteFile *_DC_createRemoteFile(const char *label,
|
||||
const char *url, const char *md5, const int size)
|
||||
const char *url, const char *md5, const size_t size)
|
||||
{
|
||||
DC_RemoteFile *file;
|
||||
|
||||
|
|
|
@ -270,7 +270,7 @@ units in state %DC_WU_READY (i.e., before the work unit is submitted).
|
|||
%DC_FILE_VOLATILE allows DC-API to optimize the disk space
|
||||
requirements of the application.
|
||||
@Varargs: in case using %DC_FILE_REMOTE file mode, the MD5 hash string (char *)
|
||||
and file size information (int) have to be passed.
|
||||
and file size information (size_t) have to be passed.
|
||||
@Returns: 0 if successful or a #DC_ErrorCode.
|
||||
|
||||
|
||||
|
|
|
@ -21,6 +21,7 @@ extern "C" {
|
|||
#include <sys/syslog.h>
|
||||
#endif
|
||||
|
||||
#include <string.h>
|
||||
#include <stdarg.h>
|
||||
|
||||
/********************************************************************
|
||||
|
@ -98,7 +99,7 @@ struct _DC_RemoteFile
|
|||
char *label;
|
||||
char *url;
|
||||
char *remotefilehash;
|
||||
int remotefilesize;
|
||||
size_t remotefilesize;
|
||||
};
|
||||
|
||||
|
||||
|
|
|
@ -60,7 +60,7 @@ DC_PhysicalFile *_DC_createPhysicalFile(const char *label, const char *path)
|
|||
__attribute__((visibility("hidden")));
|
||||
|
||||
/* Allocates a remote file descriptor */
|
||||
DC_RemoteFile *_DC_createRemoteFile(const char *label, const char *url, const char *md5, const int size)
|
||||
DC_RemoteFile *_DC_createRemoteFile(const char *label, const char *url, const char *md5, const size_t size)
|
||||
__attribute__((visibility("hidden")));
|
||||
|
||||
/* De-allocates a physical file descriptor */
|
||||
|
|
Loading…
Reference in New Issue