diff options
author | Guy Harris <guy@alum.mit.edu> | 2004-12-30 02:10:24 +0000 |
---|---|---|
committer | Guy Harris <guy@alum.mit.edu> | 2004-12-30 02:10:24 +0000 |
commit | 0ccf418724aa221c786e8ac765a8cbe1fed8ac3d (patch) | |
tree | 1e4a380da3f190a7468ee2baa824b4e1ff58ac67 /epan/tap.c | |
parent | 9d5c8771c1560425077117b33a06a9e8263062a9 (diff) |
Add a "get_addr_name()" routine that takes an "address *" and attempts
to resolve it to a name.
Fix up some const-pointer-to-non-const-pointer, and
function-pointer-to-void-*, conversions.
Fix some comments.
svn path=/trunk/; revision=12863
Diffstat (limited to 'epan/tap.c')
-rw-r--r-- | epan/tap.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/epan/tap.c b/epan/tap.c index e73ab58a6f..60ee22e195 100644 --- a/epan/tap.c +++ b/epan/tap.c @@ -61,7 +61,7 @@ typedef struct _tap_packet_t { struct _tap_packet_t *next; int tap_id; packet_info *pinfo; - void *tap_specific_data; + const void *tap_specific_data; } tap_packet_t; static tap_packet_t *tap_packet_list_free=NULL; static tap_packet_t *tap_packet_list_queue=NULL; @@ -167,7 +167,7 @@ register_tap(char *name) to by the tap specific data pointer. */ void -tap_queue_packet(int tap_id, packet_info *pinfo, void *tap_specific_data) +tap_queue_packet(int tap_id, packet_info *pinfo, const void *tap_specific_data) { tap_packet_t *tpt; |