Trying to silence compiler warnings of OpenSuse Build Service

master
Thomas Schmitt 13 years ago
parent ec1cb90cba
commit 5a6024a1cc

@ -800,7 +800,8 @@ void isoburn_disc_write(struct burn_write_opts *opts, struct burn_disc *disc)
ret= lstat(adr, &stbuf);
if(ret!=-1)
if(S_ISREG(stbuf.st_mode))
truncate(adr, nwa * (off_t) 2048);
ret= truncate(adr, nwa * (off_t) 2048);
/* (result of truncate intentionally ignored) */
}
}
}

@ -970,7 +970,7 @@ int Permstack_pop(struct PermiteM **o, struct PermiteM *stopper,
}
}
if(!(flag&1)) {
chown(m->disk_path, m->stbuf.st_uid, m->stbuf.st_gid);
ret= chown(m->disk_path, m->stbuf.st_uid, m->stbuf.st_gid);
/* don't complain if it fails */
if(!(flag&2)) {
utime_buffer.actime= m->stbuf.st_atime;

@ -683,7 +683,8 @@ int Xorriso_genisofs(struct XorrisO *xorriso, char *whom,
fd= xorriso->dev_fd_1;
if(fd<0)
fd= 1;
write(fd, xorriso->result_line, strlen(xorriso->result_line));
ret= write(fd, xorriso->result_line, strlen(xorriso->result_line));
/* (result of write intentionally ignored) */
fsync(fd);
Xorriso_option_version(xorriso, 0);

@ -250,7 +250,8 @@ int Xorriso_option_print_size(struct XorrisO *xorriso, int flag)
fd= xorriso->dev_fd_1;
if(fd<0)
fd= 1;
write(fd, xorriso->result_line, strlen(xorriso->result_line));
ret= write(fd, xorriso->result_line, strlen(xorriso->result_line));
/* (result of write intentionally ignored) */
fsync(fd);
} else {
sprintf(xorriso->result_line,"Image size : %ds\n", ret);

@ -323,7 +323,7 @@ int Xorriso_restore_properties(struct XorrisO *xorriso, char *disk_path,
gid= iso_node_get_gid(node);
if(!(S_ISDIR(stbuf.st_mode) && (flag&2)))
uid= iso_node_get_uid(node);
chown(disk_path, uid, gid); /* don't complain if it fails */
ret= chown(disk_path, uid, gid); /* don't complain if it fails */
utime_buffer.actime= iso_node_get_atime(node);
utime_buffer.modtime= iso_node_get_mtime(node);
ret= utime(disk_path,&utime_buffer);

@ -1 +1 @@
#define Xorriso_timestamP "2010.06.20.072130"
#define Xorriso_timestamP "2010.06.20.141555"

Loading…
Cancel
Save