diff options
author | Guy Harris <guy@alum.mit.edu> | 2003-08-26 01:00:30 +0000 |
---|---|---|
committer | Guy Harris <guy@alum.mit.edu> | 2003-08-26 01:00:30 +0000 |
commit | d9c401c74ca0d28e728b3c07e34486df304d259f (patch) | |
tree | a49b6057ab98a991c02ac4988e81aff55ad133fe /epan/atalk-utils.c | |
parent | 9bcebc00c01d3bdaee636ae36a36a96879cbb30f (diff) |
Create an "address_to_str_buf()" routine, called by "address_to_str()",
which fills in a caller-supplied buffer.
Create "_buf()" versions of various "to_str" routines for various
address types, and create a routine to map SNA FIDs to strings, and use
them to finish up "address_to_str_buf()".
Get rid of the declaration of "sna_fid_type_4_addr_to_str()" in
"packet-sna.h", as that routine has been swallowed up in
"sna_fid_to_str()".
svn path=/trunk/; revision=8260
Diffstat (limited to 'epan/atalk-utils.c')
-rw-r--r-- | epan/atalk-utils.c | 10 |
1 files changed, 7 insertions, 3 deletions
diff --git a/epan/atalk-utils.c b/epan/atalk-utils.c index 489eec674d..c91ecc1f82 100644 --- a/epan/atalk-utils.c +++ b/epan/atalk-utils.c @@ -1,7 +1,7 @@ /* atalk-utils.c * Routines for Appletalk utilities (DDP, currently). * - * $Id: atalk-utils.c,v 1.3 2002/08/28 20:40:44 jmayer Exp $ + * $Id: atalk-utils.c,v 1.4 2003/08/26 01:00:29 guy Exp $ * * Simon Wilkinson <sxw@dcs.ed.ac.uk> * @@ -39,8 +39,12 @@ atalk_addr_to_str(const struct atalk_ddp_addr *addrp) } else { cur = &str[0][0]; } - - sprintf(cur, "%u.%u", addrp->net, addrp->node ); + atalk_addr_to_str_buf(addrp, cur); return cur; } +void +atalk_addr_to_str_buf(const struct atalk_ddp_addr *addrp, gchar *buf) +{ + sprintf(buf, "%u.%u", addrp->net, addrp->node ); +} |