Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 135294
b: refs/heads/master
c: 4b704d5
h: refs/heads/master
v: v3
  • Loading branch information
Stephen Hemminger authored and David S. Miller committed Mar 19, 2009
1 parent f46221c commit 5e41735
Show file tree
Hide file tree
Showing 5 changed files with 6 additions and 6 deletions.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: beedad923ad6237f03265fdf86eb8a1b50d14ae9
refs/heads/master: 4b704d59d6fb152bcd0883b84af5936a29067f12
4 changes: 2 additions & 2 deletions trunk/net/tipc/bcast.c
Original file line number Diff line number Diff line change
Expand Up @@ -119,7 +119,7 @@ static struct bclink *bclink = NULL;
static struct link *bcl = NULL;
static DEFINE_SPINLOCK(bc_lock);

char tipc_bclink_name[] = "multicast-link";
const char tipc_bclink_name[] = "multicast-link";


static u32 buf_seqno(struct sk_buff *buf)
Expand Down Expand Up @@ -800,7 +800,7 @@ int tipc_bclink_init(void)
tipc_link_set_queue_limits(bcl, BCLINK_WIN_DEFAULT);
bcl->b_ptr = &bcbearer->bearer;
bcl->state = WORKING_WORKING;
sprintf(bcl->name, tipc_bclink_name);
strlcpy(bcl->name, tipc_bclink_name, TIPC_MAX_LINK_NAME);

if (BCLINK_LOG_BUF_SIZE) {
char *pb = kmalloc(BCLINK_LOG_BUF_SIZE, GFP_ATOMIC);
Expand Down
2 changes: 1 addition & 1 deletion trunk/net/tipc/bcast.h
Original file line number Diff line number Diff line change
Expand Up @@ -70,7 +70,7 @@ struct port_list {

struct tipc_node;

extern char tipc_bclink_name[];
extern const char tipc_bclink_name[];


/**
Expand Down
2 changes: 1 addition & 1 deletion trunk/net/tipc/dbg.c
Original file line number Diff line number Diff line change
Expand Up @@ -258,7 +258,7 @@ void tipc_printf(struct print_buf *pb, const char *fmt, ...)
}

if (pb->echo)
printk(print_string);
printk("%s", print_string);

spin_unlock_bh(&print_lock);
}
Expand Down
2 changes: 1 addition & 1 deletion trunk/net/tipc/node.c
Original file line number Diff line number Diff line change
Expand Up @@ -703,7 +703,7 @@ struct sk_buff *tipc_node_get_links(const void *req_tlv_area, int req_tlv_space)

link_info.dest = htonl(tipc_own_addr & 0xfffff00);
link_info.up = htonl(1);
sprintf(link_info.str, tipc_bclink_name);
strlcpy(link_info.str, tipc_bclink_name, TIPC_MAX_LINK_NAME);
tipc_cfg_append_tlv(buf, TIPC_TLV_LINK_INFO, &link_info, sizeof(link_info));

/* Add TLVs for any other links in scope */
Expand Down

0 comments on commit 5e41735

Please sign in to comment.