Remove obsoleted struct nl_handle definition
This commit is contained in:
parent
724dfa6d70
commit
b624b9ed93
8 changed files with 7 additions and 10 deletions
|
@ -19,9 +19,6 @@
|
|||
extern "C" {
|
||||
#endif
|
||||
|
||||
/* backwards compatibility for now */
|
||||
#define nl_handle nl_sock
|
||||
|
||||
extern struct nl_sock * nl_socket_alloc(void);
|
||||
extern struct nl_sock * nl_socket_alloc_cb(struct nl_cb *);
|
||||
extern void nl_socket_free(struct nl_sock *);
|
||||
|
|
|
@ -125,7 +125,7 @@ usage:
|
|||
|
||||
int main(int argc, char *argv[])
|
||||
{
|
||||
struct nl_handle *nlh;
|
||||
struct nl_sock *nlh;
|
||||
struct rtnl_qdisc *qdisc;
|
||||
uint32_t handle, parent;
|
||||
int err = 1;
|
||||
|
|
|
@ -10,7 +10,7 @@
|
|||
|
||||
#include "addr-utils.h"
|
||||
|
||||
static struct nl_handle *sock;
|
||||
static struct nl_sock *sock;
|
||||
static int interactive = 0, default_yes = 0, quiet = 0;
|
||||
static int deleted = 0;
|
||||
|
||||
|
|
|
@ -108,7 +108,7 @@ static void env_dump(struct nl_object *obj, void *arg)
|
|||
|
||||
int main(int argc, char *argv[])
|
||||
{
|
||||
struct nl_handle *sock;
|
||||
struct nl_sock *sock;
|
||||
struct rtnl_addr *addr;
|
||||
struct nl_cache *link_cache, *addr_cache;
|
||||
struct nl_dump_params params = {
|
||||
|
|
|
@ -25,7 +25,7 @@ static void print_usage(void)
|
|||
|
||||
int main(int argc, char *argv[])
|
||||
{
|
||||
struct nl_handle *nlh;
|
||||
struct nl_sock *nlh;
|
||||
struct nl_cache *result;
|
||||
struct flnl_request *request;
|
||||
struct nl_addr *addr;
|
||||
|
|
|
@ -49,7 +49,7 @@ static void print_usage(void)
|
|||
|
||||
int main(int argc, char *argv[])
|
||||
{
|
||||
struct nl_handle *sock;
|
||||
struct nl_sock *sock;
|
||||
struct rtnl_route *route;
|
||||
struct nl_dump_params dp = {
|
||||
.dp_type = NL_DUMP_LINE,
|
||||
|
|
|
@ -13,7 +13,7 @@
|
|||
|
||||
static int interactive = 0, default_yes = 0, quiet = 0;
|
||||
static int deleted = 0;
|
||||
static struct nl_handle *sock;
|
||||
static struct nl_sock *sock;
|
||||
|
||||
static void print_version(void)
|
||||
{
|
||||
|
|
|
@ -2,7 +2,7 @@
|
|||
|
||||
int main(int argc, char *argv[])
|
||||
{
|
||||
struct nl_handle *h[1025];
|
||||
struct nl_sock *h[1025];
|
||||
int i;
|
||||
|
||||
h[0] = nl_handle_alloc();
|
||||
|
|
Loading…
Add table
Reference in a new issue