1
0
Files
irix-657m-src/eoe/cmd/sccs/lib/comobj/sidtoser.c
2022-09-29 17:59:04 +03:00

32 lines
809 B
C

/* Copyright (c) 1990, 1991 UNIX System Laboratories, Inc. */
/* Copyright (c) 1988 AT&T */
/* All Rights Reserved */
/* THIS IS UNPUBLISHED PROPRIETARY SOURCE CODE OF */
/* UNIX System Laboratories, Inc. */
/* The copyright notice above does not evidence any */
/* actual or intended publication of such source code. */
/* #ident "@(#)sccs:lib/comobj/sidtoser.c 6.3" */
#ident "$Revision: 1.5 $"
# include "../../hdr/defines.h"
int
sidtoser(sp,pkt)
register struct sid *sp;
struct packet *pkt;
{
register int n;
register struct idel *rdp;
for (n = maxser(pkt); n; n--) {
rdp = &pkt->p_idel[n];
if (rdp->i_sid.s_rel == sp->s_rel &&
rdp->i_sid.s_lev == sp->s_lev &&
rdp->i_sid.s_br == sp->s_br &&
rdp->i_sid.s_seq == sp->s_seq)
break;
}
return(n);
}