Deleted Added
full compact
gets.c (56698) gets.c (71579)
1/*-
2 * Copyright (c) 1990, 1993
3 * The Regents of the University of California. All rights reserved.
4 *
5 * This code is derived from software contributed to Berkeley by
6 * Chris Torek.
7 *
8 * Redistribution and use in source and binary forms, with or without

--- 25 unchanged lines hidden (view full) ---

34 * SUCH DAMAGE.
35 */
36
37#if defined(LIBC_SCCS) && !defined(lint)
38#if 0
39static char sccsid[] = "@(#)gets.c 8.1 (Berkeley) 6/4/93";
40#endif
41static const char rcsid[] =
1/*-
2 * Copyright (c) 1990, 1993
3 * The Regents of the University of California. All rights reserved.
4 *
5 * This code is derived from software contributed to Berkeley by
6 * Chris Torek.
7 *
8 * Redistribution and use in source and binary forms, with or without

--- 25 unchanged lines hidden (view full) ---

34 * SUCH DAMAGE.
35 */
36
37#if defined(LIBC_SCCS) && !defined(lint)
38#if 0
39static char sccsid[] = "@(#)gets.c 8.1 (Berkeley) 6/4/93";
40#endif
41static const char rcsid[] =
42 "$FreeBSD: head/lib/libc/stdio/gets.c 56698 2000-01-27 23:07:25Z jasone $";
42 "$FreeBSD: head/lib/libc/stdio/gets.c 71579 2001-01-24 13:01:12Z deischen $";
43#endif /* LIBC_SCCS and not lint */
44
43#endif /* LIBC_SCCS and not lint */
44
45#include "namespace.h"
45#include <unistd.h>
46#include <stdio.h>
47#include <sys/cdefs.h>
46#include <unistd.h>
47#include <stdio.h>
48#include <sys/cdefs.h>
49#include "un-namespace.h"
48
49__warn_references(gets, "warning: this program uses gets(), which is unsafe.");
50
51char *
52gets(buf)
53 char *buf;
54{
55 register int c;

--- 20 unchanged lines hidden ---
50
51__warn_references(gets, "warning: this program uses gets(), which is unsafe.");
52
53char *
54gets(buf)
55 char *buf;
56{
57 register int c;

--- 20 unchanged lines hidden ---