Skip to content
  • Jeff King's avatar
    drop unused argc parameters · e885a84f
    Jeff King authored and Junio C Hamano's avatar Junio C Hamano committed
    
    
    Many functions take an argv/argc pair, but never actually look at argc.
    This makes it useless at best (we use the NULL sentinel in argv to find
    the end of the array), and misleading at worst (what happens if the argc
    count does not match the argv NULL?).
    
    In each of these instances, the argv NULL does match the argc count, so
    there are no bugs here. But let's tighten the interfaces to make it
    harder to get wrong (and to reduce some -Wunused-parameter complaints).
    
    Signed-off-by: default avatarJeff King <peff@peff.net>
    Signed-off-by: default avatarJunio C Hamano <gitster@pobox.com>
    e885a84f