From 0b7286788a95dd854d1826b8493eda431d8e8aac Mon Sep 17 00:00:00 2001 From: Ralph Corderoy Date: Sat, 11 Nov 2017 14:22:24 +0000 Subject: [PATCH] fdcompare.c: Move interface to own file. --- Makefile.am | 1 + h/prototypes.h | 1 - sbr/fdcompare.c | 1 + sbr/fdcompare.h | 7 +++++++ uip/comp.c | 1 + 5 files changed, 10 insertions(+), 1 deletion(-) create mode 100644 sbr/fdcompare.h diff --git a/Makefile.am b/Makefile.am index 5e234030..439de599 100644 --- a/Makefile.am +++ b/Makefile.am @@ -375,6 +375,7 @@ noinst_HEADERS = \ sbr/context_save.h \ sbr/ctype-checked.h \ sbr/error.h \ + sbr/fdcompare.h \ sbr/folder_addmsg.h \ sbr/folder_delmsgs.h \ sbr/folder_free.h \ diff --git a/h/prototypes.h b/h/prototypes.h index eae5956d..ef7cc234 100644 --- a/h/prototypes.h +++ b/h/prototypes.h @@ -73,7 +73,6 @@ int encode_rfc2047(const char *name, char **value, int encoding, void escape_display_name (char *, size_t); void escape_local_part (char *, size_t); int ext_hook(char *, char *, char *); -int fdcompare (int, int); /* * Print null-terminated PROMPT to and flush standard output. Read answers from diff --git a/sbr/fdcompare.c b/sbr/fdcompare.c index b1767439..b745d170 100644 --- a/sbr/fdcompare.c +++ b/sbr/fdcompare.c @@ -6,6 +6,7 @@ */ #include "h/mh.h" +#include "fdcompare.h" int diff --git a/sbr/fdcompare.h b/sbr/fdcompare.h new file mode 100644 index 00000000..5ee3d7c1 --- /dev/null +++ b/sbr/fdcompare.h @@ -0,0 +1,7 @@ +/* fdcompare.h -- are two files identical? + * + * This code is Copyright (c) 2017, by the authors of nmh. See the + * COPYRIGHT file in the root directory of the nmh distribution for + * complete copyright information. */ + +int fdcompare(int, int); diff --git a/uip/comp.c b/uip/comp.c index 8609d5b3..f543db6d 100644 --- a/uip/comp.c +++ b/uip/comp.c @@ -6,6 +6,7 @@ */ #include "h/mh.h" +#include "sbr/fdcompare.h" #include "sbr/folder_read.h" #include "sbr/context_save.h" #include "sbr/context_find.h" -- 2.56.0