27 lines
1.1 KiB
Diff
27 lines
1.1 KiB
Diff
From c7a13147b14cb31de099540f6f863854c70be9d9 Mon Sep 17 00:00:00 2001
|
|
From: Mattias Ellert <mattias.ellert@physics.uu.se>
|
|
Date: Fri, 21 May 2021 12:50:04 +0200
|
|
Subject: [PATCH] Fix compilation failure on 32 bit (ix86/arm32)
|
|
|
|
error: format '%ld' expects argument of type 'long int', but argument
|
|
4 has type 'ssize_t' {aka 'int'} [-Werror=format=]
|
|
---
|
|
src/XrdSfs/XrdSfsInterface.cc | 2 +-
|
|
1 file changed, 1 insertion(+), 1 deletion(-)
|
|
|
|
diff --git a/src/XrdSfs/XrdSfsInterface.cc b/src/XrdSfs/XrdSfsInterface.cc
|
|
index aa2bc5da8..31b031dca 100644
|
|
--- a/src/XrdSfs/XrdSfsInterface.cc
|
|
+++ b/src/XrdSfs/XrdSfsInterface.cc
|
|
@@ -149,7 +149,7 @@ XrdSfsXferSize XrdSfsFile::pgWrite(XrdSfsFileOffset offset,
|
|
|
|
if (XrdOucPgrwUtils::csVer(buffer,offset,wrlen,csvec,badoff,badlen) >= 0)
|
|
{char eMsg[512];
|
|
- snprintf(eMsg, sizeof(eMsg),"Checksum error at offset %ld.",badoff);
|
|
+ snprintf(eMsg, sizeof(eMsg),"Checksum error at offset %ld.",(long)badoff);
|
|
error.setErrInfo(EDOM, eMsg);
|
|
return SFS_ERROR;
|
|
}
|
|
--
|
|
2.31.1
|
|
|