// seek end of output file ...
off_t position = lseek( out, filesize-metasize-1, SEEK_SET );
if ( position == -1 ) {
- fprintf( stderr, "lseek(%s,%lu): %s\n", filename,
+ fprintf( stderr, "lseek(%s,%lu): %s\n", filename,
(unsigned long)filesize-metasize,
strerror(errno) );
BAUTZ(false);
// make data aligned, avoid SIGBUS on RISC machines (ARGH!)
memcpy( &temp, findings->data, sizeof(StoreMetaStd) );
snprintf( timeb, sizeof(timeb), "%08lx %08lx %08lx %08lx %04x %5hu ",
- (unsigned long)temp.timestamp, (unsigned long)temp.lastref,
- (unsigned long)temp.expires, (unsigned long)temp.lastmod, temp.flags, temp.refcount );
+ (unsigned long)temp.timestamp, (unsigned long)temp.lastref,
+ (unsigned long)temp.expires, (unsigned long)temp.lastmod, temp.flags, temp.refcount );
} else if ( meta && (findings = meta->search( STORE_META_STD_LFS )) ) {
StoreMetaStdLFS temp;
// make data aligned, avoid SIGBUS on RISC machines (ARGH!)
memcpy( &temp, findings->data, sizeof(StoreMetaStd) );
snprintf( timeb, sizeof(timeb), "%08lx %08lx %08lx %08lx %04x %5hu ",
- (unsigned long)temp.timestamp, (unsigned long)temp.lastref,
- (unsigned long)temp.expires, (unsigned long)temp.lastmod, temp.flags, temp.refcount );
+ (unsigned long)temp.timestamp, (unsigned long)temp.lastref,
+ (unsigned long)temp.expires, (unsigned long)temp.lastmod, temp.flags, temp.refcount );
} else {
snprintf( timeb, sizeof(timeb), "%08lx %08lx %08lx %08lx %04x %5hu ", (unsigned long)-1, (unsigned long)-1, (unsigned long)-1, (unsigned long)-1, 0, 0 );
}
while ( (pid = waitpid( -1, &status, WNOHANG )) > 0 ) {
if ( WIFEXITED(status) ) {
fprintf( stderr, "child (pid=%ld) reaped, status %d\n%c",
- (long) pid, WEXITSTATUS(status), 0 );
+ (long) pid, WEXITSTATUS(status), 0 );
} else if ( WIFSIGNALED(status) ) {
fprintf( stderr, "child (pid=%ld) died on signal %d%s\n%c",
- (long) pid, WTERMSIG(status),
+ (long) pid, WTERMSIG(status),
#ifdef WCOREDUMP
- WCOREDUMP(status) ? " (core generated)" : "",
+ WCOREDUMP(status) ? " (core generated)" : "",
#else
- "",
+ "",
#endif
- 0 );
+ 0 );
} else {
fprintf( stderr, "detected dead child (pid=%ld), status %d\n%c",
- (long) pid, status, 0 );
+ (long) pid, status, 0 );
}
}
errno = saveerr;