1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41
|
/*
* Copyright Frank Kardel <kardel@ntp.org>
* Copyright the NTPsec project contributors
* SPDX-License-Identifier: BSD-3-Clause
*/
#include "config.h"
#include "ntp_types.h"
#include "trimble.h"
cmd_info_t *
trimble_convert(
unsigned int cmd,
cmd_info_t *tbl
)
{
int i;
for (i = 0; tbl[i].cmd != 0xFF; i++)
{
if (tbl[i].cmd == cmd) {
return &tbl[i];
}
}
return 0;
}
/*
* trim_info.c,v
* Revision 4.5 2005/04/16 17:32:10 kardel
* update copyright
*
* Revision 4.4 2004/11/14 15:29:41 kardel
* support PPSAPI, upgrade Copyright to Berkeley style
*
* Revision 4.2 1998/12/20 23:45:31 kardel
* fix types and warnings
*
* Revision 4.1 1998/08/09 22:27:48 kardel
* Trimble TSIP support
*
*/
|