Skip to content
Permalink
Browse files

Reformat.

  • Loading branch information...
schmonz committed Nov 26, 2018
1 parent 83e6d00 commit 60e3197d6b824833cd616ee40efe5e53fe1e39a3
Showing with 6 additions and 4 deletions.
  1. +2 −1 Makefile
  2. +4 −3 acceptutils_ucspitls.c
@@ -16,7 +16,8 @@ compile99 acceptutils_stralloc.c acceptutils_stralloc.h
./compile99 acceptutils_stralloc.c

acceptutils_ucspitls.o: \
compile99 acceptutils_ucspitls.c acceptutils_ucspitls.h acceptutils_stralloc.h case.h env.h fd.h readwrite.h scan.h
compile99 acceptutils_ucspitls.c acceptutils_ucspitls.h acceptutils_stralloc.h \
case.h env.h fd.h readwrite.h scan.h substdio.h
./compile99 acceptutils_ucspitls.c

acceptutils_unistd.o: \
@@ -3,6 +3,7 @@
#include "fd.h"
#include "readwrite.h"
#include "scan.h"
#include "substdio.h"

#include "acceptutils_stralloc.h"
#include "acceptutils_ucspitls.h"
@@ -61,7 +62,7 @@ int tls_init(void) {

int tls_info(void (*die_nomem)(const char *caller,const char *alloc_fn)) {
unsigned long fd;
char envbuf[8192];
char envbuf[SUBSTDIO_INSIZE];
char *x;
int j;

@@ -72,9 +73,9 @@ int tls_info(void (*die_nomem)(const char *caller,const char *alloc_fn)) {
fd = get_fd_for("SSLCTLFD");
if (!fd) return 0;

while ((j=read(fd,envbuf,8192)) > 0 ) {
while ((j = read(fd,envbuf,SUBSTDIO_INSIZE)) > 0) {
catb(&ssl_env,envbuf,j);
if (ssl_env.len >= 2 && ssl_env.s[ssl_env.len-2]==0 && ssl_env.s[ssl_env.len-1]==0)
if (ssl_env.len >= 2 && ssl_env.s[ssl_env.len-2] == 0 && ssl_env.s[ssl_env.len-1] == 0)
break;
}
if (j < 0)

0 comments on commit 60e3197

Please sign in to comment.
You can’t perform that action at this time.