dlhist.c: don't include '\n' in calls to error()
This commit is contained in:
parent
4a8fcb6062
commit
b65c9e74aa
1 changed files with 2 additions and 2 deletions
4
dlhist.c
4
dlhist.c
|
|
@ -265,7 +265,7 @@ int dlhist_open() {
|
||||||
hdr = (struct header *) buf;
|
hdr = (struct header *) buf;
|
||||||
if (hdr->signature != htonl(SIGNATURE) ||
|
if (hdr->signature != htonl(SIGNATURE) ||
|
||||||
hdr->version != htonl(1)) {
|
hdr->version != htonl(1)) {
|
||||||
error("dlhist_open: Invalid header\n");
|
error("dlhist_open: Invalid header");
|
||||||
goto error;
|
goto error;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
@ -433,7 +433,7 @@ void dlhist_flush() {
|
||||||
commit_lock(&lock);
|
commit_lock(&lock);
|
||||||
return;
|
return;
|
||||||
error:
|
error:
|
||||||
error("dlhist_flush: partial write\n");
|
error("dlhist_flush: partial write");
|
||||||
}
|
}
|
||||||
|
|
||||||
void dlhist_close() {
|
void dlhist_close() {
|
||||||
|
|
|
||||||
Reference in a new issue