diff --git a/CMakeLists.txt b/CMakeLists.txt index 763cafc..b0161bc 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -7,7 +7,7 @@ project(vde2 include(GNUInstallDirs) include(./Macros.cmake) -add_definitions(-DSYSCONFDIR=\"${CMAKE_INSTALL_SYSCONFDIR}\" -DLOCALSTATEDIR=\"${CMAKE_INSTALL_LOCALSTATEDIR}\") +add_definitions(-DSYSCONFDIR=\"/${CMAKE_INSTALL_SYSCONFDIR}\" -DLOCALSTATEDIR=\"/${CMAKE_INSTALL_LOCALSTATEDIR}\") cm_define_project( ${PROJECT_VERSION} diff --git a/src/unixcmd.c b/src/unixcmd.c index 83424d8..1c12369 100644 --- a/src/unixcmd.c +++ b/src/unixcmd.c @@ -56,6 +56,7 @@ int main(int argc,char *argv[]) {"rcfile", 1, 0, 'f'}, {"sock", 1, 0, 's'}, {"verbose", 0, 0, 'v'}, + { 0, 0, 0, 0}, }; int c; while ((c=getopt_long (argc, argv, "f:s:v",