Fix warnings in preparation for adding -Wall -Wcast-qual to the

kernel compile
This commit is contained in:
Matthew Dillon 1999-01-28 02:26:20 +00:00
parent 0a5e03dda5
commit e3870274b4
2 changed files with 4 additions and 4 deletions

View File

@ -30,7 +30,7 @@
* OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
* SUCH DAMAGE.
*
* $Id$
* $Id: strcat.c,v 1.4 1997/02/22 09:40:02 peter Exp $
*/
#include <string.h>
@ -43,6 +43,6 @@ strcat(s, append)
char *save = s;
for (; *s; ++s);
while (*s++ = *append++);
while ((*s++ = *append++) != 0);
return(save);
}

View File

@ -30,7 +30,7 @@
* OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
* SUCH DAMAGE.
*
* $Id: strcpy.c,v 1.4 1997/02/22 09:40:02 peter Exp $
* $Id: strcpy.c,v 1.5 1997/08/02 14:31:50 bde Exp $
*/
#include <string.h>
@ -42,6 +42,6 @@ strcpy(to, from)
{
char *save = to;
for (; *to = *from; ++from, ++to);
for (; (*to = *from) != 0; ++from, ++to);
return(save);
}