Skip site navigation (1)Skip section navigation (2)
Date:      Sat, 24 Feb 2018 01:58:53 +0000 (UTC)
From:      Conrad Meyer <cem@FreeBSD.org>
To:        src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org
Subject:   svn commit: r329892 - head/stand/libsa
Message-ID:  <201802240158.w1O1wr30017040@repo.freebsd.org>

next in thread | raw e-mail | index | archive | help
Author: cem
Date: Sat Feb 24 01:58:53 2018
New Revision: 329892
URL: https://svnweb.freebsd.org/changeset/base/329892

Log:
  libsa: Change write(2)-alike prototype to match definition
  
  Broken in r329879.
  
  Apparently old GCC detects this, but modern GCC didn't.  Mea culpa.
  
  Reported by:	np
  Sponsored by:	Dell EMC Isilon

Modified:
  head/stand/libsa/stand.h

Modified: head/stand/libsa/stand.h
==============================================================================
--- head/stand/libsa/stand.h	Sat Feb 24 01:46:56 2018	(r329891)
+++ head/stand/libsa/stand.h	Sat Feb 24 01:58:53 2018	(r329892)
@@ -289,7 +289,7 @@ extern int	open(const char *, int);
 extern int	close(int);
 extern void	closeall(void);
 extern ssize_t	read(int, void *, size_t);
-extern ssize_t	write(int, void *, size_t);
+extern ssize_t	write(int, const void *, size_t);
 extern struct	dirent *readdirfd(int);
 
 extern void	srandom(unsigned int);



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201802240158.w1O1wr30017040>