GCC Code Coverage Report
Directory: ./ Exec Total Coverage
File: usr.bin/sdiff/common.c Lines: 0 3 0.0 %
Date: 2017-11-07 Branches: 0 2 0.0 %

Line Branch Exec Source
1
/*	$OpenBSD: common.c,v 1.4 2006/05/25 03:20:32 ray Exp $	*/
2
3
/*
4
 * Written by Raymond Lai <ray@cyth.net>.
5
 * Public domain.
6
 */
7
8
#include <err.h>
9
#include <stdlib.h>
10
#include <unistd.h>
11
12
#include "common.h"
13
14
void
15
cleanup(const char *filename)
16
{
17
	if (unlink(filename))
18
		err(2, "could not delete: %s", filename);
19
	exit(2);
20
}