OSEC

Neohapsis is currently accepting applications for employment. For more information, please visit our website www.neohapsis.com or email hr@neohapsis.com
CVS: cvs.openbsd.org: src

From: Ray Lai (raycvs.openbsd.org)
Date: Tue May 29 2007 - 21:21:20 CDT


CVSROOT: /cvs
Module name: src
Changes by: raycvs.openbsd.org 2007/05/29 20:21:20

Modified files:
        usr.bin/cvs : diff_internals.c

Log message:
Sync rcsdiff -> cvs diff

Surprisingly, rcsdiff has nicer code than cvs diff. Changes:
1. Include sys/param.h because we are using MIN/MAX... not sure why
it hasn't complained in the past.
2. Use fstat instead of stat.
3. Remove useless casts and __inline.
4. Plug a memory leak.

OK niallo