summaryrefslogtreecommitdiff
path: root/tests/repo/env.c
diff options
context:
space:
mode:
authorEdward Thomson <ethomson@github.com>2017-02-17 12:10:19 +0000
committerEdward Thomson <ethomson@github.com>2017-02-17 12:10:19 +0000
commitcc172642702e59637ee237317c0d6fab903d176f (patch)
tree99801c92db4af196e9e19103a79b2046899930c5 /tests/repo/env.c
parent021f4943a9482355c47122da4911c5272cefdb8d (diff)
downloadlibgit2-cc172642702e59637ee237317c0d6fab903d176f.tar.gz
p_snprintf: no need for arguments to a format
`snprintf` requires a _format_ but does not require _arguments_ to the format. eg: `snprintf(buf, 42, "hi")` is perfectly legal. Expand the macro to match. Without this, `p_sprintf(buf, 42, "hi")` errors with: ``` error: expected expression p_snprintf(msg, 42, "hi"); ^ src/unix/posix.h:53:34: note: expanded from macro 'p_snprintf' ^ /usr/include/secure/_stdio.h:57:73: note: expanded from macro 'snprintf' __builtin___snprintf_chk (str, len, 0, __darwin_obsz(str), __VA_ARGS__) ```
Diffstat (limited to 'tests/repo/env.c')
0 files changed, 0 insertions, 0 deletions