mirror of
https://git.freebsd.org/ports.git
synced 2025-05-19 18:43:13 -04:00
In file included from address.cc:39: ./convert.h:117:14: error: assigning to 'char *' from incompatible type 'const char *' if ((t = strchr(hexchars, c)) == 0) ^ ~~~~~~~~~~~~~~~~~~~ ./convert.h:122:14: error: assigning to 'char *' from incompatible type 'const char *' if ((t = strchr(hexchars, d)) == 0) ^ ~~~~~~~~~~~~~~~~~~~ Reported by: pkg-fallout
20 lines
462 B
C++
20 lines
462 B
C++
--- src/convert.h.orig 2005-02-08 20:30:22 UTC
|
|
+++ src/convert.h
|
|
@@ -43,6 +43,8 @@
|
|
#include <iostream>
|
|
|
|
#include <stdio.h>
|
|
+#include <stdlib.h>
|
|
+#include <string.h>
|
|
#include <sys/stat.h>
|
|
|
|
#include "address.h"
|
|
@@ -113,7 +113,7 @@ namespace Binc {
|
|
unsigned char c = *i;
|
|
unsigned char d = *(i + 1);
|
|
|
|
- char *t;
|
|
+ const char *t;
|
|
if ((t = strchr(hexchars, c)) == 0)
|
|
return "out of range";
|
|
n = (t - hexchars) << 4;
|