From 6063f734e701b8e127c60b28f0ba5a69433fea66 Mon Sep 17 00:00:00 2001 From: Roland McGrath Date: Thu, 22 Jul 1993 19:20:16 +0000 Subject: [PATCH] Formerly alpha/strchr.c.~2~ --- sysdeps/alpha/strchr.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/sysdeps/alpha/strchr.c b/sysdeps/alpha/strchr.c index 8cf2024..db279de 100644 --- a/sysdeps/alpha/strchr.c +++ b/sysdeps/alpha/strchr.c @@ -1,4 +1,4 @@ -/* Copyright (C) 1992 Free Software Foundation, Inc. +/* Copyright (C) 1992, 1993 Free Software Foundation, Inc. The GNU C Library is free software; you can redistribute it and/or modify it under the terms of the GNU Library General Public License as @@ -35,7 +35,7 @@ strchr (const char *str, int c) if (*char_ptr == '\0') return NULL; else if (*char_ptr == c) - return char_ptr; + return (char *) char_ptr; longword_ptr = (unsigned long int *) char_ptr; @@ -63,7 +63,7 @@ strchr (const char *str, int c) { /* Which of the bytes was the C? */ - const char *cp = (const char *) (longword_ptr - 1); + char *cp = (char *) (longword_ptr - 1); if (cp[0] == c) return cp; -- 2.7.4