summaryrefslogtreecommitdiff
path: root/chdir-notify.h
diff options
context:
space:
mode:
authorLibravatar Denton Liu <liu.denton@gmail.com>2020-05-19 06:53:57 -0400
committerLibravatar Junio C Hamano <gitster@pobox.com>2020-05-19 15:40:26 -0700
commit101736a14c9ad734fe24efed7513189849cd22eb (patch)
treef1c6dbb47c3997920415831dd8264282efddafb4 /chdir-notify.h
parenttransport: extract common fetch_pack() call (diff)
downloadtgif-101736a14c9ad734fe24efed7513189849cd22eb.tar.xz
pkt-line: extern packet_length()
In a future commit, we will be manually processing packets and we will need to access the length header. In order to simplify this, extern packet_length() so that the logic can be reused. Change the function parameter from `const char *linelen` to `const char lenbuf_hex[4]`. Even though these two types behave identically as function parameters, use the array notation to semantically indicate exactly what this function is expecting as an argument. Also, rename it from linelen to lenbuf_hex as the former sounds like it should be an integral type which is misleading. Signed-off-by: Denton Liu <liu.denton@gmail.com> Signed-off-by: Junio C Hamano <gitster@pobox.com>
Diffstat (limited to 'chdir-notify.h')
0 files changed, 0 insertions, 0 deletions