From 2cbcbd42c8fafaa3e382279bcbdbb5b4d56aa3cd Mon Sep 17 00:00:00 2001 From: Adam Dickmeiss Date: Tue, 11 Jul 1995 11:49:11 +0000 Subject: [PATCH] LINE_MAX renamed to STR_LINE_MAX. --- kernel/eti.c | 15 +++++++++------ kernel/kernel.h | 9 ++++++--- kernel/monitor.c | 7 +++++-- kernel/urp.c | 13 ++++++++----- 4 files changed, 28 insertions(+), 16 deletions(-) diff --git a/kernel/eti.c b/kernel/eti.c index 1aaaf71..a6843ca 100644 --- a/kernel/eti.c +++ b/kernel/eti.c @@ -45,7 +45,10 @@ * Europagate, 1995 * * $Log: eti.c,v $ - * Revision 1.15 1995/07/03 12:59:28 adam + * Revision 1.16 1995/07/11 11:49:11 adam + * LINE_MAX renamed to STR_LINE_MAX. + * + * Revision 1.15 1995/07/03 12:59:28 adam * New option for eti: -c dir to chdir before start. * Setting change: gw.max.show defaults to 100. * @@ -115,7 +118,7 @@ #include #include -#define LINE_MAX 1024 +#define STR_LINE_MAX 1024 static char *module = "eti"; static jmp_buf retry_jmp; @@ -193,9 +196,9 @@ static void deliver (struct str_queue *sq, GIP gip, const char *msg) int main (int argc, char **argv) { - char from_str[LINE_MAX+1]; - char subject_str[LINE_MAX+1]; - char line_str[LINE_MAX+1]; + char from_str[STR_LINE_MAX+1]; + char subject_str[STR_LINE_MAX+1]; + char line_str[STR_LINE_MAX+1]; char msg[20]; GW_DB user_db; GIP gip; @@ -279,7 +282,7 @@ int main (int argc, char **argv) gw_log (GW_LOG_FATAL|GW_LOG_ERRNO, module, "str_queue_mk"); exit (1); } - while (fgets (line_str, LINE_MAX, stdin)) + while (fgets (line_str, STR_LINE_MAX, stdin)) str_queue_enq (queue, line_str); r = email_header (queue, from_str, subject_str); diff --git a/kernel/kernel.h b/kernel/kernel.h index e97020d..e48cbe8 100644 --- a/kernel/kernel.h +++ b/kernel/kernel.h @@ -45,7 +45,10 @@ * Europagate, 1995 * * $Log: kernel.h,v $ - * Revision 1.18 1995/05/16 09:40:42 adam + * Revision 1.19 1995/07/11 11:49:12 adam + * LINE_MAX renamed to STR_LINE_MAX. + * + * Revision 1.18 1995/05/16 09:40:42 adam * LICENSE. Setting of CCL token names (and/or/not/set) in read_kernel_res. * * Revision 1.17 1995/05/03 16:34:18 adam @@ -119,7 +122,7 @@ #endif #include -#define LINE_MAX 1024 +#define STR_LINE_MAX 1024 struct gw_user_set { char *name; /* name of result set */ @@ -147,7 +150,7 @@ struct gw_kernel_info { char *database; ZASS zass; int command_no; - char from_str[LINE_MAX+1]; + char from_str[STR_LINE_MAX+1]; const char *reply_fname; int setno; int next_position; diff --git a/kernel/monitor.c b/kernel/monitor.c index f795cbc..d557979 100644 --- a/kernel/monitor.c +++ b/kernel/monitor.c @@ -45,7 +45,10 @@ * Europagate, 1995 * * $Log: monitor.c,v $ - * Revision 1.14 1995/05/23 08:12:59 adam + * Revision 1.15 1995/07/11 11:49:12 adam + * LINE_MAX renamed to STR_LINE_MAX. + * + * Revision 1.14 1995/05/23 08:12:59 adam * Minor changes. * * Revision 1.13 1995/05/22 11:42:48 adam @@ -116,7 +119,7 @@ #include #include -#define LINE_MAX 1024 +#define STR_LINE_MAX 1024 #define MONITOR_FIFO_S "fifo.s.m" #define MONITOR_FIFO_C "fifo.c.m" diff --git a/kernel/urp.c b/kernel/urp.c index 8ab8af8..313d7e6 100644 --- a/kernel/urp.c +++ b/kernel/urp.c @@ -45,7 +45,10 @@ * Europagate, 1995 * * $Log: urp.c,v $ - * Revision 1.42 1995/07/03 12:59:29 adam + * Revision 1.43 1995/07/11 11:49:13 adam + * LINE_MAX renamed to STR_LINE_MAX. + * + * Revision 1.42 1995/07/03 12:59:29 adam * New option for eti: -c dir to chdir before start. * Setting change: gw.max.show defaults to 100. * @@ -209,7 +212,7 @@ static void present (const char *set, int offset, int number, struct ccl_token *format_token); -static char line_buf[LINE_MAX+1]; +static char line_buf[STR_LINE_MAX+1]; static void put_esc_str (const char *s) { @@ -343,7 +346,7 @@ static int email_header (struct str_queue *sq, { *from_str = '\0'; *subject_str = '\0'; - while (str_queue_deq (sq, line_buf, LINE_MAX)) + while (str_queue_deq (sq, line_buf, STR_LINE_MAX)) { if (line_buf[0] == '\n') return 0; @@ -1097,7 +1100,7 @@ int urp_command (struct str_queue *queue) char *cp; int stop_flag; - while (str_queue_deq (queue, line_buf, LINE_MAX)) + while (str_queue_deq (queue, line_buf, STR_LINE_MAX)) { if (line_buf[0] == '\n') if (info.command_no) @@ -1117,7 +1120,7 @@ int urp_command (struct str_queue *queue) if (stop_flag) { info.command_no++; /* prevent help! */ - while (str_queue_deq (queue, line_buf, LINE_MAX)) + while (str_queue_deq (queue, line_buf, STR_LINE_MAX)) ; return stop_flag; } -- 1.7.10.4