mirror of
https://github.com/libevent/libevent.git
synced 2025-01-09 00:56:20 +08:00
__FUNCTION__ -> __func__
svn:r80
This commit is contained in:
parent
9d26a46c39
commit
c61a2547e2
@ -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
|
||||
|
@ -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) {
|
||||
|
@ -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) {
|
||||
|
Loading…
x
Reference in New Issue
Block a user