Permalink
Browse files

fix implicit declaration compiler warnings

  • Loading branch information...
southerngs committed Jul 12, 2014
1 parent b2ecf47 commit 0e8c3c7010d6ca3a77332736b52b378a352d5f9f
Showing with 18 additions and 0 deletions.
  1. +3 −0 test_library.c
  2. +12 −0 util.h
  3. +3 −0 wattsup.c
View
@@ -15,6 +15,9 @@
#define _GNU_SOURCE
#include <unistd.h>
#include "util.h"
#include "wattsup_common.h"
#include "globals.h"
View
12 util.h
@@ -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
View
@@ -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)

0 comments on commit 0e8c3c7

Please sign in to comment.