Linux: Minor fixes of error caught by gcc-4.9.1

- Missing static declarations for functions not used outside a file.

Signed-off-by: Mark Charlebois <charlebm@gmail.com>
This commit is contained in:
Mark Charlebois
2015-04-20 11:07:00 -07:00
parent 88a0081112
commit 99399115f2
5 changed files with 13 additions and 9 deletions
+1 -1
View File
@@ -72,7 +72,7 @@ void run_cmd(const vector<string> &appargs) {
}
}
void process_line(string &line)
static void process_line(string &line)
{
vector<string> appargs(5);
@@ -51,7 +51,7 @@ using namespace device;
#define TESTDEV "/dev/vdevex"
int writer_main(int argc, char *argv[])
static int writer_main(int argc, char *argv[])
{
char buf[1] = { '1' };
@@ -97,7 +97,7 @@ VCDevExample::~VCDevExample() {
}
}
int test_pub_block(int fd, unsigned long blocked)
static int test_pub_block(int fd, unsigned long blocked)
{
int ret = px4_ioctl(fd, PX4_DEVIOCSPUBBLOCK, blocked);
if (ret < 0) {