version 1.9, 2004/12/08 18:54:23 |
version 1.10, 2004/12/08 21:49:02 |
|
|
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') |
|
|
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); |