[DGD] #define peculiarity?

Felix A. Croes felix at dworkin.nl
Sat Feb 28 17:13:51 CET 2004


Michael McKiel <crashnbrn71 at yahoo.ca> wrote:

> I was wondering why something like:
>
> # define KERNEL_DIR    "/k"
> # define SYSTEM_DIR    "/system/"
> /* AND */
> # define USERD         KERNEL_DIR+SYSTEM_DIR+"userd"
>
> is legal for a sscanf:
>     sscanf(somepath, KERNEL_DIR+SYSTEM_DIR+"%*s")
>
> but causes this (on telnet login attempts, after typing in a name):
> ------------------------------------------------------------------
> Feb 28 10:55:33 ** Bad argument 1 for kfun call_other

I don't see how a sscanf can cause "Bad argument 1 for kfun call_other"
either.  Doing your own debugging is another of the responsibilities
you assume on writing  or modifying a kernel lib. :)

Regards,
Dworkin
_________________________________________________________________
List config page:  http://list.imaginary.com/mailman/listinfo/dgd



More information about the DGD mailing list