Search Linux Wireless

[PATCH 1/7] wmediumd: mark various functions static

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



From: Johannes Berg <johannes.berg@xxxxxxxxx>

There are a number of functions that can be static
but aren't, mark them as such.

---
 wmediumd/wmediumd.c | 14 +++++++-------
 1 file changed, 7 insertions(+), 7 deletions(-)

diff --git a/wmediumd/wmediumd.c b/wmediumd/wmediumd.c
index 8fb0ed49bbb1..5e89e83ca72b 100644
--- a/wmediumd/wmediumd.c
+++ b/wmediumd/wmediumd.c
@@ -220,7 +220,7 @@ static int get_signal_offset_by_interference(struct wmediumd *ctx, int src_idx,
 	return (int)(milliwatt_to_dBm(intf_power) + 0.5);
 }
 
-bool is_multicast_ether_addr(const u8 *addr)
+static bool is_multicast_ether_addr(const u8 *addr)
 {
 	return 0x01 & addr[0];
 }
@@ -236,8 +236,8 @@ static struct station *get_station_by_addr(struct wmediumd *ctx, u8 *addr)
 	return NULL;
 }
 
-void queue_frame(struct wmediumd *ctx, struct station *station,
-		 struct frame *frame)
+static void queue_frame(struct wmediumd *ctx, struct station *station,
+			struct frame *frame)
 {
 	struct ieee80211_hdr *hdr = (void *)frame->data;
 	u8 *dest = hdr->addr1;
@@ -485,7 +485,7 @@ out:
 	nlmsg_free(msg);
 }
 
-void wmediumd_deliver_frame(struct usfstl_job *job)
+static void wmediumd_deliver_frame(struct usfstl_job *job)
 {
 	struct wmediumd *ctx = job->data;
 	struct frame *frame = container_of(job, struct frame, job);
@@ -566,7 +566,7 @@ void wmediumd_deliver_frame(struct usfstl_job *job)
 	free(frame);
 }
 
-void wmediumd_intf_update(struct usfstl_job *job)
+static void wmediumd_intf_update(struct usfstl_job *job)
 {
 	struct wmediumd *ctx = job->data;
 	int i, j;
@@ -732,7 +732,7 @@ static const struct usfstl_vhost_user_ops wmediumd_vu_ops = {
 /*
  * Register with the kernel to start receiving new frames.
  */
-int send_register_msg(struct wmediumd *ctx)
+static int send_register_msg(struct wmediumd *ctx)
 {
 	struct nl_sock *sock = ctx->sock;
 	struct nl_msg *msg;
@@ -815,7 +815,7 @@ static int init_netlink(struct wmediumd *ctx)
 /*
  *	Print the CLI help
  */
-void print_help(int exval)
+static void print_help(int exval)
 {
 	printf("wmediumd v%s - a wireless medium simulator\n", VERSION_STR);
 	printf("wmediumd [-h] [-V] [-l LOG_LVL] [-x FILE] -c FILE \n\n");
-- 
2.25.1




[Index of Archives]     [Linux Host AP]     [ATH6KL]     [Linux Wireless Personal Area Network]     [Linux Bluetooth]     [Wireless Regulations]     [Linux Netdev]     [Kernel Newbies]     [Linux Kernel]     [IDE]     [Git]     [Netfilter]     [Bugtraq]     [Yosemite Hiking]     [MIPS Linux]     [ARM Linux]     [Linux RAID]

  Powered by Linux