Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

Make the example code all build

  • Loading branch information...
commit 6e4838b37a63f47baac5a9e1840b4a0a208ba9c3 1 parent 0baabd5
Nick Mathewson authored
View
2  Ref4_event.txt
@@ -214,7 +214,7 @@ void cb_func(evutil_socket_t fd, short what, void *arg)
void run(struct event_base *base)
{
struct timeval one_sec = { 1, 0 };
- struct *ev;
+ struct event *ev;
/* We're going to set up a repeating timer to get called called 100
times. */
ev = event_new(base, -1, EV_PERSIST, cb_func, event_self_cbarg());
View
1  Ref6a_advanced_bufferevents.txt
@@ -576,6 +576,7 @@ in the connection as a BEV_EVENT_EOF.
The allow_dirty_shutdown functions were added in Libevent 2.1.1-alpha.
+//BUILD: SKIP
.Example: A simple SSL-based echo server
[code,C]
--------
View
4 bin/build_examples.py
@@ -182,11 +182,11 @@ def getCodeBlocks(fname, outputDir):
return filelist
CC=os.environ.get("CC", "gcc")
-CFLAGS=os.environ.get("LEBOOK_CFLAGS", "-Wall").split()
+CFLAGS=os.environ.get("LEBOOK_CFLAGS", "").split()
def build(fname):
"Build a C file 'fname'."
- command = [CC, "-c", "-o", "tmp.o" ]
+ command = [CC, "-Wall", "-c", "-o", "tmp.o" ]
command.extend(CFLAGS)
command.append(fname)
print " ".join(command)
Please sign in to comment.
Something went wrong with that request. Please try again.