Compare commits
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
0895438900 |
No files matched your search
-18
@@ -1,18 +0,0 @@
|
|||||||
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
|
dnl usually in libnsl
|
||||||
|
|
||||||
unset ac_cv_func_yp_get_default_domain
|
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
|
unset ac_cv_func_yp_get_default_domain
|
||||||
|
|
||||||
if test "$tinyproxy_no_nsl_checks" != "yes"; then
|
if test "$tinyproxy_no_nsl_checks" != "yes"; then
|
||||||
@@ -1,3 +0,0 @@
|
|||||||
Makefile
|
|
||||||
Makefile.in
|
|
||||||
report.sh
|
|
||||||
File renamed without changes.
@@ -1,8 +0,0 @@
|
|||||||
.deps
|
|
||||||
.libs
|
|
||||||
Makefile
|
|
||||||
Makefile.in
|
|
||||||
grammar.c
|
|
||||||
grammar.h
|
|
||||||
scanner.c
|
|
||||||
tinyproxy
|
|
||||||
@@ -47,3 +47,6 @@ EXTRA_tinyproxy_SOURCES = grammar.h
|
|||||||
scanner.c: scanner.l grammar.h
|
scanner.c: scanner.l grammar.h
|
||||||
$(LEX) $(AM_LFLAGS) $(LFLAGS) -i $< && mv $(LEX_OUTPUT_ROOT).c $@
|
$(LEX) $(AM_LFLAGS) $(LFLAGS) -i $< && mv $(LEX_OUTPUT_ROOT).c $@
|
||||||
|
|
||||||
|
clean:
|
||||||
|
rm -f *.da
|
||||||
|
rm -f gmon.out
|
||||||
@@ -71,6 +71,7 @@ static struct keyword keywords[] = {
|
|||||||
|
|
||||||
#define MAX_REGEXP_LEN 1024
|
#define MAX_REGEXP_LEN 1024
|
||||||
|
|
||||||
|
unsigned int yylineno = 1;
|
||||||
char tiny_buf[MAX_REGEXP_LEN];
|
char tiny_buf[MAX_REGEXP_LEN];
|
||||||
char *tiny_str;
|
char *tiny_str;
|
||||||
|
|
||||||
|
|||||||
+2
-2
@@ -155,7 +155,7 @@ int listen_sock(uint16_t port, socklen_t *addrlen)
|
|||||||
char *getpeer_ip(int fd, char *ipaddr)
|
char *getpeer_ip(int fd, char *ipaddr)
|
||||||
{
|
{
|
||||||
struct sockaddr_in name;
|
struct sockaddr_in name;
|
||||||
socklen_t namelen = sizeof(name);
|
size_t namelen = sizeof(name);
|
||||||
|
|
||||||
assert(fd >= 0);
|
assert(fd >= 0);
|
||||||
assert(ipaddr != NULL);
|
assert(ipaddr != NULL);
|
||||||
@@ -183,7 +183,7 @@ char *getpeer_ip(int fd, char *ipaddr)
|
|||||||
char *getpeer_string(int fd, char *string)
|
char *getpeer_string(int fd, char *string)
|
||||||
{
|
{
|
||||||
struct sockaddr_in name;
|
struct sockaddr_in name;
|
||||||
socklen_t namelen = sizeof(name);
|
size_t namelen = sizeof(name);
|
||||||
struct hostent *peername;
|
struct hostent *peername;
|
||||||
|
|
||||||
assert(fd >= 0);
|
assert(fd >= 0);
|
||||||
|
|||||||
+3
-3
@@ -35,21 +35,21 @@
|
|||||||
void *debugging_calloc(size_t nmemb, size_t size, const char *file, unsigned long line)
|
void *debugging_calloc(size_t nmemb, size_t size, const char *file, unsigned long line)
|
||||||
{
|
{
|
||||||
void *ptr = calloc(nmemb, size);
|
void *ptr = calloc(nmemb, size);
|
||||||
fprintf(stderr, "{calloc: %p:%zu x %zu} %s:%lu\n", ptr, nmemb, size, file, line);
|
fprintf(stderr, "{calloc: %p:%u x %u} %s:%lu\n", ptr, nmemb, size, file, line);
|
||||||
return ptr;
|
return ptr;
|
||||||
}
|
}
|
||||||
|
|
||||||
void *debugging_malloc(size_t size, const char *file, unsigned long line)
|
void *debugging_malloc(size_t size, const char *file, unsigned long line)
|
||||||
{
|
{
|
||||||
void *ptr = malloc(size);
|
void *ptr = malloc(size);
|
||||||
fprintf(stderr, "{malloc: %p:%zu} %s:%lu\n", ptr, size, file, line);
|
fprintf(stderr, "{malloc: %p:%u} %s:%lu\n", ptr, size, file, line);
|
||||||
return ptr;
|
return ptr;
|
||||||
}
|
}
|
||||||
|
|
||||||
void *debugging_realloc(void *ptr, size_t size, const char *file, unsigned long line)
|
void *debugging_realloc(void *ptr, size_t size, const char *file, unsigned long line)
|
||||||
{
|
{
|
||||||
void *newptr = realloc(ptr, size);
|
void *newptr = realloc(ptr, size);
|
||||||
fprintf(stderr, "{realloc: %p -> %p:%zu} %s:%lu\n", ptr, newptr, size, file, line);
|
fprintf(stderr, "{realloc: %p -> %p:%u} %s:%lu\n", ptr, newptr, size, file, line);
|
||||||
return newptr;
|
return newptr;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in new issue
Block a user