![]() ![]() | ![]() |
1.4 ! ray 1: /* $OpenBSD: common.c,v 1.3 2006/05/10 14:32:51 ray Exp $ */ 1.1 otto 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: }