Skip to contentSkip to conversation

tiny nametest.c warning fixes

PATCH In review Christoph Hellwig 1 participant 2 messages Aug 9, 2008 – Aug 28, 2008

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 tiny nametest.c warning fixes

Include ctype.h for toupper/tolower and remove an unused variable.

src/nametest.c +1 -1
@@ -16,6 +16,7 @@
  * Inc.,  51 Franklin St, Fifth Floor, Boston, MA  02110-1301  USA
  */
 
+#include <ctype.h>
 #include "global.h"
 
 /*
@@ -308,7 +309,6 @@ main(int argc, char *argv[])
 char *get_name(struct info *ip)
 {
 	static char path[PATH_MAX];
-	int i;
 	char *p;
 
 	if (!mixcase)
#1 lore raw

ping?

Quoted 16 lines · Christoph Hellwig

Include ctype.h for toupper/tolower and remove an unused variable.

src/nametest.c +1 -0
@@ -16,6 +16,7 @@
  * Inc.,  51 Franklin St, Fifth Floor, Boston, MA  02110-1301  USA
  */
 
+#include <ctype.h>
 #include "global.h"
 
 /*

src/nametest.c main(int argc, char *argv[]) · line 314

Quoted 7 lines
src/nametest.c +0 -1
@@ -308,7 +309,6 @@ main(int argc, char *argv[])
 char *get_name(struct info *ip)
 {
 	static char path[PATH_MAX];
-	int i;
 	char *p;
 
 	if (!mixcase)

---end quoted text---