aboutsummaryrefslogtreecommitdiff
path: root/cmd-source-file.c
diff options
context:
space:
mode:
authorThomas Adam <thomas@xteddy.org>2017-01-30 00:01:13 +0000
committerThomas Adam <thomas@xteddy.org>2017-01-30 00:01:13 +0000
commit9094f01c6bf3de3cca17a3303a46adce268d9107 (patch)
tree108da74315e0027f296db64ec95a4966a2f1f475 /cmd-source-file.c
parent4b482c95c3ec532dac2b2ff2dec359dc96c3069c (diff)
parentb6099f31ead647749574c36b34619db940587fc7 (diff)
downloadrtmux-9094f01c6bf3de3cca17a3303a46adce268d9107.tar.gz
rtmux-9094f01c6bf3de3cca17a3303a46adce268d9107.tar.bz2
rtmux-9094f01c6bf3de3cca17a3303a46adce268d9107.zip
Merge branch 'obsd-master'
Diffstat (limited to 'cmd-source-file.c')
-rw-r--r--cmd-source-file.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/cmd-source-file.c b/cmd-source-file.c
index 4ca47193..dce72c40 100644
--- a/cmd-source-file.c
+++ b/cmd-source-file.c
@@ -53,7 +53,7 @@ cmd_source_file_exec(struct cmd *self, struct cmdq_item *item)
struct cmdq_item *new_item;
enum cmd_retval retval;
glob_t g;
- int i;
+ u_int i;
quiet = args_has(args, 'q');
if (glob(args->argv[0], 0, NULL, &g) != 0) {
@@ -64,7 +64,7 @@ cmd_source_file_exec(struct cmd *self, struct cmdq_item *item)
}
retval = CMD_RETURN_NORMAL;
- for (i = 0; i < g.gl_pathc; i++) {
+ for (i = 0; i < (u_int)g.gl_pathc; i++) {
if (load_cfg(g.gl_pathv[i], c, item, quiet) != 0)
retval = CMD_RETURN_ERROR;
}