[Patches] warning in timemodule.c

Greg Stein gstein@lyra.org
Sun, 28 May 2000 02:43:50 -0700 (PDT)


On Sun, 28 May 2000, Peter Schneider-Kamp wrote:
> Problem:
> compilation of timemodule.c gives "assignment from
> incompatible pointer type" error.
> 
> Solution:
> explicit type cast

Better Solution:
change the declaration to "const char *s;"


Type casts almost always hide underlying problems, rather than solving
them. In this case, "s" was declared improperly.

-1 on the type cast patch.
+1 on changing the declaration of "s".

Cheers,
-g

-- 
Greg Stein, http://www.lyra.org/