packages/libs/ibrdtn/patches/030-Use-std-streamoff-instead-of-std-streampos.patch
Ilya Lipnitskiy b1cbd93bcd
treewide: Run refresh on all packages
The crude loop I wrote to come up with this changeset:

  find -L package/feeds/packages/ -name patches | \
  sed 's/patches$/refresh/' | sort | xargs make

Signed-off-by: Ilya Lipnitskiy <ilya.lipnitskiy@gmail.com>
(cherry picked from commit 5d8d4fbbcb)
Signed-off-by: Jeffery To <jeffery.to@gmail.com>
2021-02-25 01:26:05 +08:00

37 lines
1.2 KiB
Diff

From 1395d849d73147319ee422d2ce34de0bcb90e6f8 Mon Sep 17 00:00:00 2001
From: Johannes Morgenroth <jm@m-network.de>
Date: Thu, 3 Jan 2019 07:34:14 +0100
Subject: [PATCH] Use std::streamoff instead of std::streampos
---
ibrdtn/data/BundleMerger.cpp | 2 +-
ibrdtn/data/Dictionary.cpp | 4 ++--
2 files changed, 3 insertions(+), 3 deletions(-)
--- a/ibrdtn/data/BundleMerger.cpp
+++ b/ibrdtn/data/BundleMerger.cpp
@@ -119,7 +119,7 @@ namespace dtn
}
ibrcommon::BLOB::iostream stream = c._blob.iostream();
- (*stream).seekp(obj.fragmentoffset.get<std::streampos>());
+ (*stream).seekp(obj.fragmentoffset.get<std::streamoff>());
const dtn::data::PayloadBlock &p = obj.find<dtn::data::PayloadBlock>();
const Length plength = p.getLength();
--- a/ibrdtn/data/Dictionary.cpp
+++ b/ibrdtn/data/Dictionary.cpp
@@ -154,11 +154,11 @@ namespace dtn
{
char buffer[1024];
- _bytestream.seekg(scheme.get<std::streampos>());
+ _bytestream.seekg(scheme.get<std::streamoff>());
_bytestream.get(buffer, 1024, '\0');
std::string scheme_str(buffer);
- _bytestream.seekg(ssp.get<std::streampos>());
+ _bytestream.seekg(ssp.get<std::streamoff>());
_bytestream.get(buffer, 1024, '\0');
std::string ssp_str(buffer);