Skip to content

Add missing const to char* declarations

Ævar Arnfjörð Bjarmason git 1 version New

Get series with b4
b4 am [email protected]

Versions newest first

  1. v1 Latest2 patches 0 repliesNew

Patches in v1 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/2checkout: add missing const to describe_detached_headbuiltin/checkout.c+1 -10 replies
2/2update-index --refresh --porcelain: add missing constcache.h read-cache.c+3 -30 replies

Reviews trailers per patch

No Reviewed-by, Acked-by or Tested-by trailers for v1 yet.

Read the v1 thread

Cover letter [PATCH 0/2] Add missing const to char* declarations

These two patches by Jonathan Nieder have been extracted from my soon-to-be-sent updated gettext series, which he's graciously helped with.

Without these changes this code using the new _() function will warn because it's expecting char* but it's returning const char*. Since there's no reason for these not to be const just add a const to the declaration.

Jonathan Nieder (2):
checkout: add missing const to describe_detached_head update-index --refresh --porcelain: add missing const

 builtin/checkout.c |    2 +-
 cache.h            |    2 +-
 read-cache.c       |    4 ++--
 3 files changed, 4 insertions(+), 4 deletions(-)
Signature · 1 line
1.7.2.3