Skip to content

Commit

Permalink
build: Fixed issues in ConfigParser::parseJSON for linux
Browse files Browse the repository at this point in the history
  • Loading branch information
Taanviir committed Jan 24, 2024
1 parent f2c7c61 commit 758d235
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion includes/webserv.hpp
Original file line number Diff line number Diff line change
@@ -1,13 +1,13 @@
#ifndef WEBSERV_HPP
#define WEBSERV_HPP


/* --------------------------------- MACROS --------------------------------- */
#define to_str(name) #name

/* -------------------------------- INCLUDES -------------------------------- */
#include <iostream>
#include <string>
#include <cstdlib>
#include "debug.hpp"

/* ----------------------------- ERROR MESSAGES ----------------------------- */
Expand Down
2 changes: 1 addition & 1 deletion parser/ConfigParser.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ ConfigParser::~ConfigParser() {}
void ConfigParser::parseJSON(std::string file) {
std::cout << "Parsing config file: " << file << std::endl;

std::ifstream inputFileStream(file);
std::ifstream inputFileStream(file.c_str());
if (inputFileStream.fail()) {
std::cerr << ERR_OPEN << std::endl;
exit(1);
Expand Down

0 comments on commit 758d235

Please sign in to comment.