about summary refs log tree commit diff
path: root/string/swab.c
diff options
context:
space:
mode:
Diffstat (limited to 'string/swab.c')
-rw-r--r--string/swab.c5
1 files changed, 4 insertions, 1 deletions
diff --git a/string/swab.c b/string/swab.c
index c9cf7004ea..325ead5a93 100644
--- a/string/swab.c
+++ b/string/swab.c
@@ -19,8 +19,11 @@
 #include <unistd.h>
 
 void
-swab (const char *from, char *to, ssize_t n)
+swab (const void *bfrom, void *bto, ssize_t n)
 {
+  const char *from = (const char *) bfrom;
+  char *to = (char *) bto;
+
   n &= ~((ssize_t) 1);
   while (n > 1)
     {