rpms/spr/devel spr-07.08.00-getopt_ret.patch,NONE,1.1
Caolan McNamara
caolanm at fedoraproject.org
Sat Feb 28 13:19:25 UTC 2009
Author: caolanm
Update of /cvs/pkgs/rpms/spr/devel
In directory cvs1.fedora.phx.redhat.com:/tmp/cvs-serv17963
Added Files:
spr-07.08.00-getopt_ret.patch
Log Message:
comparing getopt ret to EOF requires stdio.h, or use just -1 (man 3p getopt)
spr-07.08.00-getopt_ret.patch:
--- NEW FILE spr-07.08.00-getopt_ret.patch ---
--- StatPatternRecognition.orig/src/SprAddBaggersApp.cc 2009-02-28 12:59:54.000000000 +0000
+++ StatPatternRecognition/src/SprAddBaggersApp.cc 2009-02-28 13:00:00.000000000 +0000
@@ -44,7 +44,7 @@
int c;
extern char* optarg;
// extern int optind;
- while((c = getopt(argc,argv,"hv:")) != EOF ) {
+ while((c = getopt(argc,argv,"hv:")) != -1 ) {
switch( c )
{
case 'h' :
More information about the fedora-extras-commits
mailing list