154359Sroberto/*
2182007Sroberto * /src/NTP/ntp4-dev/libparse/trim_info.c,v 4.5 2005/04/16 17:32:10 kardel RELEASE_20050508_A
354359Sroberto *
4182007Sroberto * trim_info.c,v 4.5 2005/04/16 17:32:10 kardel RELEASE_20050508_A
5182007Sroberto *
654359Sroberto * $Created: Sun Aug  2 20:20:34 1998 $
754359Sroberto *
8182007Sroberto * Copyright (c) 1995-2005 by Frank Kardel <kardel <AT> ntp.org>
9285612Sdelphij * Copyright (c) 1989-1994 by Frank Kardel, Friedrich-Alexander Universitaet Erlangen-Nuernberg, Germany
10182007Sroberto *
11182007Sroberto * Redistribution and use in source and binary forms, with or without
12182007Sroberto * modification, are permitted provided that the following conditions
13182007Sroberto * are met:
14182007Sroberto * 1. Redistributions of source code must retain the above copyright
15182007Sroberto *    notice, this list of conditions and the following disclaimer.
16182007Sroberto * 2. Redistributions in binary form must reproduce the above copyright
17182007Sroberto *    notice, this list of conditions and the following disclaimer in the
18182007Sroberto *    documentation and/or other materials provided with the distribution.
19182007Sroberto * 3. Neither the name of the author nor the names of its contributors
20182007Sroberto *    may be used to endorse or promote products derived from this software
21182007Sroberto *    without specific prior written permission.
22182007Sroberto *
23182007Sroberto * THIS SOFTWARE IS PROVIDED BY THE AUTHOR AND CONTRIBUTORS ``AS IS'' AND
24182007Sroberto * ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
25182007Sroberto * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
26182007Sroberto * ARE DISCLAIMED.  IN NO EVENT SHALL THE AUTHOR OR CONTRIBUTORS BE LIABLE
27182007Sroberto * FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
28182007Sroberto * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
29182007Sroberto * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
30182007Sroberto * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
31182007Sroberto * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
32182007Sroberto * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
33182007Sroberto * SUCH DAMAGE.
34182007Sroberto *
3554359Sroberto */
36285612Sdelphij#include <config.h>
3754359Sroberto#include "ntp_types.h"
3854359Sroberto#include "trimble.h"
3954359Sroberto
4054359Srobertocmd_info_t *
4154359Srobertotrimble_convert(
4254359Sroberto		unsigned int cmd,
4354359Sroberto		cmd_info_t   *tbl
4454359Sroberto		)
4554359Sroberto{
4654359Sroberto  int i;
4754359Sroberto
4854359Sroberto  for (i = 0; tbl[i].cmd != 0xFF; i++)
4954359Sroberto    {
5054359Sroberto      if (tbl[i].cmd == cmd)
5154359Sroberto	return &tbl[i];
5254359Sroberto    }
5354359Sroberto  return 0;
5454359Sroberto}
5554359Sroberto
5654359Sroberto/*
5754359Sroberto * trim_info.c,v
58182007Sroberto * Revision 4.5  2005/04/16 17:32:10  kardel
59182007Sroberto * update copyright
60182007Sroberto *
61182007Sroberto * Revision 4.4  2004/11/14 15:29:41  kardel
62182007Sroberto * support PPSAPI, upgrade Copyright to Berkeley style
63182007Sroberto *
6454359Sroberto * Revision 4.2  1998/12/20 23:45:31  kardel
6554359Sroberto * fix types and warnings
6654359Sroberto *
6754359Sroberto * Revision 4.1  1998/08/09 22:27:48  kardel
6854359Sroberto * Trimble TSIP support
6954359Sroberto *
7054359Sroberto */
71