Karthik Nayak <karthik....@gmail.com> writes:

> Make 'symref' a non const char pointer, so that the compiler doesn't
> throw an error when we try to free the memory allocated to it.

Casting to non-cost when calling free() is a common pattern. I think it
would make more sense to cast at free() time and keep the member const.

-- 
Matthieu Moy
http://www-verimag.imag.fr/~moy/
--
To unsubscribe from this list: send the line "unsubscribe git" in
the body of a message to majord...@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html

Reply via email to