Path: utzoo!utgpu!news-server.csri.toronto.edu!bonnie.concordia.ca!thunder.mcrcim.mcgill.edu!snorkelwacker.mit.edu!usc!elroy.jpl.nasa.gov!ncar!hsdndev!cmcl2!adm!smoke!gwyn From: gwyn@smoke.brl.mil (Doug Gwyn) Newsgroups: comp.sources.bugs Subject: Re: Problem with TRN 1.0.2 patch (mthreads.h) Message-ID: <14946@smoke.brl.mil> Date: 23 Jan 91 23:21:07 GMT References: <91022.140110DOUG@ysub.ysu.edu> Organization: U.S. Army Ballistic Research Laboratory, APG, MD. Lines: 19 In article <91022.140110DOUG@ysub.ysu.edu> DOUG@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.