mirror of
https://git.rwth-aachen.de/acs/public/villas/node/
synced 2025-03-09 00:00:00 +01:00
cpp: port conf2json
This commit is contained in:
parent
b12fa2e81b
commit
95eee40d16
1 changed files with 3 additions and 3 deletions
|
@ -27,13 +27,13 @@
|
|||
|
||||
#include <villas/config.h>
|
||||
#include <villas/config_helper.h>
|
||||
#include <villas/utils.h>
|
||||
#include <villas/utils.hpp>
|
||||
|
||||
void usage()
|
||||
{
|
||||
std::cout << "Usage: conf2json input.conf > output.json" << std::endl << std::endl;
|
||||
|
||||
print_copyright();
|
||||
villas::utils::print_copyright();
|
||||
}
|
||||
|
||||
int main(int argc, char *argv[])
|
||||
|
@ -49,7 +49,7 @@ int main(int argc, char *argv[])
|
|||
}
|
||||
|
||||
FILE *f = fopen(argv[1], "r");
|
||||
if(f == NULL)
|
||||
if(f == nullptr)
|
||||
return -1;
|
||||
|
||||
const char *confdir = dirname(argv[1]);
|
||||
|
|
Loading…
Add table
Reference in a new issue