summaryrefslogtreecommitdiffstats
path: root/lib/csu/sparc64/crt1.c
diff options
context:
space:
mode:
Diffstat (limited to 'lib/csu/sparc64/crt1.c')
-rw-r--r--lib/csu/sparc64/crt1.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/lib/csu/sparc64/crt1.c b/lib/csu/sparc64/crt1.c
index 0c20383..99a63c8 100644
--- a/lib/csu/sparc64/crt1.c
+++ b/lib/csu/sparc64/crt1.c
@@ -34,6 +34,7 @@
#endif
#include <stdlib.h>
+#include "libc_private.h"
#include "crtbrand.c"
struct Struct_Obj_Entry;
@@ -55,7 +56,7 @@ extern int etext;
#endif
char **environ;
-char *__progname = "";
+const char *__progname = "";
/* The entry function. */
/*
@@ -77,6 +78,7 @@ _start(char **ap,
int argc;
char **argv;
char **env;
+ const char *s;
#if 0
void (*term)(void);
@@ -91,7 +93,6 @@ _start(char **ap,
env = ap + 2 + argc;
environ = env;
if (argc > 0 && argv[0] != NULL) {
- char *s;
__progname = argv[0];
for (s = __progname; *s != '\0'; s++)
if (*s == '/')
OpenPOWER on IntegriCloud