filehash/ffdb_hash.c
static int
_ffdb_hash_fd (const FFDB_DB* dbp)
{
  ffdb_htab_t *hashp;

  if (!dbp) {
    return -1;
  }

  hashp = (ffdb_htab_t *)dbp->internal;
  if (hashp->fp == -1) {
    errno = ENOENT;
    return -1;
  }
  return hashp->fp;
}
/**
 * Return file descriptor for the opened database
 */
Return file descriptor for the opened database
Return file descriptor for the opened database
static int
_ffdb_hash_fd (const FFDB_DB* dbp)
{
  ffdb_htab_t *hashp;
  if (!dbp) {
    return -1;
  }
  hashp = (ffdb_htab_t *)dbp->internal;
  if (hashp->fp == -1) {
    errno = ENOENT;
    return -1;
  }
  return hashp->fp;
}
static int _ffdb_hash_fd ( const FFDB_DB * dbp ) { ffdb_htab_t * hashp ; if ( ! dbp ) { return -1 ; } hashp = ( ffdb_htab_t * ) dbp -> internal ; if ( hashp -> fp == -1 ) { errno = ENOENT ; return -1 ; } return hashp -> fp ; }
Return file descriptor for the opened database
Return file descriptor for the opened database