summaryrefslogtreecommitdiff
path: root/bin/bbackupquery/BackupQueries.cpp
diff options
context:
space:
mode:
authorBen Summers <ben@fluffy.co.uk>2006-06-19 14:12:32 +0000
committerBen Summers <ben@fluffy.co.uk>2006-06-19 14:12:32 +0000
commit659492827b96812173e79a97f5fd89d005c4aaeb (patch)
tree7de77ceb32b4be0ec08b2835e5804fdf42a6ab1d /bin/bbackupquery/BackupQueries.cpp
parent065bced3bc43cabc046d9ccf6eed1423421484a6 (diff)
Apply patch from Stuart Hickinbottom <stuarth@hickinbottom.demon.co.uk> to fix complication problems with gcc 4.1.1 where configure didn't detect LLONG_MAX properly. Fix by removing configure check completely, and using STL interface.
Diffstat (limited to 'bin/bbackupquery/BackupQueries.cpp')
-rw-r--r--bin/bbackupquery/BackupQueries.cpp7
1 files changed, 4 insertions, 3 deletions
diff --git a/bin/bbackupquery/BackupQueries.cpp b/bin/bbackupquery/BackupQueries.cpp
index bf84ab98..b7207720 100644
--- a/bin/bbackupquery/BackupQueries.cpp
+++ b/bin/bbackupquery/BackupQueries.cpp
@@ -26,6 +26,7 @@
#endif
#include <set>
+#include <limits>
#include "BackupQueries.h"
#include "Utils.h"
@@ -777,7 +778,7 @@ void BackupQueries::CommandGetObject(const std::vector<std::string> &args, const
}
int64_t id = ::strtoll(args[0].c_str(), 0, 16);
- if(id == LLONG_MIN || id == LLONG_MAX || id == 0)
+ if(id == std::numeric_limits<long long>::min() || id == std::numeric_limits<long long>::max() || id == 0)
{
printf("Not a valid object ID (specified in hex)\n");
return;
@@ -863,7 +864,7 @@ void BackupQueries::CommandGet(const std::vector<std::string> &args, const bool
{
// Specified as ID.
id = ::strtoll(args[0].c_str(), 0, 16);
- if(id == LLONG_MIN || id == LLONG_MAX || id == 0)
+ if(id == std::numeric_limits<long long>::min() || id == std::numeric_limits<long long>::max() || id == 0)
{
printf("Not a valid object ID (specified in hex)\n");
return;
@@ -1733,7 +1734,7 @@ void BackupQueries::CommandRestore(const std::vector<std::string> &args, const b
{
// Specified as ID.
dirID = ::strtoll(args[0].c_str(), 0, 16);
- if(dirID == LLONG_MIN || dirID == LLONG_MAX || dirID == 0)
+ if(dirID == std::numeric_limits<long long>::min() || dirID == std::numeric_limits<long long>::max() || dirID == 0)
{
printf("Not a valid object ID (specified in hex)\n");
return;