[BACK]Return to log.c CVS log [TXT][DIR] Up to [local] / src / usr.bin / cvs

Diff for /src/usr.bin/cvs/log.c between version 1.19 and 1.20

version 1.19, 2005/06/05 20:47:44 version 1.20, 2005/06/07 09:06:15
Line 205 
Line 205 
         int ecp;          int ecp;
         char prefix[64], buf[1024], ebuf[32];          char prefix[64], buf[1024], ebuf[32];
         FILE *out;          FILE *out;
           struct cvs_cmd *cmdp;
   
         if (level > LP_MAX)          if (level > LP_MAX)
                 return (-1);                  return (-1);
Line 218 
Line 219 
         else          else
                 ecp = 0;                  ecp = 0;
   
 #ifdef CVS  
         struct cvs_cmd *cmdp;  
   
         /* always use the command name in error messages, not aliases */          /* always use the command name in error messages, not aliases */
         cmdp = cvs_findcmd(cvs_command);          cmdp = cvs_findcmd(cvs_command);
   
Line 237 
Line 235 
                         snprintf(prefix, sizeof(prefix), "%s %s", __progname,                          snprintf(prefix, sizeof(prefix), "%s %s", __progname,
                             cmdp->cmd_name);                              cmdp->cmd_name);
         } else /* just use the standard strlcpy */          } else /* just use the standard strlcpy */
 #endif  
                 strlcpy(prefix, __progname, sizeof(prefix));                  strlcpy(prefix, __progname, sizeof(prefix));
   
         if ((cvs_log_flags & LF_PID) && (level != LP_TRACE)) {          if ((cvs_log_flags & LF_PID) && (level != LP_TRACE)) {
Line 257 
Line 254 
                 else                  else
                         out = stderr;                          out = stderr;
   
 #ifdef CVS  
                 if (cvs_cmdop == CVS_OP_SERVER) {                  if (cvs_cmdop == CVS_OP_SERVER) {
                         if (out == stdout)                          if (out == stdout)
                                 putc('M', out);                                  putc('M', out);
Line 267 
Line 263 
                         }                          }
                         putc(' ', out);                          putc(' ', out);
                 }                  }
 #endif  
   
                 fputs(prefix, out);                  fputs(prefix, out);
                 if (level != LP_TRACE)                  if (level != LP_TRACE)
Line 287 
Line 282 
 }  }
   
   
 #ifdef CVS  
 /*  /*
  * cvs_printf()   * cvs_printf()
  *   *
Line 336 
Line 330 
         va_end(vap);          va_end(vap);
         return (ret);          return (ret);
 }  }
   
 void  void
 cvs_putchar(int c)  cvs_putchar(int c)
 {  {
Line 351 
Line 344 
         if (cvs_cmdop == CVS_OP_SERVER && c == '\n')          if (cvs_cmdop == CVS_OP_SERVER && c == '\n')
                 send_m = 1;                  send_m = 1;
 }  }
   
 #endif  

Legend:
Removed from v.1.19  
changed lines
  Added in v.1.20