소스 검색

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)


불러오는 중...
취소
저장