Compare commits
9 Commits
Author | SHA1 | Date | |
---|---|---|---|
|
dea98a3b08 | ||
|
7c1548cfce | ||
|
ed253766ea | ||
|
772c2849e8 | ||
|
25537d30d3 | ||
|
625cecf492 | ||
|
86f38819c0 | ||
|
7b2892be76 | ||
|
ad99033ae4 |
18
.gitignore
vendored
Normal file
18
.gitignore
vendored
Normal 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
|
@ -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
doc/.gitignore
vendored
Normal file
3
doc/.gitignore
vendored
Normal file
@ -0,0 +1,3 @@
|
||||
Makefile
|
||||
Makefile.in
|
||||
report.sh
|
8
src/.gitignore
vendored
Normal file
8
src/.gitignore
vendored
Normal file
@ -0,0 +1,8 @@
|
||||
.deps
|
||||
.libs
|
||||
Makefile
|
||||
Makefile.in
|
||||
grammar.c
|
||||
grammar.h
|
||||
scanner.c
|
||||
tinyproxy
|
@ -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
|
@ -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;
|
||||
|
||||
|
@ -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);
|
||||
|
@ -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;
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user