diff options
author | B. Watson <yalhcru@gmail.com> | 2017-06-26 17:35:24 -0400 |
---|---|---|
committer | Willy Sudiarto Raharjo <willysr@slackbuilds.org> | 2017-07-01 07:42:26 +0700 |
commit | fcf3687792713dbe269f4e72b0378be88f540246 (patch) | |
tree | bc2341e7e61b488835957c1df2c61c2eec252700 /system/untex/fix_warnings.diff | |
parent | da0da5da8d33a6c28f8f6c5ed73873dc85ef8610 (diff) |
system/untex: New maintainer, minor fixes.
Signed-off-by: B. Watson <yalhcru@gmail.com>
Diffstat (limited to 'system/untex/fix_warnings.diff')
-rw-r--r-- | system/untex/fix_warnings.diff | 47 |
1 files changed, 47 insertions, 0 deletions
diff --git a/system/untex/fix_warnings.diff b/system/untex/fix_warnings.diff new file mode 100644 index 0000000000000..23d3de71fec66 --- /dev/null +++ b/system/untex/fix_warnings.diff @@ -0,0 +1,47 @@ +diff -Naur a/untex.c b/untex.c +--- a/untex.c 1995-11-22 10:07:51.000000000 -0500 ++++ b/untex.c 2017-06-26 17:18:46.919412040 -0400 +@@ -43,6 +43,8 @@ + */ + + ++#include <stdlib.h> ++#include <string.h> + #include <stddef.h> + #include <stdio.h> + #include <ctype.h> +@@ -75,7 +77,7 @@ + char *umlaut(int c); + int parsecmd(FILE *inf); + int skipcomment(FILE *inf, int *c); +-int skip(FILE *inf, int c); ++void skip(FILE *inf, int c); + + int main(int argc, char *argv[]) + { +@@ -292,7 +294,7 @@ + return((*c != EOF)); + } + +-int skip(FILE *inf, int c) ++void skip(FILE *inf, int c) + { + int cc, ec, openb, closeb; + switch (c) { +@@ -304,7 +306,7 @@ + cc = getc(inf); + if (cc != c) { + ungetc(cc, inf); +- return(cc != EOF); ++ return; + } + openb = 1; + closeb = 0; +@@ -342,7 +344,6 @@ + int c, ce; + char cmd[MAXCMDLEN], env[MAXCMDLEN], envtst[MAXCMDLEN]; + int fnc, cmdc, envc, i, openb, closeb; +- int proceed; + char fname[MAXFILENAMELEN]; + + fnc = envc = cmdc = 0; |