浏览代码

Fix type mismatches in a couple of printf statements.

master
Richard Nyberg 16 年前
父节点
当前提交
1a10f0fb76
共有 2 个文件被更改,包括 3 次插入2 次删除
  1. +2
    -1
      btpd/cli_if.c
  2. +1
    -1
      btpd/tlib.c

+ 2
- 1
btpd/cli_if.c 查看文件

@@ -50,7 +50,8 @@ write_ans(struct io_buffer *iob, struct tlib *tl, enum ipc_tval val)
tl->tp == NULL ? tl->content_have : (long long)cm_content(tl->tp));
return;
case IPC_TVAL_CSIZE:
buf_print(iob, "i%dei%llde", IPC_TYPE_NUM, tl->content_size);
buf_print(iob, "i%dei%llde", IPC_TYPE_NUM,
(long long)tl->content_size);
return;
case IPC_TVAL_PCCOUNT:
if (tl->tp == NULL)


+ 1
- 1
btpd/tlib.c 查看文件

@@ -164,7 +164,7 @@ save_info(struct tlib *tl)
"3:dir%d:%s4:name%d:%s"
"14:total downloadi%llde12:total uploadi%llde"
"ee",
tl->content_have, tl->content_size,
(long long)tl->content_have, (long long)tl->content_size,
(int)strlen(tl->dir), tl->dir, (int)strlen(tl->name), tl->name,
tl->tot_down, tl->tot_up);
if (iob.error)


正在加载...
取消
保存