main: no command-line arguments, add comment about the web - grabtitle - stupid HTML title grabber
(HTM) git clone git://git.codemadness.org/grabtitle
(DIR) Log
(DIR) Files
(DIR) Refs
(DIR) README
(DIR) LICENSE
---
(DIR) commit 1c506adc3502530014355ae774f8b306e9a8f4bb
(DIR) parent df35821b012c868c75ca1bed237624c39a0d7e12
(HTM) Author: Hiltjo Posthuma <hiltjo@codemadness.org>
Date: Tue, 11 Dec 2018 21:28:10 +0100
main: no command-line arguments, add comment about the web
Diffstat:
M grabtitle.c | 5 +++--
1 file changed, 3 insertions(+), 2 deletions(-)
---
(DIR) diff --git a/grabtitle.c b/grabtitle.c
@@ -21,7 +21,8 @@ static int (*getnext)(void);
/* return a space for all data until some case-insensitive string occurs. This
is used to parse incorrect HTML/XML that contains unescaped HTML in script
- or style tags. */
+ or style tags. If you see some </script> tag in a CDATA or comment
+ section then e-mail W3C and tell them the web is too complex. */
static inline int
getchar_ignore(void)
{
@@ -95,7 +96,7 @@ xmltagstart(XMLParser *p, const char *t, size_t tl)
}
int
-main(int argc, char *argv[])
+main(void)
{
if (pledge("stdio", NULL) == -1) {
fprintf(stderr, "pledge: %s\n", strerror(errno));