shithub: rd

Download patch

ref: 90d3540b526dc8c34d8ec04f1e1dd356589ea7d1
parent: 0109ea828fbb4dc485dfda84566b49090899dd13
author: Yaroslav Kolomiiets <yarikos@gmail.com>
date: Thu Aug 4 08:47:09 EDT 2016

drop a redundant func

--- a/fns.h
+++ b/fns.h
@@ -40,7 +40,6 @@
 int		mktpdr(uchar*,int,int);
 int		istpkt(uchar*,uchar*);
 int		tptype(uchar*,uchar*);
-int		istpdat(uchar*,uchar*);
 uchar*	tpdat(uchar*,uchar*);
 
 /* rd.c */
--- a/mcs.c
+++ b/mcs.c
@@ -113,7 +113,7 @@
 int
 mcstype(uchar* p, uchar* ep)
 {
-	if(!istpdat(p,ep)){
+	if(tptype(p,ep) != Data){
 		werrstr("not an X.224 Data TPDU");
 		return -1;
 	}
--- a/x224.c
+++ b/x224.c
@@ -33,13 +33,6 @@
 	return p[5];
 }
 
-int
-istpdat(uchar* p, uchar* ep)
-{
-	return (tptype(p,ep) == Data);
-}
-
-
 /*
  * read a PDU: either TPKT-encapsulated TPDU or Fast-Path Update PDU
  */