[DVDnav-discuss] [PATCH] drop perror()

Mike Frysinger vapier at gentoo.org
Thu Apr 17 21:28:55 CEST 2014


On Wed 16 Apr 2014 09:51:41 Erik Auerswald wrote:
> On Tue, Apr 15, 2014 at 11:34:03AM -0600, Steve Dibb wrote:
> > perror() is only used twice in the code, everything else uses fprintf to
> > stderr.
> 
> perror() gives additional information, e.g. 'permission denied' or 'no such
> file or directory'. This might be helpful.
> 
> Why do you want to remove perror()?

right ... either replace it with equivalent code, or leave it be
	fprintf(stderr, "open(%s) failed: %s\n", path, strerror(errno));
-mike
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 836 bytes
Desc: This is a digitally signed message part.
URL: <http://lists.mplayerhq.hu/pipermail/dvdnav-discuss/attachments/20140417/a679d239/attachment.asc>


More information about the DVDnav-discuss mailing list