commit - eff568509962015d1495b29d30e8375b7ee427e4
commit + b7ced457451732add8f4107e469ced58fc8d4d4a
blob - c32dc030ca5a55f45b8426657e65e9c079640391
blob + c55c84a54474d7a32640abed764ed50b3fc9ad5a
--- got/got.c
+++ got/got.c
const struct got_error *err = NULL;
char *line = NULL;
size_t linesize = 0;
- ssize_t linelen;
struct stat st, st2;
FILE *fp = NULL;
size_t len, logmsg_len;
}
len = 0;
- while ((linelen = getline(&line, &linesize, fp)) != -1) {
+ while (getline(&line, &linesize, fp) != -1) {
if ((line[0] == '#' || (len == 0 && line[0] == '\n')))
continue; /* remove comments and leading empty lines */
len = strlcat(*logmsg, line, logmsg_len + 1);
const struct got_error *err = NULL;
char *line = NULL;
size_t linesize = 0;
- ssize_t linelen;
regmatch_t regmatch;
*have_match = 0;
goto done;
}
- while ((linelen = getline(&line, &linesize, f)) != -1) {
+ while (getline(&line, &linesize, f) != -1) {
if (regexec(regex, line, 1, ®match, 0) == 0) {
*have_match = 1;
break;