]> git.ipfire.org Git - thirdparty/libarchive.git/commitdiff
Avoid warnings about no argument.
authorMichihiro NAKAJIMA <ggcueroad@gmail.com>
Tue, 17 May 2011 04:17:46 +0000 (00:17 -0400)
committerMichihiro NAKAJIMA <ggcueroad@gmail.com>
Tue, 17 May 2011 04:17:46 +0000 (00:17 -0400)
SVN-Revision: 3351

libarchive/test/test_archive_read_support.h
libarchive/test/test_archive_string.c

index ba8416856ddb510967a5d66e209c95a246723214..04c554dbc2740db46df6181f8b34c56db02a6f1f 100644 (file)
@@ -24,7 +24,7 @@
  */
 __FBSDID("$FreeBSD$");
 
-typedef struct archive *constructor();
+typedef struct archive *constructor(void);
 typedef int enabler(struct archive *);
 typedef int destructor(struct archive *);
 
index 495df4377c04f6aa57405c03c782aa55517f2cb0..54f68bdaed1a40576a2cc4c358b2581bad1d5954 100644 (file)
@@ -47,7 +47,7 @@ __FBSDID("$FreeBSD$");
        } while (0)
 
 static void
-test_archive_string_ensure()
+test_archive_string_ensure(void)
 {
        struct archive_string s;
 
@@ -70,7 +70,7 @@ test_archive_string_ensure()
 }
 
 static void
-test_archive_strcat()
+test_archive_strcat(void)
 {
        struct archive_string s;
 
@@ -95,7 +95,7 @@ test_archive_strcat()
 }
 
 static void
-test_archive_strappend_char()
+test_archive_strappend_char(void)
 {
        struct archive_string s;
 
@@ -116,7 +116,7 @@ test_archive_strappend_char()
  */
 
 static void
-test_archive_strncat()
+test_archive_strncat(void)
 {
        struct archive_string s;
 
@@ -137,7 +137,7 @@ test_archive_strncat()
 }
 
 static void
-test_archive_strncpy()
+test_archive_strncpy(void)
 {
        struct archive_string s;
 
@@ -158,7 +158,7 @@ test_archive_strncpy()
 }
 
 static void
-test_archive_strcpy()
+test_archive_strcpy(void)
 {
        struct archive_string s;
 
@@ -179,7 +179,7 @@ test_archive_strcpy()
 }
 
 static void
-test_archive_string_concat()
+test_archive_string_concat(void)
 {
        struct archive_string s, t, u, v;
 
@@ -225,7 +225,7 @@ test_archive_string_concat()
 }
 
 static void
-test_archive_string_copy()
+test_archive_string_copy(void)
 {
        struct archive_string s, t, u, v;
 
@@ -277,7 +277,7 @@ test_archive_string_copy()
 }
 
 static void
-test_archive_string_sprintf()
+test_archive_string_sprintf(void)
 {
        struct archive_string s;
 #define S16 "0123456789abcdef"