summaryrefslogtreecommitdiffstats
path: root/firmware
diff options
context:
space:
mode:
authorBertrik Sikken <bertrik@sikken.nl>2010-01-09 17:42:54 +0000
committerBertrik Sikken <bertrik@sikken.nl>2010-01-09 17:42:54 +0000
commitf736159e5c0fe543aac10c5cd44ea1e0ede264ef (patch)
tree5c81ccdd3a44034d08532d5c7ce53cbe39d1bda1 /firmware
parent3d53182cef03b7d6581ae972d651f5c64d2448b0 (diff)
downloadrockbox-f736159e5c0fe543aac10c5cd44ea1e0ede264ef.tar.gz
rockbox-f736159e5c0fe543aac10c5cd44ea1e0ede264ef.tar.bz2
rockbox-f736159e5c0fe543aac10c5cd44ea1e0ede264ef.zip
Make a few global variables static instead of global where possible
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@24206 a1c6a512-1295-4272-9138-f99709370657
Diffstat (limited to 'firmware')
-rw-r--r--firmware/usbstack/usb_hid.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/firmware/usbstack/usb_hid.c b/firmware/usbstack/usb_hid.c
index 6847d0b45d..905f2f0230 100644
--- a/firmware/usbstack/usb_hid.c
+++ b/firmware/usbstack/usb_hid.c
@@ -168,14 +168,14 @@ typedef struct
bool is_key_released;
} usb_hid_report_t;
-usb_hid_report_t usb_hid_reports[REPORT_ID_COUNT];
+static usb_hid_report_t usb_hid_reports[REPORT_ID_COUNT];
static unsigned char report_descriptor[HID_BUF_SIZE_REPORT]
USB_DEVBSS_ATTR __attribute__((aligned(32)));
static unsigned char send_buffer[HID_NUM_BUFFERS][HID_BUF_SIZE_MSG]
USB_DEVBSS_ATTR __attribute__((aligned(32)));
-size_t send_buffer_len[HID_NUM_BUFFERS];
+static size_t send_buffer_len[HID_NUM_BUFFERS];
static int cur_buf_prepare;
static int cur_buf_send;