aboutsummaryrefslogtreecommitdiff
path: root/sbin/atm
diff options
context:
space:
mode:
authorXin LI <delphij@FreeBSD.org>2005-05-02 10:31:27 +0000
committerXin LI <delphij@FreeBSD.org>2005-05-02 10:31:27 +0000
commitd2b67fd0e8d8796f993766ae46316f930e21eb49 (patch)
tree5d615d3e32c6b6d0266c6cea3bf972b49abee091 /sbin/atm
parent05195f8d61c930352cd480f34c64826d36afea64 (diff)
downloadsrc-d2b67fd0e8d8796f993766ae46316f930e21eb49.tar.gz
src-d2b67fd0e8d8796f993766ae46316f930e21eb49.zip
Cleanups for gcc4:
- Use socklen_t for socket functions - Remove an unnecessary extern - Signed/unsigned cleanups Reviewed by: harti
Notes
Notes: svn path=/head/; revision=145799
Diffstat (limited to 'sbin/atm')
-rw-r--r--sbin/atm/atm/atm.h1
-rw-r--r--sbin/atm/atmconfig/atmconfig_device.h2
-rw-r--r--sbin/atm/ilmid/ilmid.c4
3 files changed, 3 insertions, 4 deletions
diff --git a/sbin/atm/atm/atm.h b/sbin/atm/atm/atm.h
index 7ecae34a4b3f..09f5c87987cb 100644
--- a/sbin/atm/atm/atm.h
+++ b/sbin/atm/atm/atm.h
@@ -191,6 +191,5 @@ size_t compress_prefix_list(struct in_addr *, size_t);
void check_netif_name(const char *);
void sock_error(int);
-extern const struct proto protos[];
extern const struct aal aals[];
extern const struct encaps encaps[];
diff --git a/sbin/atm/atmconfig/atmconfig_device.h b/sbin/atm/atmconfig/atmconfig_device.h
index b96467e3f6be..1c099fcdc79a 100644
--- a/sbin/atm/atmconfig/atmconfig_device.h
+++ b/sbin/atm/atmconfig/atmconfig_device.h
@@ -45,7 +45,7 @@ struct atmif {
TAILQ_ENTRY(atmif) link;
uint64_t found;
int32_t index;
- u_char *ifname;
+ char *ifname;
size_t ifnamelen;
uint32_t pcr;
int32_t media;
diff --git a/sbin/atm/ilmid/ilmid.c b/sbin/atm/ilmid/ilmid.c
index f33212ca5610..4a1e5eca101f 100644
--- a/sbin/atm/ilmid/ilmid.c
+++ b/sbin/atm/ilmid/ilmid.c
@@ -1875,7 +1875,7 @@ static void
get_local_ip (int s, long *aval)
{
char intf_name[IFNAMSIZ];
- int namelen = IFNAMSIZ;
+ socklen_t namelen = IFNAMSIZ;
struct air_netif_rsp *net_info = NULL;
struct sockaddr_in *sain;
@@ -2468,7 +2468,7 @@ ilmi_do_state(void)
close ( ilmi_fd[intf] );
ilmi_fd[intf] = -1;
} else {
- bpp = (caddr_t)&buf[1];
+ bpp = &buf[1];
Hdr = asn_get_header(&bpp);
if ( Log && Debug_Level > 1 )