[tex-k] Another quick fix

Doug McKenna doug at mathemaesthetics.com
Sun Oct 27 00:02:05 CEST 2019

In the file "tex-make.c", in the routine maketex() at or about line 366 is:

  while ((num = read(childout[0],buf,sizeof(buf)-1)) != 0) {

Again, the read() function's prototype in the (MacOS/Darwin) header on my system says it returns a ssize_t, but because num is an int a compiler warning ensues.

But num is just a local variable, so changing its declaration earlier (at or about line 358) to a variable of type ssize_t shouldn't affect anything except to get rid of the compiler warning.

Or does read() deliver different sized integers on different systems?

Doug McKenna

More information about the tex-k mailing list