[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 16:20:35 +0200 |
Jeff Bailey <address@hidden> wrote:
> The problem is that right now, "url->name = name" causes the compiler to
> complain a little - name is const, and url->name is not.
I see.
> The other easy possibility is to have a second variable, char *newname;
> to hold this for those couple of lines.
Or a typecast:
name = strdup (path);
free (url->name);
url->name = (char*) name;
Regards,
Sergey