aboutsummaryrefslogtreecommitdiff
path: root/utils.hpp
diff options
context:
space:
mode:
authorGravatar Chris Xiong <chirs241097@gmail.com> 2018-07-06 21:25:39 +0800
committerGravatar Chris Xiong <chirs241097@gmail.com> 2018-07-06 21:25:39 +0800
commitb5932d1d22d35cef95eb1cffbf489619b264442d (patch)
tree6040dc505e9b22875449bcc045fed9b0ac3f0692 /utils.hpp
parent61e0a974c07f38b8e42f226d68f22e2d1b26fa6d (diff)
downloadlightsd-b5932d1d22d35cef95eb1cffbf489619b264442d.tar.xz
Random code clean-ups to get ready for the next update.
Also tweaked the config a little bit.
Diffstat (limited to 'utils.hpp')
-rw-r--r--utils.hpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/utils.hpp b/utils.hpp
index eac0c8f..10a3d5f 100644
--- a/utils.hpp
+++ b/utils.hpp
@@ -5,7 +5,7 @@
#define LOG(type,format,...) fprintf(stderr,"%c: " format "\n",type,__VA_ARGS__)
int readint(const char* path);
float readfloat(const char* path);
-std::string readstr(const char* path);
+std::string readstr(const char* path,int max_length=256);
void writeint(const char* path,int v);
std::string trim(std::string s);
void split(std::string s,char c,std::vector<std::string>& v);