no SCCS file; new copyright; att/bsd/shared
[unix-history] / usr / src / lib / libc / stdio / fputs.c
index 34b0341..567c33b 100644 (file)
@@ -9,10 +9,9 @@
  */
 
 #if defined(LIBC_SCCS) && !defined(lint)
  */
 
 #if defined(LIBC_SCCS) && !defined(lint)
-static char sccsid[] = "@(#)fputs.c    5.4 (Berkeley) %G%";
+static char sccsid[] = "@(#)fputs.c    5.6 (Berkeley) %G%";
 #endif /* LIBC_SCCS and not lint */
 
 #endif /* LIBC_SCCS and not lint */
 
-#include <sys/cdefs.h>
 #include <stdio.h>
 #include <string.h>
 #include "fvwrite.h"
 #include <stdio.h>
 #include <string.h>
 #include "fvwrite.h"
@@ -21,13 +20,13 @@ static char sccsid[] = "@(#)fputs.c 5.4 (Berkeley) %G%";
  * Write the given string to the given file.
  */
 fputs(s, fp)
  * Write the given string to the given file.
  */
 fputs(s, fp)
-       char *s;
+       const char *s;
        FILE *fp;
 {
        struct __suio uio;
        struct __siov iov;
 
        FILE *fp;
 {
        struct __suio uio;
        struct __siov iov;
 
-       iov.iov_base = s;
+       iov.iov_base = (void *)s;
        iov.iov_len = uio.uio_resid = strlen(s);
        uio.uio_iov = &iov;
        uio.uio_iovcnt = 1;
        iov.iov_len = uio.uio_resid = strlen(s);
        uio.uio_iov = &iov;
        uio.uio_iovcnt = 1;