]> The Tcpdump Group git mirrors - tcpdump/blobdiff - fptype.c
bgp: Parse BGP extended message support capability
[tcpdump] / fptype.c
index 519150606e9307eadc14eae1bb241fa211cce913..8a209bbb009592518a6e30628b56e66817f9a9f0 100644 (file)
--- a/fptype.c
+++ b/fptype.c
  * SUCH DAMAGE.
  */
 
+#include <stdio.h>
+
 #include "netdissect-stdinc.h"
 
 #include "fptype.h"
 
-uint32_t
+void
 float_type_check(uint32_t in)
 {
        union { /* int to float conversion buffer */
@@ -44,6 +46,5 @@ float_type_check(uint32_t in)
        } f;
 
        f.i = in;
-       f.f = f.f*8/1000000;
-       return (f.i);
+       printf("%.3f\n", f.f*8/1000000);
 }