]> granicus.if.org Git - libevent/commitdiff
__FUNCTION__ -> __func__
authorNiels Provos <provos@gmail.com>
Thu, 25 Sep 2003 03:30:49 +0000 (03:30 +0000)
committerNiels Provos <provos@gmail.com>
Thu, 25 Sep 2003 03:30:49 +0000 (03:30 +0000)
svn:r80

test/Makefile.am
test/test-eof.c
test/test-weof.c

index 41a6b0be5b6a2c2c69182e3f24908e30f9962aca..0d9ea53e41220b38fd30e77c8b2fb14a11a323c2 100644 (file)
@@ -2,7 +2,7 @@ AUTOMAKE_OPTIONS = foreign no-dependencies
 
 LDADD = -L.. -levent
 CPPFPLAGS = -I.. 
-CFLAGS = -I../compat -g -Wall
+CFLAGS = -I../compat -Wall @CFLAGS@
 
 noinst_PROGRAMS = test-eof test-weof test-time regress bench
 
@@ -47,3 +47,4 @@ test: test-eof test-weof test-time regress
                echo FAILED ; \
        fi
 
+bench test-eof test-weof test-time regress: ../libevent.a
index 93d3b6392ca86a042168743aaf9e7bdd4a18c8df..020c6611a22dfdf6f77f1f718689f96641c1a35c 100644 (file)
@@ -27,7 +27,7 @@ read_cb(int fd, short event, void *arg)
 
        len = read(fd, buf, sizeof(buf));
 
-       printf("%s: read %d%s\n", __FUNCTION__,
+       printf("%s: read %d%s\n", __func__,
            len, len ? "" : " - means EOF");
 
        if (len) {
index 66340393aef18ced4361d305d750385147b69950..8862b4a291cc61708b673fd1f25f89fbe58e4183 100644 (file)
@@ -29,7 +29,7 @@ write_cb(int fd, short event, void *arg)
 
        len = write(fd, test, strlen(test) + 1);
 
-       printf("%s: write %d%s\n", __FUNCTION__,
+       printf("%s: write %d%s\n", __func__,
            len, len ? "" : " - means EOF");
 
        if (len > 0) {