projects
/
unix-history
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
tags
|
clone url
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
don't link with -lgnuregex because we're using the header file
[unix-history]
/
usr.bin
/
vacation
/
vacation.c
diff --git
a/usr.bin/vacation/vacation.c
b/usr.bin/vacation/vacation.c
index
5a1b950
..
b60da2e
100644
(file)
--- a/
usr.bin/vacation/vacation.c
+++ b/
usr.bin/vacation/vacation.c
@@
-147,8
+147,8
@@
main(argc, argv)
exit(1);
}
exit(1);
}
- db =
hash_
open(VDB, O_CREAT|O_RDWR | (iflag ? O_TRUNC : 0),
- S_IRUSR|S_IWUSR, (HASHINFO *)NULL);
+ db =
db
open(VDB, O_CREAT|O_RDWR | (iflag ? O_TRUNC : 0),
+ S_IRUSR|S_IWUSR,
DB_HASH,
(HASHINFO *)NULL);
if (!db) {
syslog(LOG_NOTICE, "vacation: %s: %s\n", VDB, strerror(errno));
exit(1);
if (!db) {
syslog(LOG_NOTICE, "vacation: %s: %s\n", VDB, strerror(errno));
exit(1);
@@
-345,7
+345,7
@@
setinterval(interval)
key.size = sizeof(VIT);
data.data = &interval;
data.size = sizeof(interval);
key.size = sizeof(VIT);
data.data = &interval;
data.size = sizeof(interval);
- (void)(db->put)(db, &key, &data,
R_PUT
);
+ (void)(db->put)(db, &key, &data,
0
);
}
/*
}
/*
@@
-362,7
+362,7
@@
setreply()
(void)time(&now);
data.data = &now;
data.size = sizeof(now);
(void)time(&now);
data.data = &now;
data.size = sizeof(now);
- (void)(db->put)(db, &key, &data,
R_PUT
);
+ (void)(db->put)(db, &key, &data,
0
);
}
/*
}
/*