]> diplodocus.org Git - nmh/commitdiff
fdcompare.c: Move interface to own file.
authorRalph Corderoy <ralph@inputplus.co.uk>
Sat, 11 Nov 2017 14:22:24 +0000 (14:22 +0000)
committerRalph Corderoy <ralph@inputplus.co.uk>
Sun, 12 Nov 2017 12:25:29 +0000 (12:25 +0000)
Makefile.am
h/prototypes.h
sbr/fdcompare.c
sbr/fdcompare.h [new file with mode: 0644]
uip/comp.c

index 5e23403..439de59 100644 (file)
@@ -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 \
index eae5956..ef7cc23 100644 (file)
@@ -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
index b176743..b745d17 100644 (file)
@@ -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 (file)
index 0000000..5ee3d7c
--- /dev/null
@@ -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);
index 8609d5b..f543db6 100644 (file)
@@ -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"