Allin Cottrell wrote:
> win/wmenu.c: In function `SendMacro':
> win/wmenu.c:402: warning: passing arg 1 of `_getcwd' from
> incompatible pointer type
>
> The call in wmenu.c is
>
> char cwd[MAX_PATH];
> <snip>
> _getcwd(&cwd, sizeof(cwd));
> So it looks as if the call is indeed wrong -- the first arg should
> be cwd, not &cwd? -- but I might be missing something.
The call is neither quite wrong, nor quite right. &cwd and cwd
eventually express the same address, so no harm done. The pointer type
will be converted automatically. _getcwd(cwd, sizeof(cwd)) would be
better, but not so much that it'd actually make a difference :-)
|