[med-svn] [htslib] 08/10: regidx: use size_t, not ssize_t
Charles Plessy
plessy at moszumanska.debian.org
Sun Oct 5 00:54:10 UTC 2014
This is an automated email from the git hooks/post-receive script.
plessy pushed a commit to branch debian/unstable
in repository htslib.
commit 56d50b27ec4aa94f908b2965b061fd96d3b7f472
Author: Petr Danecek <pd3 at sanger.ac.uk>
Date: Fri Oct 3 08:15:01 2014 +0100
regidx: use size_t, not ssize_t
---
htslib/regidx.h | 3 ++-
regidx.c | 2 +-
2 files changed, 3 insertions(+), 2 deletions(-)
diff --git a/htslib/regidx.h b/htslib/regidx.h
index 69f0812..02911b3 100644
--- a/htslib/regidx.h
+++ b/htslib/regidx.h
@@ -51,6 +51,7 @@
#ifndef __REGIDX_H__
#define __REGIDX_H__
+#include <stdio.h>
#include <inttypes.h>
typedef struct _regidx_t regidx_t;
@@ -103,7 +104,7 @@ int regidx_parse_tab(const char*,char**,char**,reg_t*,void*,void*); // CHROM,P
*
* Returns index on success or NULL on error.
*/
-regidx_t *regidx_init(const char *fname, regidx_parse_f parsef, regidx_free_f freef, ssize_t payload_size, void *usr);
+regidx_t *regidx_init(const char *fname, regidx_parse_f parsef, regidx_free_f freef, size_t payload_size, void *usr);
/*
* regidx_destroy() - free memory allocated by regidx_init
diff --git a/regidx.c b/regidx.c
index ac6562c..caca540 100644
--- a/regidx.c
+++ b/regidx.c
@@ -148,7 +148,7 @@ int regidx_insert(regidx_t *idx, char *line)
return 0;
}
-regidx_t *regidx_init(const char *fname, regidx_parse_f parser, regidx_free_f free_f, ssize_t payload_size, void *usr_dat)
+regidx_t *regidx_init(const char *fname, regidx_parse_f parser, regidx_free_f free_f, size_t payload_size, void *usr_dat)
{
if ( !parser )
{
--
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/debian-med/htslib.git
More information about the debian-med-commit
mailing list