summaryrefslogtreecommitdiff
path: root/libgo/runtime/go-unsafe-pointer.c
diff options
context:
space:
mode:
Diffstat (limited to 'libgo/runtime/go-unsafe-pointer.c')
-rw-r--r--libgo/runtime/go-unsafe-pointer.c10
1 files changed, 5 insertions, 5 deletions
diff --git a/libgo/runtime/go-unsafe-pointer.c b/libgo/runtime/go-unsafe-pointer.c
index cda59361327..e3a55b4dfb2 100644
--- a/libgo/runtime/go-unsafe-pointer.c
+++ b/libgo/runtime/go-unsafe-pointer.c
@@ -6,7 +6,7 @@
#include <stddef.h>
-#include "go-string.h"
+#include "runtime.h"
#include "go-type.h"
/* This file provides the type descriptor for the unsafe.Pointer type.
@@ -26,9 +26,9 @@ struct field_align
/* The reflection string. */
#define REFLECTION "unsafe.Pointer"
-static const struct __go_string reflection_string =
+static const String reflection_string =
{
- (const unsigned char *) REFLECTION,
+ (const byte *) REFLECTION,
sizeof REFLECTION - 1
};
@@ -65,9 +65,9 @@ extern const struct __go_ptr_type pointer_unsafe_Pointer
/* The reflection string. */
#define PREFLECTION "*unsafe.Pointer"
-static const struct __go_string preflection_string =
+static const String preflection_string =
{
- (const unsigned char *) PREFLECTION,
+ (const byte *) PREFLECTION,
sizeof PREFLECTION - 1,
};