0
0
mirror of https://github.com/OpenVPN/openvpn3.git synced 2024-09-20 12:12:15 +02:00

Renamed PersistentOutputFile to PersistentFile, since class

will soon have input methods as well.
This commit is contained in:
James Yonan 2015-09-08 11:37:55 -07:00
parent 276a52d811
commit b4dea33463

View File

@ -19,8 +19,8 @@
// along with this program in the COPYING file.
// If not, see <http://www.gnu.org/licenses/>.
#ifndef OPENVPN_COMMON_PERSISTOUTFILE_H
#define OPENVPN_COMMON_PERSISTOUTFILE_H
#ifndef OPENVPN_COMMON_PERSISTFILE_H
#define OPENVPN_COMMON_PERSISTFILE_H
#include <cstring> // for std::strerror()
#include <sys/types.h> // for open(), lseek(), ftruncate()
@ -38,10 +38,10 @@
#include <openvpn/buffer/buffer.hpp>
namespace openvpn {
class PersistentOutputFile
class PersistentFile
{
public:
PersistentOutputFile(const std::string& fn_arg)
PersistentFile(const std::string& fn_arg)
: fn(fn_arg)
{
const int f = ::open(fn.c_str(), O_WRONLY|O_CREAT|O_CLOEXEC, S_IRUSR|S_IWUSR);