aboutsummaryrefslogtreecommitdiff
path: root/src/cmd/grap
diff options
context:
space:
mode:
authorrsc <devnull@localhost>2006-04-01 19:24:03 +0000
committerrsc <devnull@localhost>2006-04-01 19:24:03 +0000
commitcbeb0b26e4c7caa8d1b47de791a7418dc20a4567 (patch)
treee0f7e445de1aa22a42ef873dc4b1118a8105ae93 /src/cmd/grap
parent226d80b8213821af0cbf092d1507c52b504fd368 (diff)
downloadplan9port-cbeb0b26e4c7caa8d1b47de791a7418dc20a4567.tar.gz
plan9port-cbeb0b26e4c7caa8d1b47de791a7418dc20a4567.tar.bz2
plan9port-cbeb0b26e4c7caa8d1b47de791a7418dc20a4567.zip
Use gcc -ansi -pedantic in 9c. Fix many non-C89-isms.
Diffstat (limited to 'src/cmd/grap')
-rw-r--r--src/cmd/grap/grap.y2
-rw-r--r--src/cmd/grap/main.c1
2 files changed, 2 insertions, 1 deletions
diff --git a/src/cmd/grap/grap.y b/src/cmd/grap/grap.y
index 6d96b2f1..cb75a721 100644
--- a/src/cmd/grap/grap.y
+++ b/src/cmd/grap/grap.y
@@ -5,7 +5,7 @@
#include <string.h>
#include "grap.h"
-//#define RAND_MAX 32767 /* if your rand() returns bigger, change this too */
+/*#define RAND_MAX 32767 /* if your rand() returns bigger, change this too */
extern int yylex(void);
extern int yyparse(void);
diff --git a/src/cmd/grap/main.c b/src/cmd/grap/main.c
index 07f4ecad..db2098f5 100644
--- a/src/cmd/grap/main.c
+++ b/src/cmd/grap/main.c
@@ -1,3 +1,4 @@
+#define _BSD_SOURCE 1 /* strdup, mkstemp */
#include <stdio.h>
#include <signal.h>
#include <math.h>