Date: Fri, 24 Aug 2012 11:24:31 +0000 (UTC) From: Baptiste Daroussin <bapt@FreeBSD.org> To: ports-committers@freebsd.org, svn-ports-all@freebsd.org, svn-ports-head@freebsd.org Subject: svn commit: r303073 - head/misc/detachtty/files Message-ID: <201208241124.q7OBOVNA027617@svn.freebsd.org>
next in thread | raw e-mail | index | archive | help
Author: bapt Date: Fri Aug 24 11:24:31 2012 New Revision: 303073 URL: http://svn.freebsd.org/changeset/ports/303073 Log: Fix build with clang Added: head/misc/detachtty/files/patch-copy-stream.c (contents, props changed) Added: head/misc/detachtty/files/patch-copy-stream.c ============================================================================== --- /dev/null 00:00:00 1970 (empty, because file is newly added) +++ head/misc/detachtty/files/patch-copy-stream.c Fri Aug 24 11:24:31 2012 (r303073) @@ -0,0 +1,11 @@ +--- ./copy-stream.c.orig 2003-01-18 15:03:15.000000000 +0100 ++++ ./copy-stream.c 2012-08-24 13:22:21.932915476 +0200 +@@ -21,7 +21,7 @@ + + int output_buffer(int fd) { + int bytes_written=0,bytes_to_write=bytes_in_buf; +- if(fd<0) return; ++ if(fd<0) return 0; + while(bytes_to_write>0) { + bytes_written=write(fd,buf,bytes_to_write); + if(bytes_written==-1) return -1;
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201208241124.q7OBOVNA027617>