diff options
author | João Valverde <joao.valverde@tecnico.ulisboa.pt> | 2018-12-04 01:46:01 +0000 |
---|---|---|
committer | João Valverde <j@v6e.pt> | 2018-12-04 21:01:46 +0000 |
commit | 6a8168169aa6002e72d7bcfe4f9cf692ce632239 (patch) | |
tree | 55f3c3de3caa97c52ce22914e5ab266048a3f772 | |
parent | 011ca1ed9b58c458a0b5d664b12ecbf439057280 (diff) |
wsutil: Rename DATAFILE_DIR variable
Rename DATAFILE_DIR to be closer to CMake and avoid mixing
with the staging dir path variable of the same name.
Change-Id: I7b1e02152d8bde14cca210fbfae4acbdba7d78d7
Reviewed-on: https://code.wireshark.org/review/30916
Petri-Dish: João Valverde <j@v6e.pt>
Tested-by: Petri Dish Buildbot
Reviewed-by: João Valverde <j@v6e.pt>
-rw-r--r-- | wsutil/CMakeLists.txt | 2 | ||||
-rw-r--r-- | wsutil/filesystem.c | 6 |
2 files changed, 4 insertions, 4 deletions
diff --git a/wsutil/CMakeLists.txt b/wsutil/CMakeLists.txt index 6335b57cbd..38115b5311 100644 --- a/wsutil/CMakeLists.txt +++ b/wsutil/CMakeLists.txt @@ -11,7 +11,7 @@ include(UseABICheck) add_definitions(-DPLUGIN_DIR=\"${CMAKE_INSTALL_PREFIX}/${PLUGIN_INSTALL_LIBDIR}\") add_definitions(-DEXTCAP_DIR=\"${CMAKE_INSTALL_PREFIX}/${EXTCAP_INSTALL_LIBDIR}\") -add_definitions(-DDATAFILE_DIR=\"${CMAKE_INSTALL_PREFIX}/${CMAKE_INSTALL_DATADIR}\") +add_definitions(-DDATA_DIR=\"${CMAKE_INSTALL_PREFIX}/${CMAKE_INSTALL_DATADIR}\") set(WSUTIL_PUBLIC_HEADERS adler32.h diff --git a/wsutil/filesystem.c b/wsutil/filesystem.c index 5a2a16032d..ffb7fed70b 100644 --- a/wsutil/filesystem.c +++ b/wsutil/filesystem.c @@ -586,7 +586,7 @@ init_progfile_dir(const char *arg0 if (getcwd(curdir, path_max) == NULL) { /* * It failed - give up, and just stick - * with DATAFILE_DIR. + * with DATA_DIR. */ g_free(curdir); return g_strdup_printf("getcwd failed: %s\n", @@ -771,7 +771,7 @@ get_progfile_dir(void) * * Otherwise, if the program was executed from the build directory, use the * directory in which the executable for this process resides. In all other - * cases, use the DATAFILE_DIR value that was set at compile time. + * cases, use the DATA_DIR value that was set at compile time. * * XXX - if we ever make libwireshark a real library, used by multiple * applications (more than just TShark and versions of Wireshark with @@ -864,7 +864,7 @@ get_datafile_dir(void) */ datafile_dir = g_strdup(progfile_dir); } else { - datafile_dir = g_strdup(DATAFILE_DIR); + datafile_dir = g_strdup(DATA_DIR); } #endif |