Files
sblim-cmpi-nfsv3/0003-Fix-format-string-for-64bit-values.patch
Klaus Kämpf b9549313d9 - fix compiler errors (were warnings before)
* add 0002-Add-lexer-parser-prototypes.patch,
    and 0003-Fix-format-string-for-64bit-values.patch

- adapt %patch syntax
- drop %clean section

OBS-URL: https://build.opensuse.org/package/show/systemsmanagement:wbem/sblim-cmpi-nfsv3?expand=0&rev=14
2025-02-03 14:03:03 +00:00

32 lines
1.5 KiB
Diff

From f87cd1e24385ec3867af6cdddb689f5c02faa630 Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?Klaus=20K=C3=A4mpf?= <kkaempf@gmail.com>
Date: Mon, 3 Feb 2025 14:47:43 +0100
Subject: [PATCH 3/3] Fix format string for 64bit values
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
Signed-off-by: Klaus Kämpf <kkaempf@gmail.com>
---
util/parser/parser.y | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/util/parser/parser.y b/util/parser/parser.y
index e646819..27d34b2 100644
--- a/util/parser/parser.y
+++ b/util/parser/parser.y
@@ -232,8 +232,8 @@ static void setvalue (void * value)
case CMPI_sint16: fprintf(NFSv3yyout, "%d", *((CMPISint16 *)value)); break;
case CMPI_uint32: fprintf(NFSv3yyout, "%u", *((CMPIUint32 *)value)); break;
case CMPI_sint32: fprintf(NFSv3yyout, "%d", *((CMPISint32 *)value)); break;
- case CMPI_uint64: fprintf(NFSv3yyout, "%u", *((CMPIUint64 *)value)); break;
- case CMPI_sint64: fprintf(NFSv3yyout, "%d", *((CMPISint64 *)value)); break;
+ case CMPI_uint64: fprintf(NFSv3yyout, "%llu", *((CMPIUint64 *)value)); break;
+ case CMPI_sint64: fprintf(NFSv3yyout, "%lld", *((CMPISint64 *)value)); break;
case CMPI_real32: fprintf(NFSv3yyout, "%f", *((CMPIReal32 *)value)); break;
case CMPI_real64: fprintf(NFSv3yyout, "%f", *((CMPIReal64 *)value)); break;
case CMPI_string: fprintf(NFSv3yyout, "%s", (char *)value); break;
--
2.48.1