On Fri, 2008-02-08 at 19:25 -0500, Warren Togami wrote: > bonnie++ hasn't changed in many years now. The attached should do the trick for both the error and the warning, hunks respectively Jeremy
diff -up bonnie++-1.03a/zcav.cpp.gcc43 bonnie++-1.03a/zcav.cpp --- bonnie++-1.03a/zcav.cpp.gcc43 2008-02-08 20:19:25.000000000 -0500 +++ bonnie++-1.03a/zcav.cpp 2008-02-08 20:19:37.000000000 -0500 @@ -9,6 +9,7 @@ using namespace std; #include <sys/stat.h> #include <fcntl.h> #include <stdlib.h> +#include <string.h> #include "bonnie.h" #ifdef HAVE_VECTOR #include <vector> @@ -72,7 +73,7 @@ int main(int argc, char *argv[]) usage(); userName = strdup(optarg); int i; - for(i = 0; userName[i] && userName[i] != ':'; i++); + for(i = 0; userName[i] && userName[i] != ':'; i++) ; if(userName[i] == ':') { if(groupName)
-- fedora-devel-list mailing list fedora-devel-list@xxxxxxxxxx https://www.redhat.com/mailman/listinfo/fedora-devel-list