diff options
author | Theo de Raadt <deraadt@cvs.openbsd.org> | 1996-08-22 01:18:52 +0000 |
---|---|---|
committer | Theo de Raadt <deraadt@cvs.openbsd.org> | 1996-08-22 01:18:52 +0000 |
commit | f75d5892cbe731a6e97177c5a83692c1080d6d45 (patch) | |
tree | 35e3e5861c6ef30d31226f8e623782a852967b67 /kerberosIV/kdb_destroy/kdb_destroy.c | |
parent | 32bb5c8b5aaa2322996d5499d65ed3d99ab6a3ca (diff) |
__OpenBSD__
Diffstat (limited to 'kerberosIV/kdb_destroy/kdb_destroy.c')
-rw-r--r-- | kerberosIV/kdb_destroy/kdb_destroy.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/kerberosIV/kdb_destroy/kdb_destroy.c b/kerberosIV/kdb_destroy/kdb_destroy.c index d4edc888842..8e43b0073a7 100644 --- a/kerberosIV/kdb_destroy/kdb_destroy.c +++ b/kerberosIV/kdb_destroy/kdb_destroy.c @@ -1,4 +1,4 @@ -/* $Id: kdb_destroy.c,v 1.1 1995/12/14 06:52:43 tholo Exp $ */ +/* $Id: kdb_destroy.c,v 1.2 1996/08/22 01:18:51 deraadt Exp $ */ /*- * Copyright 1987, 1988 by the Student Information Processing Board @@ -25,14 +25,14 @@ main(void) char answer[10]; /* user input */ char dbm[256]; /* database path and name */ char dbm1[256]; /* database path and name */ -#if defined(__FreeBSD__) || defined(__NetBSD__) +#if defined(__FreeBSD__) || defined(__NetBSD__) || defined(__OpenBSD__) char *file; /* database file names */ #else char *file1, *file2; /* database file names */ #endif strcpy(dbm, DBM_FILE); -#if defined(__FreeBSD__) || defined(__NetBSD__) +#if defined(__FreeBSD__) || defined(__NetBSD__) || defined(__OpenBSD__) file = strcat(dbm, ".db"); #else strcpy(dbm1, DBM_FILE); @@ -46,7 +46,7 @@ main(void) fgets(answer, sizeof(answer), stdin); if (answer[0] == 'y' || answer[0] == 'Y') { -#if defined(__FreeBSD__) || defined(__NetBSD__) +#if defined(__FreeBSD__) || defined(__NetBSD__) || defined(__OpenBSD__) if (unlink(file) == 0) #else if (unlink(file1) == 0 && unlink(file2) == 0) |