aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--driver.c55
-rw-r--r--fetchmail.h2
2 files changed, 27 insertions, 30 deletions
diff --git a/driver.c b/driver.c
index 5b2b44e7..0a34bbd9 100644
--- a/driver.c
+++ b/driver.c
@@ -47,6 +47,33 @@ static int tagnum;
static char *shroud;
+static int strcrlf(dst, src, count)
+/* replace LFs with CR-LF; return length of string with replacements */
+char *dst; /* new string with CR-LFs */
+char *src; /* original string with LFs */
+int count; /* length of src */
+{
+ int len = count;
+
+ while (count--)
+ {
+ if (*src == '\n')
+ {
+ *dst++ = '\r';
+ len++;
+ }
+ *dst++ = *src++;
+ }
+ *dst = '\0';
+ return len;
+}
+
+static void alarm_handler (int signal)
+/* handle server-timeout signal */
+{
+ longjmp(restart, 1);
+}
+
static void reply_hack(buf, host)
/* hack message headers so replies will work properly */
char *buf; /* header to be hacked */
@@ -1026,32 +1053,4 @@ va_dcl {
return(ok);
}
-int strcrlf(dst, src, count)
-/* replace LFs with CR-LF; return length of string with replacements */
-char *dst; /* new string with CR-LFs */
-char *src; /* original string with LFs */
-int count; /* length of src */
-{
- int len = count;
-
- while (count--)
- {
- if (*src == '\n')
- {
- *dst++ = '\r';
- len++;
- }
- *dst++ = *src++;
- }
- *dst = '\0';
- return len;
-}
-
-void
-alarm_handler (int signal)
-/* handle server-timeout signal */
-{
- longjmp(restart, 1);
-}
-
/* driver.c ends here */
diff --git a/fetchmail.h b/fetchmail.h
index ce56f379..47f09a72 100644
--- a/fetchmail.h
+++ b/fetchmail.h
@@ -193,7 +193,5 @@ void optmerge();
#endif
-void alarm_handler();
-
#define FALSE 0
#define TRUE 1