summary | shortlog | log | commit | commitdiff | tree
raw | patch | inline | side by side (parent: 739e81d)
raw | patch | inline | side by side (parent: 739e81d)
author | Jonas Fonseca <fonseca@diku.dk> | |
Sat, 2 Jun 2007 17:14:42 +0000 (19:14 +0200) | ||
committer | Jonas Fonseca <fonseca@diku.dk> | |
Sat, 2 Jun 2007 17:14:42 +0000 (19:14 +0200) |
tig.c | patch | blob | history |
index 5805f587e320e66535e05618119c8e6444c4ba1a..371377af2fed91235113ecac4cf945e8f85ca569 100644 (file)
--- a/tig.c
+++ b/tig.c
static void __NORETURN die(const char *err, ...);
static void report(const char *msg, ...);
-static int read_properties(FILE *pipe, const char *separators, int (*read)(char *, int, char *, int));
+static int read_properties(FILE *pipe, const char *separators, int (*read)(char *, size_t, char *, size_t));
static void set_nonblocking_input(bool loading);
static size_t utf8_length(const char *string, size_t max_width, int *coloffset, int *trimmed);
}
static int
-read_option(char *opt, int optlen, char *value, int valuelen)
+read_option(char *opt, size_t optlen, char *value, size_t valuelen)
{
int status = OK;
} else {
/* Look for comment endings in the value. */
- int len = strcspn(value, "#");
+ size_t len = strcspn(value, "#");
if (len < valuelen) {
valuelen = len;
}
static int
-read_ref(char *id, int idlen, char *name, int namelen)
+read_ref(char *id, size_t idlen, char *name, size_t namelen)
{
struct ref *ref;
bool tag = FALSE;
}
static int
-read_repo_config_option(char *name, int namelen, char *value, int valuelen)
+read_repo_config_option(char *name, size_t namelen, char *value, size_t valuelen)
{
if (!strcmp(name, "i18n.commitencoding"))
string_ncopy(opt_encoding, value, valuelen);
}
static int
-read_repo_info(char *name, int namelen, char *value, int valuelen)
+read_repo_info(char *name, size_t namelen, char *value, size_t valuelen)
{
if (!opt_cdup[0])
string_ncopy(opt_cdup, name, namelen);
static int
read_properties(FILE *pipe, const char *separators,
- int (*read_property)(char *, int, char *, int))
+ int (*read_property)(char *, size_t, char *, size_t))
{
char buffer[BUFSIZ];
char *name;