mirror of
https://git.openafs.org/openafs.git
synced 2025-01-18 23:10:58 +00:00
tests: Fix fmt-t.c warning
'main' in fmt-t.c was declared as a prototype-less function, which triggers a warning, which is an error with --enable-checking. Fix it by declaring 'main' properly. Change-Id: I45cfec591acd0ef8d7836c79e997e8ffe29b9e38 Reviewed-on: http://gerrit.openafs.org/11539 Reviewed-by: Jeffrey Altman <jaltman@your-file-system.com> Tested-by: BuildBot <buildbot@rampaginggeek.com> Reviewed-by: Chas Williams - CONTRACTOR <chas@cmf.nrl.navy.mil> Reviewed-by: Nathaniel Filardo <nwfilardo@gmail.com>
This commit is contained in:
parent
6b93ad695e
commit
96e001088c
@ -42,7 +42,8 @@ testfmtr2(opr_fmt_ctx *ctx, char c, va_list va) {
|
|||||||
return 0;
|
return 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
int main()
|
int
|
||||||
|
main(void)
|
||||||
{
|
{
|
||||||
static opr_fmtr fmtrs[256] = { ['s'] = testfmtr, ['t'] = testfmtr2 };
|
static opr_fmtr fmtrs[256] = { ['s'] = testfmtr, ['t'] = testfmtr2 };
|
||||||
static char buf[100];
|
static char buf[100];
|
||||||
|
Loading…
Reference in New Issue
Block a user