summaryrefslogtreecommitdiff
path: root/net-mgmt/docsis/files/patch-docsis_decode.c
blob: ea2184c0fa843d6f0f68529e30ee219c2cb3b101 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
--- docsis_decode.c.orig	Fri Jul  5 14:54:11 2002
+++ docsis_decode.c	Fri Jul  5 14:55:31 2002
@@ -47,7 +47,7 @@
   memset( &helper, 0,sizeof(unsigned int));
   memcpy( &helper, tlvbuf+2, sizeof(unsigned int));
 
-  printf ( "%s %u;\n", sym->sym_ident, ntohl(helper));
+  printf ( "%s %u;\n", sym->sym_ident, (unsigned int)ntohl(helper));
 }
 
 void decode_ushort (unsigned char *tlvbuf, symbol_type *sym)