diff options
author | Kurt Jaeger <pi@FreeBSD.org> | 2016-05-08 17:50:04 +0000 |
---|---|---|
committer | Kurt Jaeger <pi@FreeBSD.org> | 2016-05-08 17:50:04 +0000 |
commit | 8489b4ac928e67c965c6f3113ec60870033751d5 (patch) | |
tree | 0428f7b1c0494fa6753c9516c8f3b5d7be57757c /lang/rexx-regutil/files/patch-inifile.c | |
parent | - Update to 1.2.2. (diff) |
lang/rexx-regutil: several patches
- additional MASTER_SITE (there was only one)
- tidied Makefile considerably
- fixed failure to build under different PREFIX
- added DOC option
- added EXAMPLES option, and now can have examples (there were none before)
- eliminated numerous compilation warnings
- REMOVED pkg-plist (only two files in it)
- REMOVED pkg-message (now redundant)
- ADDED new patches in files/
PR: 209379
Submitted by: bob@eager.cx (maintainer)
Diffstat (limited to 'lang/rexx-regutil/files/patch-inifile.c')
-rw-r--r-- | lang/rexx-regutil/files/patch-inifile.c | 31 |
1 files changed, 31 insertions, 0 deletions
diff --git a/lang/rexx-regutil/files/patch-inifile.c b/lang/rexx-regutil/files/patch-inifile.c new file mode 100644 index 000000000000..e92d8a7aaab8 --- /dev/null +++ b/lang/rexx-regutil/files/patch-inifile.c @@ -0,0 +1,31 @@ +--- inifile.c.orig 2003-02-20 00:04:42 UTC ++++ inifile.c +@@ -194,7 +194,7 @@ static int read_ini_raw(inif_t fit) + fseek(fit->fp, 0, SEEK_SET); + + while ((oldoff = ftell(fit->fp)), +- fgets(buf, sizeof(buf), fit->fp) != NULL) { ++ fgets((char *) buf, sizeof(buf), fit->fp) != NULL) { + + /* skip leading whitespace */ + for (i = 0; !pt[buf[i]]; i++) +@@ -204,8 +204,8 @@ static int read_ini_raw(inif_t fit) + * line */ + switch (pt[buf[i]]) { + /* errors */ +- case CV_RBRACK: n = "closing bracket"; goto oops; +- case CV_EQUALS: n = "equals sign"; goto oops; ++ case CV_RBRACK: n = (unsigned char *) "closing bracket"; goto oops; ++ case CV_EQUALS: n = (unsigned char *) "equals sign"; goto oops; + + oops: + fprintf(stderr, "oops: line starts with %s: %s\n", n, buf); +@@ -284,7 +284,7 @@ static int read_ini_raw(inif_t fit) + * write anything before the first section */ + case CV_EOS: + case CV_COMMENT: +- i = strlen(buf); ++ i = strlen((char *) buf); + if (lvt) { + lvt->comment = realloc(lvt->comment, cl + i + 1); + memcpy(lvt->comment+cl, buf, i+1); |