while ((p = strstr(ref,name))) {
if ((p==ref || p[-1]==' ') &&
(p[len] == ' ' || p[len] == 0)) {
while ((p = strstr(ref,name))) {
if ((p==ref || p[-1]==' ') &&
(p[len] == ' ' || p[len] == 0)) {
/* The context leaks in case of an error, but if there's a
* problem we always exit anyhow. */
/* The context leaks in case of an error, but if there's a
* problem we always exit anyhow. */
- pc = poptGetContext(RSYNC_NAME, *argc, (const char **) *argv,
- long_options, 0);
+ pc = poptGetContext(RSYNC_NAME, *argc, *argv, long_options, 0);
"hard links are not supported on this %s\n",
am_server ? "server" : "client");
rprintf(FERROR,"ERROR: hard links not supported on this platform\n");
"hard links are not supported on this %s\n",
am_server ? "server" : "client");
rprintf(FERROR,"ERROR: hard links not supported on this platform\n");
default:
/* FIXME: If --daemon is specified, then errors for later
* parameters seem to disappear. */
default:
/* FIXME: If --daemon is specified, then errors for later
* parameters seem to disappear. */
"%s%s: %s\n",
am_server ? "on remote machine: " : "",
poptBadOption(pc, POPT_BADOPTION_NOALIAS),
"%s%s: %s\n",
am_server ? "on remote machine: " : "",
poptBadOption(pc, POPT_BADOPTION_NOALIAS),
- slprintf(bsize,sizeof(bsize),"-B%d",block_size);
+ snprintf(bsize,sizeof(bsize),"-B%d",block_size);
- slprintf(mdelete,sizeof(mdelete),"--max-delete=%d",max_delete);
+ snprintf(mdelete,sizeof(mdelete),"--max-delete=%d",max_delete);
- slprintf(iotime,sizeof(iotime),"--timeout=%d",io_timeout);
+ snprintf(iotime,sizeof(iotime),"--timeout=%d",io_timeout);
- slprintf(bw,sizeof(bw),"--bwlimit=%d",bwlimit);
+ snprintf(bw,sizeof(bw),"--bwlimit=%d",bwlimit);
- slprintf(mwindow,sizeof(mwindow),"--modify-window=%d",
+ snprintf(mwindow,sizeof(mwindow),"--modify-window=%d",