diff options
author | Jeremy Allison <jra@samba.org> | 2007-12-03 18:48:41 -0800 |
---|---|---|
committer | Jeremy Allison <jra@samba.org> | 2007-12-03 18:48:41 -0800 |
commit | adf6d848de8ae32a83c7271d8ccd24d2cf8b47f7 (patch) | |
tree | a6b9ac6f4175a10b4e71829d61db9e076aad969e /source3/utils/smbfilter.c | |
parent | 328a57e1ca5fc0e0206fdb565d5951912e84dc5e (diff) | |
download | samba-adf6d848de8ae32a83c7271d8ccd24d2cf8b47f7.tar.gz samba-adf6d848de8ae32a83c7271d8ccd24d2cf8b47f7.tar.bz2 samba-adf6d848de8ae32a83c7271d8ccd24d2cf8b47f7.zip |
Getting to the home stretch for elimination of pstrings...
Jeremy.
(This used to be commit 041163551194102ca67fef52c57d87020a1d09bc)
Diffstat (limited to 'source3/utils/smbfilter.c')
-rw-r--r-- | source3/utils/smbfilter.c | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/source3/utils/smbfilter.c b/source3/utils/smbfilter.c index 2051c606a0..89a38d5b40 100644 --- a/source3/utils/smbfilter.c +++ b/source3/utils/smbfilter.c @@ -78,7 +78,7 @@ static void filter_request(char *buf) { int msg_type = CVAL(buf,0); int type = CVAL(buf,smb_com); - pstring name1,name2; + fstring name1,name2; unsigned x; if (msg_type) { @@ -228,15 +228,15 @@ static void start_filter(char *desthost) int main(int argc, char *argv[]) { char *desthost; - pstring configfile; + const char *configfile; TALLOC_CTX *frame = talloc_stackframe(); load_case_tables(); setup_logging(argv[0],True); - - pstrcpy(configfile,dyn_CONFIGFILE); - + + configfile = dyn_CONFIGFILE; + if (argc < 2) { fprintf(stderr,"smbfilter <desthost> <netbiosname>\n"); exit(1); |