]> git.ipfire.org Git - thirdparty/git.git/commit - tempfile.h
tempfile: fix documentation on `delete_tempfile()`
authorMartin Ågren <martin.agren@gmail.com>
Thu, 5 Oct 2017 20:32:06 +0000 (22:32 +0200)
committerJunio C Hamano <gitster@pobox.com>
Fri, 6 Oct 2017 01:07:18 +0000 (10:07 +0900)
commit5de134ca8594de22f2a0b738824f9b5176ae6c00
treeba4db9a54b761591130efb8c48c826ec09769214
parentd613576dfe7010b13157e63b2401d321074bbab8
tempfile: fix documentation on `delete_tempfile()`

The function has always been documented as returning 0 or -1. It is in
fact `void`. Correct that. As part of the rearrangements we lose the
mention that `delete_tempfile()` might set `errno`. Because there is
no return value, the user can't really know whether it did anyway.

Signed-off-by: Martin Ågren <martin.agren@gmail.com>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
tempfile.h