summaryrefslogtreecommitdiff
path: root/usr.bin/grep/grep.h
diff options
context:
space:
mode:
authorTheo de Raadt <deraadt@cvs.openbsd.org>2014-12-01 06:36:05 +0000
committerTheo de Raadt <deraadt@cvs.openbsd.org>2014-12-01 06:36:05 +0000
commitd64ce1902e872b6a2e9d67fc497577d94f69efe3 (patch)
treec806001a8fab519cb317d6f318d99cc38abf6503 /usr.bin/grep/grep.h
parent0ef94e6e3f97eca0d5d8834bea5c2e0448af5bc2 (diff)
use reallocarray()
Diffstat (limited to 'usr.bin/grep/grep.h')
-rw-r--r--usr.bin/grep/grep.h3
1 files changed, 2 insertions, 1 deletions
diff --git a/usr.bin/grep/grep.h b/usr.bin/grep/grep.h
index 63d3dacb4a6..954844bdc01 100644
--- a/usr.bin/grep/grep.h
+++ b/usr.bin/grep/grep.h
@@ -1,4 +1,4 @@
-/* $OpenBSD: grep.h,v 1.19 2013/11/26 13:21:16 deraadt Exp $ */
+/* $OpenBSD: grep.h,v 1.20 2014/12/01 06:36:04 deraadt Exp $ */
/*-
* Copyright (c) 1999 James Howard and Dag-Erling Coïdan Smørgrav
@@ -84,6 +84,7 @@ int grep_tree(char **argv);
void *grep_malloc(size_t size);
void *grep_calloc(size_t nmemb, size_t size);
void *grep_realloc(void *ptr, size_t size);
+void *grep_reallocarray(void *ptr, size_t nmemb, size_t size);
void printline(str_t *line, int sep, regmatch_t *pmatch);
int fastcomp(fastgrep_t *, const char *);
void fgrepcomp(fastgrep_t *, const unsigned char *);