Browse Source

fix c99 issues

git-svn-id: https://bucket.mit.edu/svn/nilm/zoom@7606 ddd99763-3ecb-0310-9145-efcb8ce7c51f
tags/zoom-1.0
jim 14 years ago
parent
commit
2e900f66ad
3 changed files with 6 additions and 2 deletions
  1. +4
    -1
      pc/Makefile
  2. +1
    -0
      pc/gpib.c
  3. +1
    -1
      pc/read.c

+ 4
- 1
pc/Makefile View File

@@ -1,4 +1,4 @@
CFLAGS=-std=c99 -Wall -Werror
CFLAGS=-Wall -Werror

all: read calibrate

@@ -13,3 +13,6 @@ calibrate.o: serial-util.h gpib.h
read: read.o serial-util.o

calibrate: calibrate.o serial-util.o gpib.o

clean:
rm -f *.o read calibrate

+ 1
- 0
pc/gpib.c View File

@@ -1,5 +1,6 @@
#include <stdio.h>
#include <string.h>
#define __USE_ISOC99
#include <math.h>
#include "gpib.h"
#include "serial-util.h"


+ 1
- 1
pc/read.c View File

@@ -5,11 +5,11 @@
#include <unistd.h>
#include <getopt.h>
#include <stdint.h>
#include <string.h>
#include <syslog.h>
#include <err.h>
#include <linux/serial.h>
#include "serial-util.h"
#include <string.h>

int hex = 0;
int dec = 0;


Loading…
Cancel
Save