LINE_MAX renamed to STR_LINE_MAX.
[egate.git] / kernel / urp.c
index 92a4b36..313d7e6 100644 (file)
  * Europagate, 1995
  *
  * $Log: urp.c,v $
- * Revision 1.41  1995/07/03 08:20:18  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.
+ *
+ * Revision 1.41  1995/07/03  08:20:18  adam
  * More help information and better diagnostics.
  *
  * Revision 1.40  1995/05/23  08:13:00  adam
 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)
 {
@@ -339,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;
@@ -570,7 +577,7 @@ static void present (const char *set, int offset, int number,
     int max_number;
     char format_str[16];
     
-    max_number = gw_res_int (info.kernel_res, "gw.max.show", 200);
+    max_number = gw_res_int (info.kernel_res, "gw.max.show", 100);
     if (number > max_number)
         number = max_number;
     gw_log (GW_LOG_DEBUG, KERNEL_LOG, "present in set %s", set);
@@ -1093,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)
@@ -1113,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;
             }