-/* $OpenBSD: arguments.c,v 1.59 2023/03/15 08:15:39 nicm Exp $ */
+/* $OpenBSD: arguments.c,v 1.60 2023/06/30 21:55:08 nicm Exp $ */
/*
* Copyright (c) 2010 Nicholas Marriott <nicholas.marriott@gmail.com>
/* Parse flags argument. */
static int
args_parse_flags(const struct args_parse *parse, struct args_value *values,
- u_int count, char **cause, struct args *args, int *i)
+ u_int count, char **cause, struct args *args, u_int *i)
{
struct args_value *value;
u_char flag;
-/* $OpenBSD: grid.c,v 1.128 2023/05/08 10:03:39 tb Exp $ */
+/* $OpenBSD: grid.c,v 1.129 2023/06/30 21:55:08 nicm Exp $ */
/*
* Copyright (c) 2008 Nicholas Marriott <nicholas.marriott@gmail.com>
const char *data;
char *buf, code[8192];
size_t len, off, size, codelen;
- u_int xx, has_link = 0, end;
+ u_int xx, end;
+ int has_link = 0;
const struct grid_line *gl;
if (lastgc != NULL && *lastgc == NULL) {
-/* $OpenBSD: regsub.c,v 1.5 2020/04/09 14:23:34 nicm Exp $ */
+/* $OpenBSD: regsub.c,v 1.6 2023/06/30 21:55:09 nicm Exp $ */
/*
* Copyright (c) 2019 Nicholas Marriott <nicholas.marriott@gmail.com>
#include "tmux.h"
static void
-regsub_copy(char **buf, size_t *len, const char *text, size_t start, size_t end)
+regsub_copy(char **buf, ssize_t *len, const char *text, size_t start, size_t end)
{
size_t add = end - start;
}
static void
-regsub_expand(char **buf, size_t *len, const char *with, const char *text,
+regsub_expand(char **buf, ssize_t *len, const char *with, const char *text,
regmatch_t *m, u_int n)
{
const char *cp;
-/* $OpenBSD: utf8.c,v 1.60 2023/01/08 22:15:30 nicm Exp $ */
+/* $OpenBSD: utf8.c,v 1.61 2023/06/30 21:55:09 nicm Exp $ */
/*
* Copyright (c) 2008 Nicholas Marriott <nicholas.marriott@gmail.com>
/* Add a UTF-8 item. */
static int
-utf8_put_item(const char *data, size_t size, u_int *index)
+utf8_put_item(const u_char *data, size_t size, u_int *index)
{
struct utf8_item *ui;
-/* $OpenBSD: window-tree.c,v 1.62 2022/07/04 08:39:45 nicm Exp $ */
+/* $OpenBSD: window-tree.c,v 1.63 2023/06/30 21:55:09 nicm Exp $ */
/*
* Copyright (c) 2017 Nicholas Marriott <nicholas.marriott@gmail.com>
struct window_pane *wp;
u_int cx = ctx->s->cx, cy = ctx->s->cy;
u_int loop, total, visible, each, width, offset;
- u_int current, start, end, remaining, i;
+ u_int current, start, end, remaining, i, pane_idx;
struct grid_cell gc;
- int colour, active_colour, left, right, pane_idx;
+ int colour, active_colour, left, right;
char *label;
total = window_count_panes(w);