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

Diff for /src/usr.bin/cvs/logmsg.c between version 1.9 and 1.10

version 1.9, 2004/12/08 18:54:23 version 1.10, 2004/12/08 21:49:02
Line 302 
Line 302 
         const char *mp;          const char *mp;
         char *np, buf[256];          char *np, buf[256];
   
         if (cvs_sendarg(root, "-m", 0) < 0)          if (cvs_sendarg(root, "-m", 0) < 0) {
                   cvs_log(LP_ERR, "failed to send log message");
                 return (-1);                  return (-1);
           }
   
         for (mp = msg; mp != NULL; mp = strchr(mp, '\n')) {          for (mp = msg; mp != NULL; mp = strchr(mp, '\n')) {
                 if (*mp == '\n')                  if (*mp == '\n')
Line 314 
Line 316 
                 np = strchr(buf, '\n');                  np = strchr(buf, '\n');
                 if (np != NULL)                  if (np != NULL)
                         *np = '\0';                          *np = '\0';
                 if (cvs_sendarg(root, buf, (mp == msg) ? 0 : 1) < 0)                  if (cvs_sendarg(root, buf, (mp == msg) ? 0 : 1) < 0) {
                           cvs_log(LP_ERR, "failed to send log message");
                         return (-1);                          return (-1);
                   }
         }          }
   
         return (0);          return (0);

Legend:
Removed from v.1.9  
changed lines
  Added in v.1.10