__FUNCTION__ -> __func__

svn:r80
This commit is contained in:
Niels Provos 2003-09-25 03:30:49 +00:00
parent 9d26a46c39
commit c61a2547e2
3 changed files with 4 additions and 3 deletions

View 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

View 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) {

View 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) {