summaryrefslogtreecommitdiffstats
path: root/lib/libatm/atm_addr.c
diff options
context:
space:
mode:
authormks <mks@FreeBSD.org>1999-07-01 20:48:59 +0000
committermks <mks@FreeBSD.org>1999-07-01 20:48:59 +0000
commit7707e35f12ca77282d0d391e98bf0db7bf1b734c (patch)
tree4a3901b074c8e4dd2814e00f82d841659871f67a /lib/libatm/atm_addr.c
parent22e38b45b20e68f38edb59cfdd12a4422d39c6c4 (diff)
downloadFreeBSD-src-7707e35f12ca77282d0d391e98bf0db7bf1b734c.zip
FreeBSD-src-7707e35f12ca77282d0d391e98bf0db7bf1b734c.tar.gz
Modify code to be -Wall'able.
PR: bin/11315
Diffstat (limited to 'lib/libatm/atm_addr.c')
-rw-r--r--lib/libatm/atm_addr.c19
1 files changed, 10 insertions, 9 deletions
diff --git a/lib/libatm/atm_addr.c b/lib/libatm/atm_addr.c
index 102f0b8..36a13f1 100644
--- a/lib/libatm/atm_addr.c
+++ b/lib/libatm/atm_addr.c
@@ -23,7 +23,7 @@
* Copies of this Software may be made, however, the above copyright
* notice must be reproduced on all copies.
*
- * @(#) $Id: atm_addr.c,v 1.1 1998/09/15 08:22:33 phk Exp $
+ * @(#) $Id: atm_addr.c,v 1.2 1999/05/20 23:52:15 mks Exp $
*
*/
@@ -35,14 +35,8 @@
*
*/
-#ifndef lint
-static char *RCSid = "@(#) $Id: atm_addr.c,v 1.1 1998/09/15 08:22:33 phk Exp $";
-#endif
-
#include <sys/types.h>
#include <sys/param.h>
-#include <string.h>
-
#include <sys/socket.h>
#include <net/if.h>
#include <netinet/in.h>
@@ -53,8 +47,15 @@ static char *RCSid = "@(#) $Id: atm_addr.c,v 1.1 1998/09/15 08:22:33 phk Exp $";
#include <netatm/atm_sys.h>
#include <netatm/atm_ioctl.h>
+#include <stdio.h>
+#include <string.h>
+
#include "libatm.h"
+#ifndef lint
+__RCSID("@(#) $Id: atm_addr.c,v 1.2 1999/05/20 23:52:15 mks Exp $");
+#endif
+
extern char *prog;
@@ -78,7 +79,7 @@ get_hex_atm_addr(in, out, len)
u_char *out;
int len;
{
- int c_type, c_value, i, out_len, state, val;
+ int c_type, c_value, i, out_len, state, val = 0;
/*
* Character table
@@ -284,7 +285,7 @@ format_atm_addr(addr)
case T_ATM_E164_ADDR:
atm_e164 = (Atm_addr_e164 *)addr->address;
for(i=0; i<addr->address_length; i++) {
- sprintf(&str[strlen(str)], "%c\0",
+ sprintf(&str[strlen(str)], "%c",
atm_e164->aae_addr[i]);
}
break;
OpenPOWER on IntegriCloud