From owner-svn-soc-all@FreeBSD.ORG Fri Aug 17 16:43:34 2012 Return-Path: Delivered-To: svn-soc-all@FreeBSD.org Received: from socsvn.FreeBSD.org (unknown [IPv6:2001:4f8:fff6::2f]) by hub.freebsd.org (Postfix) with SMTP id 377C7106564A for ; Fri, 17 Aug 2012 16:43:32 +0000 (UTC) (envelope-from jhagewood@FreeBSD.org) Received: by socsvn.FreeBSD.org (sSMTP sendmail emulation); Fri, 17 Aug 2012 16:43:32 +0000 Date: Fri, 17 Aug 2012 16:43:32 +0000 From: jhagewood@FreeBSD.org To: svn-soc-all@FreeBSD.org MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Message-Id: <20120817164332.377C7106564A@hub.freebsd.org> Cc: Subject: socsvn commit: r240472 - in soc2012/jhagewood: diff sdiff X-BeenThere: svn-soc-all@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: SVN commit messages for the entire Summer of Code repository List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 17 Aug 2012 16:43:34 -0000 Author: jhagewood Date: Fri Aug 17 16:43:31 2012 New Revision: 240472 URL: http://svnweb.FreeBSD.org/socsvn/?view=rev&rev=240472 Log: Modified: soc2012/jhagewood/diff/decompress.c soc2012/jhagewood/sdiff/decompress.c Modified: soc2012/jhagewood/diff/decompress.c ============================================================================== --- soc2012/jhagewood/diff/decompress.c Fri Aug 17 16:11:59 2012 (r240471) +++ soc2012/jhagewood/diff/decompress.c Fri Aug 17 16:43:31 2012 (r240472) @@ -59,7 +59,8 @@ /* Decompresses a gzip file and returns a regular FILE. */ FILE * -decompressfile(char *filename, char *mode) { +decompressfile(char *filename, char *mode) +{ FILE *file; char *buf = ""; @@ -75,7 +76,8 @@ /* Checks for a gz file extension. */ int -isgzip(char *filename) { +isgzip(char *filename) +{ int length = (sizeof filename)-1; Modified: soc2012/jhagewood/sdiff/decompress.c ============================================================================== --- soc2012/jhagewood/sdiff/decompress.c Fri Aug 17 16:11:59 2012 (r240471) +++ soc2012/jhagewood/sdiff/decompress.c Fri Aug 17 16:43:31 2012 (r240472) @@ -58,7 +58,8 @@ /* Decompresses a gzip file and returns a regular FILE. */ FILE * -decompressfile(char *filename, char *mode) { +decompressfile(char *filename, char *mode) +{ FILE *file; char *buf = ""; @@ -74,7 +75,8 @@ /* Checks for a gz file extension. */ int -isgzip(char *filename) { +isgzip(char *filename) +{ int length = (sizeof filename)-1;