slackbuilds_ponce/system/untex/fix_warnings.diff
B. Watson fcf3687792 system/untex: New maintainer, minor fixes.
Signed-off-by: B. Watson <yalhcru@gmail.com>
2017-07-01 07:42:26 +07:00

47 lines
1,000 B
Diff

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;