GNUNET_HashCode nh;
char *fn;
unsigned long long len;
- struct GNUNET_IO_Handle *fh;
+ struct GNUNET_DISK_FileHandle *fh;
unsigned int i;
unsigned int idx;
char *ret;
GNUNET_DISK_file_write (fh, nsid, sizeof (GNUNET_HashCode)))
GNUNET_log_strerror_file (GNUNET_ERROR_TYPE_WARNING, "write", fn);
}
- GNUNET_DISK_file_close (&fh);
+ GNUNET_DISK_file_close (fh);
ret = GNUNET_malloc (strlen (name) + 32);
GNUNET_snprintf (ret, strlen (name) + 32, "%s-%u", name, idx);
GNUNET_free (name);
char *name;
GNUNET_HashCode nh;
char *fn;
- struct GNUNET_IO_Handle *fh;
+ struct GNUNET_DISK_FileHandle *fh;
idx = -1;
slen = strlen (ns_uname);
GNUNET_DISK_file_seek (fh, idx * sizeof (GNUNET_HashCode), GNUNET_SEEK_SET);
if (sizeof (GNUNET_HashCode) != GNUNET_DISK_file_read (fh, nsid, sizeof (GNUNET_HashCode)))
{
- GNUNET_DISK_file_close (&fh);
+ GNUNET_DISK_file_close (fh);
return GNUNET_SYSERR;
}
- GNUNET_DISK_file_close (&fh);
+ GNUNET_DISK_file_close (fh);
return GNUNET_OK;
}