X-Git-Url: http://git.indexdata.com/?p=yaz-moved-to-github.git;a=blobdiff_plain;f=client%2Ffhistory.c;fp=client%2Ffhistory.c;h=3b286eac389e1e3073380a717f6fcdc135b18375;hp=202593958a170d5da6b42f240918e6c9efef18c7;hb=3a36217ed64fc7c30c3c886d85d4f337fe2f9282;hpb=4936dff1c451bc76df80ddad8557c2396526f843 diff --git a/client/fhistory.c b/client/fhistory.c index 2025939..3b286ea 100644 --- a/client/fhistory.c +++ b/client/fhistory.c @@ -76,7 +76,7 @@ int file_history_save(file_history_t fh) 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; @@ -116,11 +116,11 @@ int file_history_save(file_history_t fh) 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')