summary |
tags |
clone url |
shortlog |
log |
commit | commitdiff |
tree
raw |
patch |
inline | side by side (from parent 1:
5b7f648)
SCCS-vsn: lib/libc/db/hash/hash.c 5.4
*/
#if defined(LIBC_SCCS) && !defined(lint)
*/
#if defined(LIBC_SCCS) && !defined(lint)
-static char sccsid[] = "@(#)hash.c 5.3 (Berkeley) %G%";
+static char sccsid[] = "@(#)hash.c 5.4 (Berkeley) %G%";
#endif /* LIBC_SCCS and not lint */
#include <sys/param.h>
#endif /* LIBC_SCCS and not lint */
#include <sys/param.h>
- if ( file && ((hashp->fp = open ( file, flags, mode )) == -1)) {
- RETURN_ERROR (errno, error0);
+ if ( file ) {
+ if ((hashp->fp = open ( file, flags, mode )) == -1) {
+ RETURN_ERROR (errno, error0);
+ }
+ (void)fcntl(hashp->fp, F_SETFD, 1);
- (void)fcntl(hashp->fp, F_SETFD, 1);
if ( new_table ) {
if ( !(hashp = init_hash( info )) ) {
if ( new_table ) {
if ( !(hashp = init_hash( info )) ) {