projects
/
unix-history
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
tags
|
clone url
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
no SCCS file; new copyright; att/bsd/shared
[unix-history]
/
usr
/
src
/
lib
/
libc
/
stdio
/
fputs.c
diff --git
a/usr/src/lib/libc/stdio/fputs.c
b/usr/src/lib/libc/stdio/fputs.c
index
1a292d8
..
567c33b
100644
(file)
--- a/
usr/src/lib/libc/stdio/fputs.c
+++ b/
usr/src/lib/libc/stdio/fputs.c
@@
-9,10
+9,9
@@
*/
#if defined(LIBC_SCCS) && !defined(lint)
*/
#if defined(LIBC_SCCS) && !defined(lint)
-static char sccsid[] = "@(#)fputs.c 5.
3
(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/stdc.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.3 (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;
+ c
onst c
har *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;