mirror of
https://github.com/rakshasa/rtorrent.git
synced 2026-08-07 18:52:30 +00:00
* Minor *BSD compatibility fixes.
git-svn-id: svn://rakshasa.no/libtorrent/trunk/rtorrent@631 e378c898-3ddf-0310-93e7-cc216c733640
This commit is contained in:
@@ -36,7 +36,7 @@
|
||||
|
||||
#include "config.h"
|
||||
|
||||
#include <cstdlib>
|
||||
#include <stdlib.h>
|
||||
|
||||
#include "variable_generic.h"
|
||||
|
||||
@@ -80,7 +80,7 @@ VariableValue::set(const torrent::Bencode& arg) {
|
||||
|
||||
case torrent::Bencode::TYPE_STRING:
|
||||
first = arg.as_string().c_str();
|
||||
value = std::strtoll(first, &last, 0);
|
||||
value = strtoll(first, &last, 0);
|
||||
|
||||
if (last == first || *last != '\0')
|
||||
throw torrent::input_error("Could not convert string to value.");
|
||||
|
||||
Reference in New Issue
Block a user