Skip to content

Commit

Permalink
fix implicit declaration compiler warnings
Browse files Browse the repository at this point in the history
  • Loading branch information
southerngs committed Jul 12, 2014
1 parent b2ecf47 commit 0e8c3c7
Show file tree
Hide file tree
Showing 3 changed files with 18 additions and 0 deletions.
3 changes: 3 additions & 0 deletions test_library.c
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,9 @@

#define _GNU_SOURCE

#include <unistd.h>

#include "util.h"
#include "wattsup_common.h"
#include "globals.h"

Expand Down
12 changes: 12 additions & 0 deletions util.h
Original file line number Diff line number Diff line change
@@ -1,4 +1,16 @@
#ifndef UTIL_H
#define UTIL_H

int parse_args(int argc, char ** argv);
int wu_check_store(int index, int dev_fd);
int open_device(char * device_name, int * dev_fd);
void dbg(const char * fmt, ...);
int setup_serial_device(int dev_fd);
int wu_clear(int fd);
static int wu_show_cal(int fd);
int wu_check_show(int index, int dev_fd);
int wu_start_log(void);
int wu_read_data(int fd);
int wu_stop_log(void);
int wu_show(int index, int dev_fd);
#endif
3 changes: 3 additions & 0 deletions wattsup.c
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,10 @@

#define _GNU_SOURCE

#include <unistd.h>

#include "wattsup_common.h"
#include "util.h"
#include "globals.h"

int main(int argc, char ** argv)
Expand Down

0 comments on commit 0e8c3c7

Please sign in to comment.