Problem with TRN 1.0.2 patch (mthreads.h)

Doug Gwyn gwyn at smoke.brl.mil
Thu Jan 24 10:21:07 AEST 1991


In article <91022.140110DOUG at ysub.ysu.edu> DOUG at ysub.ysu.edu (Doug Sewell) writes:
>When 'make' hits the line 'cc -c -O -I. mthreads.c', it gets:
>>"./mthreads.h", line 61: syntax error
>Line 61 of mthreads.h is:
>>void dont_read_data(int);
>The call to dont_read_data() in mthreads.c is:
>>dont_read_data( data_file_open );
>data_file_open is defined as a char earlier in mthreads.c.
>In mt_read.c, the parameter for dont_read_data is defined to be an int.
>I'm not sure what to change, ...

There is no need to be concerned over the apparently-char argument in
the function call, since it is promoted to int.

My guess is that your compiler does not support prototypes, and thus
the appropriate declaration in mthreads.h should have been
	void dont_read_data();
Without looking at the code I have no idea why prototypes were being
used.



More information about the Comp.sources.bugs mailing list