Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

update link to go test command

  • Loading branch information...
commit 50b525377f744d53c388d5fe013d76d3f357b699 1 parent 005673f
@kr authored
Showing with 6 additions and 4 deletions.
  1. +1 −1  Makefile
  2. +1 −1  Readme.md
  3. +3 −1 msg.c
  4. +1 −1  msg.h
View
2  Makefile
@@ -1,4 +1,4 @@
-CFLAGS ?= -Werror -Wall
+CFLAGS ?= -Werror -Wextra
libs = msg.c
objs = $(libs:.c=.o)
View
2  Readme.md
@@ -58,4 +58,4 @@ Also with ideas from the [Go testing package][gotesting] and [gotest][].
[Makefile]: https://github.com/kr/ct/blob/master/Makefile
[msg-test.c]: https://github.com/kr/ct/blob/master/msg-test.c
[gotesting]: http://golang.org/pkg/testing/
-[gotest]: http://golang.org/cmd/gotest/
+[gotest]: http://golang.org/cmd/go/#Test_packages
View
4 msg.c
@@ -1,5 +1,7 @@
/* msg.c - keep track of a message */
+#include "msg.h"
+
static char *msg = "default message";
void
@@ -9,7 +11,7 @@ set_message(char *m)
}
char *
-get_message()
+get_message(void)
{
return msg;
}
View
2  msg.h
@@ -2,4 +2,4 @@
void set_message(char *m);
-char *get_message();
+char *get_message(void);
Please sign in to comment.
Something went wrong with that request. Please try again.