teip is a pointer, not an int
diff mbox

Message ID 1446839843-30904-2-git-send-email-alexander.huemer@xx.vu
State Accepted
Headers show

Commit Message

Alexander Huemer Nov. 6, 2015, 7:57 p.m. UTC
---
 examples/lapd-over-datagram-network.c | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

Patch
diff mbox

diff --git a/examples/lapd-over-datagram-network.c b/examples/lapd-over-datagram-network.c
index 74bba74..8d3fbde 100644
--- a/examples/lapd-over-datagram-network.c
+++ b/examples/lapd-over-datagram-network.c
@@ -129,7 +129,7 @@  void lapd_rx_cb(struct osmo_dlsap_prim *dp, uint8_t tei, uint8_t sapi,
 
 int main(int argc, char *argv[])
 {
-	int teip;
+	struct lapd_tei *teip;
 
 	tall_test = talloc_named_const(NULL, 1, "lapd_test");
 
@@ -159,7 +159,7 @@  int main(int argc, char *argv[])
 	}
 
 	teip = lapd_tei_alloc(lapd, tei);
-	if (teip == 0) {
+	if (teip == NULL) {
 		LOGP(DLAPDTEST, LOGL_ERROR, "cannot assign TEI\n");
 		exit(EXIT_FAILURE);
 	}