NetBSD-5.0.2/usr.bin/sdiff/common.c

Compare this file to the similar file:
Show the results in this format:

/*	$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);
}