Sync OpenBSD patchset 332:

Regularise some fatal messages.
This commit is contained in:
Tiago Cunha
2009-09-20 22:11:27 +00:00
parent ab96772436
commit 3266fb5441
9 changed files with 25 additions and 25 deletions

View File

@ -1,4 +1,4 @@
/* $Id: paste.c,v 1.9 2009-09-07 23:48:54 tcunha Exp $ */
/* $Id: paste.c,v 1.10 2009-09-20 22:11:27 tcunha Exp $ */
/*
* Copyright (c) 2007 Nicholas Marriott <nicm@users.sourceforge.net>
@ -117,7 +117,7 @@ paste_add(struct paste_stack *ps, u_char *data, size_t size, u_int limit)
pb->data = data;
pb->size = size;
if (gettimeofday(&pb->tv, NULL) != 0)
fatal("gettimeofday");
fatal("gettimeofday failed");
}
int
@ -134,7 +134,7 @@ paste_replace(struct paste_stack *ps, u_int idx, u_char *data, size_t size)
pb->data = data;
pb->size = size;
if (gettimeofday(&pb->tv, NULL) != 0)
fatal("gettimeofday");
fatal("gettimeofday failed");
return (0);
}