Convert to C-style comments.

This commit is contained in:
Giovanni Bajo
2012-04-28 03:47:10 +02:00
committed by Simon Kelley
parent 28f04fd647
commit dd090561bf

View File

@@ -45,12 +45,12 @@ static int extract_name_no_compression(unsigned char *rr, int maxlen, char *buf)
}
*buf++ = '.';
}
// Remove trailing dot (if any)
/* Remove trailing dot (if any) */
if (rr != start)
*(--buf) = 0;
if (rr == end)
return 0;
// Trailing \0 in source data must be consumed
/* Trailing \0 in source data must be consumed */
return rr-start+1;
}