[OpenAFS-devel] Re: [OpenAFS] Re: "unable to authenticate to AFS" error- linux distribution, specific?

Jim Rees rees@umich.edu
Fri, 19 Nov 2004 16:55:19 -0500


We don't need to pin down why the code isn't working.  It's wrong to
reference an arg that hasn't been passed[1].  How it fails is not important.

Moving the needlock arg earlier just paints over this one symptom.  It does
not fix the problem.

I expect the best solution here is to switch to varargs.  Another possible
solution would be to use an argument vector, but that means changing the
function prototype.

[1] K&R sec 4.3.  "It is generally safe to deal with a variable number of
arguments if the called function doesn't use an argument which was not
actually supplied."