Ethereal-dev: [Ethereal-dev] Re: Don't use dirname as a variable

Note: This archive is from the project's previous web site, ethereal.com. This list is no longer active.

From: ronnie sahlberg <ronniesahlberg@xxxxxxxxx>
Date: Thu, 10 Nov 2005 17:53:09 -0400
checked in

On 11/10/05, Albert Chin <ethereal-dev@xxxxxxxxxxxxxxxxxxxxxxxxx> wrote:
> Using dirname as a variable causes problems on Tru64 UNIX 5.1 where
> <string.h> defines the dirname() function.
>
> --
> albert chin (china@xxxxxxxxxxxxxxxxxx)
>
> -- snip snip
> Index: epan/dtd_preparse.l
> ===================================================================
> --- epan/dtd_preparse.l.orig 2005-10-11 12:56:08.000000000 -0500
> +++ epan/dtd_preparse.l 2005-11-10 15:09:59.890314000 -0600
> @@ -52,7 +52,7 @@
>  gchar* entity_name;
>  GString* error;
>
> -const gchar* dirname;
> +const gchar* dtd_dirname;
>  const gchar* filename;
>  guint linenum;
>
> @@ -163,7 +163,7 @@
>  extern GString* dtd_preparse(const gchar* dname,const  gchar* fname,
> GString* err) {
>   gchar* fullname = g_strdup_printf("%s%c%s",dname,G_DIR_SEPARATOR,fname);
>
> - dirname = dname;
> + dtd_dirname = dname;
>   filename = fname;
>   linenum = 1;
>
>
> _______________________________________________
> Ethereal-dev mailing list
> Ethereal-dev@xxxxxxxxxxxx
> http://www.ethereal.com/mailman/listinfo/ethereal-dev
>