summaryrefslogtreecommitdiff
path: root/japanese/pine/files/patch-aa
diff options
context:
space:
mode:
Diffstat (limited to 'japanese/pine/files/patch-aa')
-rw-r--r--japanese/pine/files/patch-aa54
1 files changed, 14 insertions, 40 deletions
diff --git a/japanese/pine/files/patch-aa b/japanese/pine/files/patch-aa
index 200d7393c348..61a22c67432d 100644
--- a/japanese/pine/files/patch-aa
+++ b/japanese/pine/files/patch-aa
@@ -1,45 +1,19 @@
-*** imap/ANSI/c-client/mtest.c.bak Mon Sep 5 05:41:28 1994
---- imap/ANSI/c-client/mtest.c Mon Nov 20 03:00:21 1995
+*** pico/os_unix.c.orig Fri Sep 20 13:43:41 1996
+--- pico/os_unix.c Fri Sep 20 13:44:43 1996
***************
-*** 454,461 ****
+*** 1527,1533 ****
+ #endif
+ extern int sys_nerr;
- void prompt (char *msg,char *txt)
- {
- printf ("%s",msg);
-! gets (txt);
+! return((err >= 0 && err < sys_nerr) ? sys_errlist[err] : NULL);
}
-
- /* Interfaces to C-client */
---- 454,465 ----
- void prompt (char *msg,char *txt)
- {
-+ char *s;
- printf ("%s",msg);
-! *txt = '\0';
-! fgets (txt, MAILTMPLEN, stdin);
-! if (s = strchr(txt, '\n'))
-! *s = '\0';
+
+--- 1527,1533 ----
+ #endif
+ extern int sys_nerr;
+
+! return(((err >= 0) && (err < sys_nerr)) ? (char*)sys_errlist[err] : NULL);
}
-
- /* Interfaces to C-client */
-***************
-*** 600,606 ****
- puts (" Msg (end with a line with only a '.'):");
- body->type = TYPETEXT;
- *text = '\0';
-! while (gets (line)) {
- if (line[0] == '.') {
- if (line[1] == '\0') break;
- else strcat ((char *) text,".");
---- 604,613 ----
- puts (" Msg (end with a line with only a '.'):");
- body->type = TYPETEXT;
- *text = '\0';
-! while (fgets (line, sizeof(line), stdin)) {
-! char *s = strchr(line, '\n');
-! if (s)
-! *s = '\0';
- if (line[0] == '.') {
- if (line[1] == '\0') break;
- else strcat ((char *) text,".");
+
+