diff options
author | Kovarththanan Rajaratnam <kovarththanan.rajaratnam@gmail.com> | 2009-10-09 09:12:59 +0000 |
---|---|---|
committer | Kovarththanan Rajaratnam <kovarththanan.rajaratnam@gmail.com> | 2009-10-09 09:12:59 +0000 |
commit | 3199e524c9400f55a3c08705792c0819bb36e2ec (patch) | |
tree | c55ff06fcf24683a688af729472a7c71be3535e1 /epan/dissectors/dcerpc/idl2wrs.c | |
parent | 85d8b896a647411065e89fbd4d2289256fee6966 (diff) | |
download | wireshark-3199e524c9400f55a3c08705792c0819bb36e2ec.tar.gz |
Give the template filenames more uniqueness
svn path=/trunk/; revision=30422
Diffstat (limited to 'epan/dissectors/dcerpc/idl2wrs.c')
-rw-r--r-- | epan/dissectors/dcerpc/idl2wrs.c | 11 |
1 files changed, 7 insertions, 4 deletions
diff --git a/epan/dissectors/dcerpc/idl2wrs.c b/epan/dissectors/dcerpc/idl2wrs.c index fcf9dcb7cd..e5740890be 100644 --- a/epan/dissectors/dcerpc/idl2wrs.c +++ b/epan/dissectors/dcerpc/idl2wrs.c @@ -3109,6 +3109,7 @@ int main(int argc, char *argv[]) { char idlfile[256]; char cnffile[256]; + char tmplfile[256]; char prefix_str[256]; bracket_item_t *bi; @@ -3285,9 +3286,10 @@ int main(int argc, char *argv[]) /* merge code and template into dissector */ sprintf(line, "packet-dcerpc-%s.c", ifname); fh=fopen(line, "w"); - tfh=fopen("template.c", "r"); + sprintf(tmplfile, "packet-dcerpc-%s-template.c", argv[1]); + tfh=fopen(tmplfile, "r"); if(!tfh){ - fprintf(stderr, "ERROR: could not find template.c\n"); + fprintf(stderr, "ERROR: could not find %s\n", tmplfile); exit(10); } while(!feof(tfh)){ @@ -3319,9 +3321,10 @@ int main(int argc, char *argv[]) sprintf(line, "packet-dcerpc-%s.h", ifname); fh=fopen(line, "w"); - tfh=fopen("template.h", "r"); + sprintf(tmplfile, "packet-dcerpc-%s-template.h", argv[1]); + tfh=fopen(tmplfile, "r"); if(!tfh){ - fprintf(stderr, "ERROR: could not find template.h\n"); + fprintf(stderr, "ERROR: could not find %s\n", tmplfile); exit(10); } while(!feof(tfh)){ |