Squelch a complaint from Visual C++ 6.0 (the code was OK beforehand, at
authorguy <guy@f5534014-38df-0310-8fa8-9805f1628bb7>
Sat, 12 Feb 2000 11:22:26 +0000 (11:22 +0000)
committerguy <guy@f5534014-38df-0310-8fa8-9805f1628bb7>
Sat, 12 Feb 2000 11:22:26 +0000 (11:22 +0000)
least as I remember the ANSI C standard, but I guess they're warning you
that you might've intended to return the return value of a function but
forgot to put a parameter list after the function name).

git-svn-id: http://anonsvn.wireshark.org/wireshark/trunk@1626 f5534014-38df-0310-8fa8-9805f1628bb7

packet-llc.c

index 351d5f8a12a9e9fba0183c73fe8fb9447cc89dad..19b96e28bd9e7357ac64b64e66f70cde18788d9c 100644 (file)
@@ -2,7 +2,7 @@
  * Routines for IEEE 802.2 LLC layer
  * Gilbert Ramirez <gramirez@tivoli.com>
  *
- * $Id: packet-llc.c,v 1.47 2000/02/05 09:34:33 guy Exp $
+ * $Id: packet-llc.c,v 1.48 2000/02/12 11:22:26 guy Exp $
  *
  * Ethereal - Network traffic analyzer
  * By Gerald Combs <gerald@zing.org>
@@ -215,7 +215,7 @@ sap_dissect_func(u_char sap) {
                }
                i++;
        }
-       return dissect_data;
+       return &dissect_data;
 }
 
 void