repo.or.cz
/
netbsd-mini2440.git
/
blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
log
|
graphiclog1
|
graphiclog2
|
commit
|
commitdiff
|
tree
|
refs
|
edit
|
fork
blame
|
history
|
raw
|
HEAD
Sync usage with man page.
[netbsd-mini2440.git]
/
usr.bin
/
sdiff
/
common.c
blob
187b659c2ea6fca816a61da2bac8e4006293b5ea
1
/* $NetBSD$ */
2
/* $OpenBSD: common.c,v 1.4 2006/05/25 03:20:32 ray Exp $ */
3
4
/*
5
* Written by Raymond Lai <ray@cyth.net>.
6
* Public domain.
7
*/
8
9
#include <err.h>
10
#include <stdlib.h>
11
#include <unistd.h>
12
13
#include
"common.h"
14
15
void
16
cleanup
(
const char
*
filename
)
17
{
18
if
(
unlink
(
filename
))
19
err
(
2
,
"could not delete: %s"
,
filename
);
20
exit
(
2
);
21
}