Skip to content

Commit

Permalink
Make minor revisions to previous change
Browse files Browse the repository at this point in the history
  • Loading branch information
jart committed Jun 30, 2021
1 parent a68cc69 commit 014d4bd
Show file tree
Hide file tree
Showing 4 changed files with 6 additions and 8 deletions.
1 change: 0 additions & 1 deletion examples/examples.mk
Original file line number Diff line number Diff line change
Expand Up @@ -86,7 +86,6 @@ o/$(MODE)/examples/examples.pkg: \
$(EXAMPLES_OBJS) \
$(foreach x,$(EXAMPLES_DIRECTDEPS),$($(x)_A).pkg)

o/$(MODE)/examples/zodiac.o \
o/$(MODE)/examples/unbourne.o: \
OVERRIDE_CPPFLAGS += \
-DSTACK_FRAME_UNLIMITED
Expand Down
8 changes: 4 additions & 4 deletions libc/log/backtrace2.c
Original file line number Diff line number Diff line change
Expand Up @@ -125,11 +125,11 @@ static int PrintBacktraceUsingAddr2line(int fd, const struct StackFrame *bp) {
}

static int PrintBacktrace(int fd, const struct StackFrame *bp) {
/* if (!IsTiny()) { */
if (PrintBacktraceUsingAddr2line(fd, bp) != -1) {
return 0;
if (!IsTiny()) {
if (PrintBacktraceUsingAddr2line(fd, bp) != -1) {
return 0;
}
}
/* } */
return PrintBacktraceUsingSymbols(fd, bp, GetSymbolTable());
}

Expand Down
2 changes: 1 addition & 1 deletion libc/sock/getpeername-nt.c
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@
#include "libc/sysv/errfuns.h"

textwindows int sys_getpeername_nt(struct Fd *fd, void *out_addr,
uint32_t *out_addrsize) {
uint32_t *out_addrsize) {
assert(fd->kind == kFdSocket);
if (__sys_getpeername_nt(fd->handle, out_addr, out_addrsize) != -1) {
return 0;
Expand Down
3 changes: 1 addition & 2 deletions tool/net/dig.c
Original file line number Diff line number Diff line change
Expand Up @@ -76,7 +76,6 @@ void lookup(const char *name) {
int main(int argc, char *argv[]) {
int i;
showcrashreports();
lookup("time-a.timefreq.bldrdoc.gov");
/* for (i = 1; i < argc; ++i) lookup(argv[i]); */
for (i = 1; i < argc; ++i) lookup(argv[i]);
return 0;
}

0 comments on commit 014d4bd

Please sign in to comment.