/* This file is part of the YAZ toolkit.
- * Copyright (C) 1995-2008 Index Data
+ * Copyright (C) 1995-2009 Index Data
* See the file LICENSE for details.
*/
/** \file fhistory.c
char* homedir = getenv("HOME");
char fname[1024];
int ret = 0;
- int sz = wrbuf_len(fh->wr);
+ size_t sz = wrbuf_len(fh->wr);
if (!sz)
return 0;
int file_history_trav(file_history_t fh, void *client_data,
void (*callback)(void *client_data, const char *line))
{
- int off = 0;
+ size_t off = 0;
while (off < wrbuf_len(fh->wr))
{
- int i;
+ size_t i;
for (i = off; i < wrbuf_len(fh->wr); i++)
{
if (wrbuf_buf(fh->wr)[i] == '\n')
/*
* Local variables:
* c-basic-offset: 4
+ * c-file-style: "Stroustrup"
* indent-tabs-mode: nil
* End:
* vim: shiftwidth=4 tabstop=8 expandtab