1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34
|
From: Steve Langasek <steve.langasek@canonical.com>
Date: Wed, 5 Jun 2024 23:48:31 +0200
Subject: don't reimplement memmem()
Last-Update: 2024-04-09
Forwarded: no
memmem() is implemented in glibc, don't have a redundant duplicate
implementation with a different prototype.
---
parse.c | 10 ----------
1 file changed, 10 deletions(-)
diff --git a/parse.c b/parse.c
index 4481464..6eafc6f 100644
--- a/parse.c
+++ b/parse.c
@@ -1213,16 +1213,6 @@ void parse_qt (int level, int end)
}
}
-char *memmem (char *haystack, size_t haystacklen,
- char *needle, size_t needlelen)
-{
- char *c;
- for (c = haystack; c <= haystack + haystacklen - needlelen; c++)
- if (!memcmp (c, needle, needlelen))
- return c;
- return NULL;
-}
-
/*
Identify which camera created this file, and set global variables
accordingly. Return nonzero if the file cannot be decoded.
|