[PATCH] tiny nametest.c warning fixes

View: New views
2 Messages — Rating Filter:   Alert me  

[PATCH] tiny nametest.c warning fixes

by Christoph Hellwig-2 :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

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


Signed-off-by: Christoph Hellwig <hch@...>

--- xfstests/src/nametest.c 24 Jun 2008 16:29:51 -0000 1.8
+++ xfstests/src/nametest.c 9 Aug 2008 19:55:37 -0000
@@ -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)



Re: [PATCH] tiny nametest.c warning fixes

by Christoph Hellwig-2 :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

ping?

On Sat, Aug 09, 2008 at 09:59:08PM +0200, Christoph Hellwig wrote:

> Include ctype.h for toupper/tolower and remove an unused variable.
>
>
> Signed-off-by: Christoph Hellwig <hch@...>
>
> --- xfstests/src/nametest.c 24 Jun 2008 16:29:51 -0000 1.8
> +++ xfstests/src/nametest.c 9 Aug 2008 19:55:37 -0000
> @@ -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)
---end quoted text---


LightInTheBox - Buy quality products at wholesale price!