Compare commits

...
8 Commits
9 changed files with 35 additions and 10 deletions

No files matched your search

+18
View File
@@ -0,0 +1,18 @@
COPYING
INSTALL
Makefile
Makefile.in
NEWS
aclocal.m4
config.cache
config.h
config.h.in
config.log
config.status
configure
depcomp
install-sh
libtool
missing
mkinstalldirs
stamp-h1
View File
File renamed without changes.
+1 -1
View File
@@ -142,7 +142,7 @@ dnl avoid -lnsl checks, if we already have the functions which are
dnl usually in libnsl
unset ac_cv_func_yp_get_default_domain
AC_CHECK_FUNC(yp_get_default_domain, [ tinyproxy_no_nsl_checks=yes ], [ ])
AC_CHECK_FUNC(yp_get_default_domain, [ tinyproxy_no_nsl_checks=yes ])
unset ac_cv_func_yp_get_default_domain
if test "$tinyproxy_no_nsl_checks" != "yes"; then
+3
View File
@@ -0,0 +1,3 @@
Makefile
Makefile.in
report.sh
+8
View File
@@ -0,0 +1,8 @@
.deps
.libs
Makefile
Makefile.in
grammar.c
grammar.h
scanner.c
tinyproxy
-3
View File
@@ -47,6 +47,3 @@ EXTRA_tinyproxy_SOURCES = grammar.h
scanner.c: scanner.l grammar.h
$(LEX) $(AM_LFLAGS) $(LFLAGS) -i $< && mv $(LEX_OUTPUT_ROOT).c $@
clean:
rm -f *.da
rm -f gmon.out
-1
View File
@@ -71,7 +71,6 @@ static struct keyword keywords[] = {
#define MAX_REGEXP_LEN 1024
unsigned int yylineno = 1;
char tiny_buf[MAX_REGEXP_LEN];
char *tiny_str;
+2 -2
View File
@@ -155,7 +155,7 @@ int listen_sock(uint16_t port, socklen_t *addrlen)
char *getpeer_ip(int fd, char *ipaddr)
{
struct sockaddr_in name;
size_t namelen = sizeof(name);
socklen_t namelen = sizeof(name);
assert(fd >= 0);
assert(ipaddr != NULL);
@@ -183,7 +183,7 @@ char *getpeer_ip(int fd, char *ipaddr)
char *getpeer_string(int fd, char *string)
{
struct sockaddr_in name;
size_t namelen = sizeof(name);
socklen_t namelen = sizeof(name);
struct hostent *peername;
assert(fd >= 0);
+3 -3
View File
@@ -35,21 +35,21 @@
void *debugging_calloc(size_t nmemb, size_t size, const char *file, unsigned long line)
{
void *ptr = calloc(nmemb, size);
fprintf(stderr, "{calloc: %p:%u x %u} %s:%lu\n", ptr, nmemb, size, file, line);
fprintf(stderr, "{calloc: %p:%zu x %zu} %s:%lu\n", ptr, nmemb, size, file, line);
return ptr;
}
void *debugging_malloc(size_t size, const char *file, unsigned long line)
{
void *ptr = malloc(size);
fprintf(stderr, "{malloc: %p:%u} %s:%lu\n", ptr, size, file, line);
fprintf(stderr, "{malloc: %p:%zu} %s:%lu\n", ptr, size, file, line);
return ptr;
}
void *debugging_realloc(void *ptr, size_t size, const char *file, unsigned long line)
{
void *newptr = realloc(ptr, size);
fprintf(stderr, "{realloc: %p -> %p:%u} %s:%lu\n", ptr, newptr, size, file, line);
fprintf(stderr, "{realloc: %p -> %p:%zu} %s:%lu\n", ptr, newptr, size, file, line);
return newptr;
}