5533f1ebfd
Import new sdiff(1). Compatible with GNU sdiff(1), has various bugfixes and licensed in public domain. christos@: "I am ok with it" No objections in tech-userlevel@
22 lines
387 B
C
22 lines
387 B
C
/* $NetBSD: common.c,v 1.1 2007/02/18 22:13:42 rmind Exp $ */
|
|
/* $OpenBSD: common.c,v 1.4 2006/05/25 03:20:32 ray Exp $ */
|
|
|
|
/*
|
|
* Written by Raymond Lai <ray@cyth.net>.
|
|
* Public domain.
|
|
*/
|
|
|
|
#include <err.h>
|
|
#include <stdlib.h>
|
|
#include <unistd.h>
|
|
|
|
#include "common.h"
|
|
|
|
void
|
|
cleanup(const char *filename)
|
|
{
|
|
if (unlink(filename))
|
|
err(2, "could not delete: %s", filename);
|
|
exit(2);
|
|
}
|