You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

37 lines
1.2 KiB

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