1c0b746e5SOllivier Robert /*
2ea906c41SOllivier Robert * /src/NTP/ntp4-dev/libparse/trim_info.c,v 4.5 2005/04/16 17:32:10 kardel RELEASE_20050508_A
3ea906c41SOllivier Robert *
4ea906c41SOllivier Robert * trim_info.c,v 4.5 2005/04/16 17:32:10 kardel RELEASE_20050508_A
5c0b746e5SOllivier Robert *
6c0b746e5SOllivier Robert * $Created: Sun Aug 2 20:20:34 1998 $
7c0b746e5SOllivier Robert *
8ea906c41SOllivier Robert * Copyright (c) 1995-2005 by Frank Kardel <kardel <AT> ntp.org>
9*a25439b6SCy Schubert * Copyright (c) 1989-1994 by Frank Kardel, Friedrich-Alexander Universitaet Erlangen-Nuernberg, Germany
10ea906c41SOllivier Robert *
11ea906c41SOllivier Robert * Redistribution and use in source and binary forms, with or without
12ea906c41SOllivier Robert * modification, are permitted provided that the following conditions
13ea906c41SOllivier Robert * are met:
14ea906c41SOllivier Robert * 1. Redistributions of source code must retain the above copyright
15ea906c41SOllivier Robert * notice, this list of conditions and the following disclaimer.
16ea906c41SOllivier Robert * 2. Redistributions in binary form must reproduce the above copyright
17ea906c41SOllivier Robert * notice, this list of conditions and the following disclaimer in the
18ea906c41SOllivier Robert * documentation and/or other materials provided with the distribution.
19ea906c41SOllivier Robert * 3. Neither the name of the author nor the names of its contributors
20ea906c41SOllivier Robert * may be used to endorse or promote products derived from this software
21ea906c41SOllivier Robert * without specific prior written permission.
22ea906c41SOllivier Robert *
23ea906c41SOllivier Robert * THIS SOFTWARE IS PROVIDED BY THE AUTHOR AND CONTRIBUTORS ``AS IS'' AND
24ea906c41SOllivier Robert * ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
25ea906c41SOllivier Robert * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
26ea906c41SOllivier Robert * ARE DISCLAIMED. IN NO EVENT SHALL THE AUTHOR OR CONTRIBUTORS BE LIABLE
27ea906c41SOllivier Robert * FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
28ea906c41SOllivier Robert * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
29ea906c41SOllivier Robert * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
30ea906c41SOllivier Robert * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
31ea906c41SOllivier Robert * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
32ea906c41SOllivier Robert * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
33ea906c41SOllivier Robert * SUCH DAMAGE.
34ea906c41SOllivier Robert *
35c0b746e5SOllivier Robert */
362b15cb3dSCy Schubert #include <config.h>
37c0b746e5SOllivier Robert #include "ntp_types.h"
38c0b746e5SOllivier Robert #include "trimble.h"
39c0b746e5SOllivier Robert
40c0b746e5SOllivier Robert cmd_info_t *
trimble_convert(unsigned int cmd,cmd_info_t * tbl)41c0b746e5SOllivier Robert trimble_convert(
42c0b746e5SOllivier Robert unsigned int cmd,
43c0b746e5SOllivier Robert cmd_info_t *tbl
44c0b746e5SOllivier Robert )
45c0b746e5SOllivier Robert {
46c0b746e5SOllivier Robert int i;
47c0b746e5SOllivier Robert
48c0b746e5SOllivier Robert for (i = 0; tbl[i].cmd != 0xFF; i++)
49c0b746e5SOllivier Robert {
50c0b746e5SOllivier Robert if (tbl[i].cmd == cmd)
51c0b746e5SOllivier Robert return &tbl[i];
52c0b746e5SOllivier Robert }
53c0b746e5SOllivier Robert return 0;
54c0b746e5SOllivier Robert }
55c0b746e5SOllivier Robert
56c0b746e5SOllivier Robert /*
57c0b746e5SOllivier Robert * trim_info.c,v
58ea906c41SOllivier Robert * Revision 4.5 2005/04/16 17:32:10 kardel
59ea906c41SOllivier Robert * update copyright
60ea906c41SOllivier Robert *
61ea906c41SOllivier Robert * Revision 4.4 2004/11/14 15:29:41 kardel
62ea906c41SOllivier Robert * support PPSAPI, upgrade Copyright to Berkeley style
63ea906c41SOllivier Robert *
64c0b746e5SOllivier Robert * Revision 4.2 1998/12/20 23:45:31 kardel
65c0b746e5SOllivier Robert * fix types and warnings
66c0b746e5SOllivier Robert *
67c0b746e5SOllivier Robert * Revision 4.1 1998/08/09 22:27:48 kardel
68c0b746e5SOllivier Robert * Trimble TSIP support
69c0b746e5SOllivier Robert *
70c0b746e5SOllivier Robert */
71