]> CyberLeo.Net >> Repos - FreeBSD/FreeBSD.git/blob - usr.bin/sdiff/common.c
MFV r305420:
[FreeBSD/FreeBSD.git] / usr.bin / sdiff / common.c
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 <sys/cdefs.h>
9 __FBSDID("$FreeBSD$");
10
11 #include <err.h>
12 #include <stdlib.h>
13 #include <unistd.h>
14
15 #include "common.h"
16
17 void
18 cleanup(const char *filename)
19 {
20
21         if (unlink(filename))
22                 err(2, "could not delete: %s", filename);
23         exit(2);
24 }