OSDN Git Service

parted/table.c: Fix a warning when compiling with translation support
authorOtavio Salvador <otavio@ossystems.com.br>
Wed, 30 May 2007 03:17:43 +0000 (00:17 -0300)
committerOtavio Salvador <otavio@ossystems.com.br>
Wed, 30 May 2007 03:18:43 +0000 (00:18 -0300)
,----[ Output when compiling with translation support ]
|...
| table.c: In function 'table_add_row_from_strlist':
| table.c:168: warning: implicit declaration of function 'wcsdup'
| table.c:168: warning: assignment makes pointer from integer without a cast
`----

Signed-off-by: Otavio Salvador <otavio@ossystems.com.br>
parted/table.c

index befb045..c878f60 100644 (file)
@@ -32,6 +32,7 @@
 #ifdef ENABLE_NLS
 #       include <wchar.h>
         int wcswidth (const wchar_t *s, size_t n);
+        wchar_t *wcsdup(const wchar_t *s);
 #      define L_(str) L##str
 #else
 #      define L_(str) str