diff options
author | Guy Harris <guy@alum.mit.edu> | 2001-10-22 22:59:26 +0000 |
---|---|---|
committer | Guy Harris <guy@alum.mit.edu> | 2001-10-22 22:59:26 +0000 |
commit | e4db9c4b6440c4f34c67f670b0517b7eed269063 (patch) | |
tree | 87e09fb73dc03de0fcca177a74a3366751309398 /tethereal.c | |
parent | f4c0885cbd1a3b26286bab47bb9803e5f4d6184d (diff) | |
download | wireshark-e4db9c4b6440c4f34c67f670b0517b7eed269063.tar.gz wireshark-e4db9c4b6440c4f34c67f670b0517b7eed269063.tar.bz2 wireshark-e4db9c4b6440c4f34c67f670b0517b7eed269063.zip |
Add a routine to get the directory in which personal configuration files
reside. Use it, rather than concatenating the user's home directory and
".ethereal" in a number of files.
Fix up some additional places to use G_DIR_SEPARATOR_S as the pathname
separator.
svn path=/trunk/; revision=4061
Diffstat (limited to 'tethereal.c')
-rw-r--r-- | tethereal.c | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/tethereal.c b/tethereal.c index 5d94bc22a5..d5287f5aa1 100644 --- a/tethereal.c +++ b/tethereal.c @@ -1,6 +1,6 @@ /* tethereal.c * - * $Id: tethereal.c,v 1.92 2001/10/04 08:30:33 guy Exp $ + * $Id: tethereal.c,v 1.93 2001/10/22 22:59:23 guy Exp $ * * Ethereal - Network traffic analyzer * By Gerald Combs <gerald@ethereal.com> @@ -214,7 +214,8 @@ main(int argc, char *argv[]) WSADATA wsaData; #endif - char *gpf_path, *pf_path; + char *gpf_path; + const char *pf_path; int gpf_open_errno, pf_open_errno; int err; #ifdef HAVE_LIBPCAP |