Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 3 Sep 2002 23:13:32 +0200 (CEST)
From:      Dan Lukes <dan@obluda.cz>
To:        FreeBSD-gnats-submit@FreeBSD.org
Cc:        dan@obluda.cz
Subject:   bin/42385: clean libatm code from warnings
Message-ID:  <200209032113.g83LDWGQ011140@xkulesh.vol.cz>

next in thread | raw e-mail | index | archive | help

>Number:         42385
>Category:       bin
>Synopsis:       clean libatm code from warnings
>Confidential:   no
>Severity:       non-critical
>Priority:       low
>Responsible:    freebsd-bugs
>State:          open
>Quarter:        
>Keywords:       
>Date-Required:
>Class:          sw-bug
>Submitter-Id:   current-users
>Arrival-Date:   Tue Sep 03 14:40:03 PDT 2002
>Closed-Date:
>Last-Modified:
>Originator:     Dan Lukes
>Release:        FreeBSD 5.0-CURRENT i386
>Organization:
Obludarium
>Environment:
src/lib/libatm/atm_addr.c,v 1.8 2002/06/24 22:29:01

>Description:
lib/libatm/atm_addr.c:
 308: warning: long unsigned int format, __uint32_t arg (arg 3)
               long unsigned int format, __uint32_t arg (arg 4)
     #>> ntohl (despite of 'l' in it's name) 
     #>>   return uint32_t ( = __uint32_t = unsigned int )
     #>>   so 'l' modifier should not be used


>How-To-Repeat:
	N/A
>Fix:

--- lib/libatm/atm_addr.c.ORIG	Tue Jun 25 00:29:01 2002
+++ lib/libatm/atm_addr.c	Tue Sep  3 23:11:38 2002
@@ -28,7 +28,7 @@
 __FBSDID("$FreeBSD: src/lib/libatm/atm_addr.c,v 1.8 2002/06/24 22:29:01 arr Exp $");
 #ifndef lint
 #if 0	/* original (broken) import id */
-static char *RCSid = "@(#) $Id: atm_addr.c,v 1.1 1998/07/09 21:45:18 johnc Exp $";
+static const char *RCSid = "@(#) $Id: atm_addr.c,v 1.1 1998/07/09 21:45:18 johnc Exp $";
 #endif
 #endif
 
@@ -305,7 +305,7 @@
 		u2.c[3] = atm_spans->aas_addr[7];
 
 		if (!(u1.w == 0 && u2.w == 0))
-			sprintf(str, "0x%08lx.%08lx", ntohl(u1.w), ntohl(u2.w));
+			sprintf(str, "0x%08x.%08x", ntohl(u1.w), ntohl(u2.w));
 		break;
 
 	case T_ATM_PVC_ADDR:
>Release-Note:
>Audit-Trail:
>Unformatted:

To Unsubscribe: send mail to majordomo@FreeBSD.org
with "unsubscribe freebsd-bugs" in the body of the message




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200209032113.g83LDWGQ011140>