190 |
|
} |
191 |
|
|
192 |
|
|
193 |
< |
static int /* copied size or -1 on error */ |
193 |
> |
static size_t /* copied size or -1 on error */ |
194 |
|
wordncopy( /* copy (quoted) src to dest. */ |
195 |
|
|
196 |
|
char * dest, |
197 |
|
char * src, |
198 |
< |
int dlen, |
198 |
> |
size_t dlen, |
199 |
|
int insert_space, /* prepend a space */ |
200 |
|
int force_dq /* turn 'src' into "dest" (for Win command line) */ |
201 |
|
) |
202 |
|
{ |
203 |
< |
int slen; |
204 |
< |
int pos = 0; |
203 |
> |
size_t slen; |
204 |
> |
size_t pos = 0; |
205 |
|
|
206 |
|
slen = strlen(src); |
207 |
|
if (insert_space) { |
245 |
|
) |
246 |
|
{ |
247 |
|
static char *cmdstr; |
248 |
< |
static int clen; |
248 |
> |
static size_t clen; |
249 |
|
char *newcs; |
250 |
< |
int newlen, pos, res, i; |
250 |
> |
size_t newlen, pos, i, res; |
251 |
|
|
252 |
|
newlen = strlen(cmdpath) + 3; /* allow two quotes plus the final \0 */ |
253 |
|
for (i = 0; sl[i] != NULL; i++) { |
325 |
|
DWORD pid; |
326 |
|
|
327 |
|
for (i = 0; i < nproc; i++) { |
328 |
< |
if (pid[i].running) { |
328 |
> |
if (pd[i].running) { |
329 |
|
ocres = close(pd[i].w); |
330 |
|
icres = close(pd[i].r); |
331 |
|
pd[i].running = 0; |