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:
Andrew Deason 2014-10-06 13:47:13 -04:00 committed by D Brashear
parent 6b93ad695e
commit 96e001088c

View File

@ -42,7 +42,8 @@ testfmtr2(opr_fmt_ctx *ctx, char c, va_list va) {
return 0;
}
int main()
int
main(void)
{
static opr_fmtr fmtrs[256] = { ['s'] = testfmtr, ['t'] = testfmtr2 };
static char buf[100];