summaryrefslogtreecommitdiff
path: root/usr.bin
diff options
context:
space:
mode:
authorTheo de Raadt <deraadt@cvs.openbsd.org>2013-11-12 22:50:43 +0000
committerTheo de Raadt <deraadt@cvs.openbsd.org>2013-11-12 22:50:43 +0000
commit794a07d7dc59b8439136020523964f025ccd2ab5 (patch)
tree1d8b0bb24bbe4c8fc0eab23a8af8b180e438ba8d /usr.bin
parent38d74a216830a14bae80baee0dcfc1cc0b35b794 (diff)
simple prototype repairs
Diffstat (limited to 'usr.bin')
-rw-r--r--usr.bin/ftp/list.c4
-rw-r--r--usr.bin/grep/binary.c4
2 files changed, 5 insertions, 3 deletions
diff --git a/usr.bin/ftp/list.c b/usr.bin/ftp/list.c
index f31b90300b9..312f4e09d32 100644
--- a/usr.bin/ftp/list.c
+++ b/usr.bin/ftp/list.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: list.c,v 1.5 2010/07/03 00:21:14 halex Exp $ */
+/* $OpenBSD: list.c,v 1.6 2013/11/12 22:50:39 deraadt Exp $ */
/*
* Copyright (c) 2008 Martynas Venckus <martynas@openbsd.org>
@@ -20,6 +20,8 @@
#include <string.h>
+void parse_list(char **, char *);
+
void
parse_unix(char **line, char *type)
{
diff --git a/usr.bin/grep/binary.c b/usr.bin/grep/binary.c
index f62e4e3e7f7..1a22a6b2e71 100644
--- a/usr.bin/grep/binary.c
+++ b/usr.bin/grep/binary.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: binary.c,v 1.17 2011/06/20 18:14:01 stsp Exp $ */
+/* $OpenBSD: binary.c,v 1.18 2013/11/12 22:50:42 deraadt Exp $ */
/*-
* Copyright (c) 1999 James Howard and Dag-Erling Coïdan Smørgrav
@@ -34,7 +34,7 @@
#include "grep.h"
-int
+static int
isbinary(const char *buf, size_t n)
{
return (memchr(buf, '\0', n) != NULL);