xref: /illumos-gate/usr/src/cmd/ipf/lib/common/getsumd.c (revision 381a2a9a)
1*381a2a9aSdr /*
2*381a2a9aSdr  * Copyright (C) 1993-2001 by Darren Reed.
3*381a2a9aSdr  *
4*381a2a9aSdr  * See the IPFILTER.LICENCE file for details on licencing.
5*381a2a9aSdr  */
6*381a2a9aSdr /*
7*381a2a9aSdr  * Copyright 2006 Sun Microsystems, Inc.  All rights reserved.
8*381a2a9aSdr  * Use is subject to license terms.
9*381a2a9aSdr  */
10*381a2a9aSdr 
11*381a2a9aSdr #pragma ident	"%Z%%M%	%I%	%E% SMI"
12*381a2a9aSdr 
137c478bd9Sstevel@tonic-gate #include "ipf.h"
147c478bd9Sstevel@tonic-gate 
getsumd(sum)157c478bd9Sstevel@tonic-gate char *getsumd(sum)
167c478bd9Sstevel@tonic-gate u_32_t sum;
177c478bd9Sstevel@tonic-gate {
187c478bd9Sstevel@tonic-gate 	static char sumdbuf[17];
197c478bd9Sstevel@tonic-gate 
20*381a2a9aSdr 	sprintf(sumdbuf, "%#0x", sum);
217c478bd9Sstevel@tonic-gate 	return sumdbuf;
227c478bd9Sstevel@tonic-gate }
23