summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorEli Schwartz <eschwartz93@gmail.com>2023-03-08 11:56:09 -0500
committerDrew DeVault <sir@cmpwn.com>2023-03-13 12:53:30 +0100
commitd562d7efb85fc4a498eedc6b1abc8a8e4443e1f4 (patch)
tree908ab2d3333a3c7aeb752b594421c504a01bc975
parent1923fb61cd71182f05d029f280d056b21f66e8a0 (diff)
remove useless re-declarations of standard functions
Historically, scdoc has used a project-local string.h, which overrode and masked <string.h> and caused issues. For example, strstr and strerror were impossible to obtain definitions for. Instead of fixing the clashing names, the definitions were locally copied into main.c In commit 309ff4672b7f5cba9bca1ce8657f767b51f32220 this was fixed properly (by renaming string.h to str.h) as part of adding printf usage to the file as well. But the old hacks were never cleaned up.
-rw-r--r--src/main.c3
1 files changed, 0 insertions, 3 deletions
diff --git a/src/main.c b/src/main.c
index 46b4aa8..676e2cb 100644
--- a/src/main.c
+++ b/src/main.c
@@ -13,9 +13,6 @@
#include "unicode.h"
#include "util.h"
-char *strstr(const char *haystack, const char *needle);
-char *strerror(int errnum);
-
static struct str *parse_section(struct parser *p) {
struct str *section = str_create();
uint32_t ch;