[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [bug-mailutils] Const craziness.
From: |
Sergey Poznyakoff |
Subject: |
Re: [bug-mailutils] Const craziness. |
Date: |
Wed, 28 Jan 2004 10:47:00 +0200 |
Jeff Bailey <address@hidden> wrote:
> name = strdup (path);
> free (url->name);
> url->name = name;
>
> I suspect those last three lines are best wrapped in a function that's
> supposed to see url internals without the constness, but I want to make
> sure before I touch the code.
I guess you mean something like url_set_name (url_t, const char *),
right? It is a good idea, though I am not sure whether it is
worth while: functions in */url.c are supposed to fiddle with url_t
internals anyway.
Regards,
Sergey