shithub: scc

Download patch

ref: 6ed60e4e77c4c59fdd0aa27fb6b9af2be9658faf
parent: 22e4f93e4cfa71867709d7486793d4f7a912dbbf
author: Roberto E. Vargas Caballero <k0ga@shike2.com>
date: Mon Aug 20 12:59:00 EDT 2018

[lib/scc] Use the same pointer type if va_arg()

--- a/lib/scc/bpack.c
+++ b/lib/scc/bpack.c
@@ -24,7 +24,7 @@
 				n *= 10;
 				d = *fmt++ - '0';
 			}
-			cp = va_arg(va, char *);
+			cp = va_arg(va, unsigned char *);
 			while (n--)
 				*bp++ = *cp++;
 			break;
--- a/lib/scc/bunpack.c
+++ b/lib/scc/bunpack.c
@@ -26,7 +26,7 @@
 				n *= 10;
 				d = *fmt++ - '0';
 			}
-			cp = va_arg(va, char *);
+			cp = va_arg(va, unsigned char *);
 			while (n--)
 				*cp++ = *bp++;
 			break;
--- a/lib/scc/lpack.c
+++ b/lib/scc/lpack.c
@@ -24,7 +24,7 @@
 				n *= 10;
 				d = *fmt++ - '0';
 			}
-			cp = va_arg(va, char *);
+			cp = va_arg(va, unsigned char *);
 			while (n--)
 				*bp++ = *cp++;
 			break;
--- a/lib/scc/lunpack.c
+++ b/lib/scc/lunpack.c
@@ -26,7 +26,7 @@
 				n *= 10;
 				d = *fmt++ - '0';
 			}
-			cp = va_arg(va, char *);
+			cp = va_arg(va, unsigned char *);
 			while (n--)
 				*cp++ = *bp++;
 			break;