[comp.unix.wizards] Possible bug in Berkeley Time Server Daemon

minow@ranger.enet.dec.com (Martin Minow) (07/01/91)

In reading through the sources to the Berkeley Time Server Daemon (timed),
I noticed what appears to be a coding error in the networkdelta.c
function (sccsid 2.3 6/18/88).  In that function, there is a sequence
of statements bracketed by "/* this piece of code is critical: DO NOT
TOUCH IT! */"  Near the bottom of that code is the sequence
	i++
	if (i = j)
		j++;
Could someone who is conversant with the source please check whether
"if (i = j)" should be "if (i == j)" (a mail response is preferred, and
I'll summarize).

Please direct flames about coding style and appropriate news groups to
some other newsgroup.

Thanks

Martin Minow
minow@ranger.enet.dec.com