break;
}
s = line;
- while ((ch = *s++) != '\0' && isspace(ch)) {
+ while ((ch = *s++) != '\0' && g_ascii_isspace(ch)) {
(void)ch; /* Quiet empty loop body warning */
}
if (ch == '?') {
{
char *msg = stralloc2(cmd, "\r\n");
- if (fullwrite(tss, msg, strlen(msg)) < 0)
+ if (full_write(tss, msg, strlen(msg)) < strlen(msg))
{
- error(_("Error writing to tape server"));
+ error(_("Error writing to tape server: %s"), strerror(errno));
/*NOTREACHED*/
}
amfree(msg);
am_has_feature(indexsrv_features, fe_amidxtaped_datestamp)) {
if(am_has_feature(indexsrv_features, fe_amidxtaped_config)) {
- tt = newstralloc2(tt, "CONFIG=", config_name);
+ tt = newstralloc2(tt, "CONFIG=", config);
send_to_tape_server(tape_control_sock, tt);
}
if(am_has_feature(indexsrv_features, fe_amidxtaped_label) &&
int child_pipe[2];
pid_t pid;
char buffer[DISK_BLOCK_BYTES];
- ssize_t bytes_read;
+ size_t bytes_read;
amwait_t extractor_status;
int max_fd, nfound;
SELECT_ARG_TYPE readset, selectset;
* spit what we got from the server to the child
* process handling actual dumpfile extraction
*/
- if(fullwrite(child_pipe[1], buffer, (size_t)bytes_read) < 0) {
+ if(full_write(child_pipe[1], buffer, bytes_read) < bytes_read) {
if(errno == EPIPE) {
error(_("pipe data reader has quit: %s\n"),
strerror(errno));