summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRhys Kidd <rhyskidd@gmail.com>2016-11-24 21:54:14 -0500
committerPeter Hutterer <peter.hutterer@who-t.net>2016-11-25 13:02:44 +1000
commit6f2e907daed44da42f94b869c817fb63c2eafd1c (patch)
treeb244de05def1391fcfbf5f0e619b542cc1d80756
parent1a7eea00ed9579baea65e671934734f134babe95 (diff)
xts5: Fix clang error - non-void function 'outfile' should return a value
files.c:267:3: error: non-void function 'outfile' should return a value [-Wreturn-type] return; ^ v2: Correct declaration (Peter Hutterer) Signed-off-by: Peter Hutterer <peter.hutterer@who-t.net>
-rw-r--r--xts5/src/bin/mc/files.c2
-rw-r--r--xts5/src/bin/mc/mcproto.h2
2 files changed, 2 insertions, 2 deletions
diff --git a/xts5/src/bin/mc/files.c b/xts5/src/bin/mc/files.c
index ee88a400..a9198e13 100644
--- a/xts5/src/bin/mc/files.c
+++ b/xts5/src/bin/mc/files.c
@@ -236,7 +236,7 @@ char *tmpfile;
* Combine all the files in the right order onto
* stdout.
*/
-outfile(fp)
+void outfile(fp)
FILE *fp;
{
static FILE *fout;
diff --git a/xts5/src/bin/mc/mcproto.h b/xts5/src/bin/mc/mcproto.h
index 32dd7115..16df2949 100644
--- a/xts5/src/bin/mc/mcproto.h
+++ b/xts5/src/bin/mc/mcproto.h
@@ -105,7 +105,7 @@ void mepcomment(char *buf);
FILE *nextfile(struct mclist *sources);
void outcopy(char *file);
FILE *cretmpfile(char *file, char **crefile);
-int outfile(FILE *fp);
+void outfile(FILE *fp);
int remfiles(void);
int includefile(char *file, char *bp);
void filetemp(char *name);