Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP

Comparing changes

Choose two branches to see what’s changed or to start a new pull request. If you need to, you can also compare across forks.

Open a pull request

Create a new pull request by comparing changes across two branches. If you need to, you can also compare across forks.
base fork: blindsight/Amnuts
base: 9713cd8ed3
...
head fork: blindsight/Amnuts
compare: 7633a7a5b1
  • 2 commits
  • 2 files changed
  • 0 commit comments
  • 1 contributor
Showing with 13 additions and 15 deletions.
  1. +1 −0  src/Makefile
  2. +12 −15 src/amnuts230.c
View
1  src/Makefile
@@ -44,6 +44,7 @@ IDENTDCPPFLAGS = -I$(INCDIR)
# These are sort of gcc dependant; roll your own if you use another compiler
CFLAGS = -g -O2 -Wall -W -g
+#CFLAGS = -g -O0 -fno-inline
#CFLAGS = -g -O2 -Wall -W -Wfloat-equal -Wundef -Wshadow -Wpointer-arith -Wbad-function-cast -Wcast-qual -Wcast-align -Wwrite-strings -Waggregate-return -Wstrict-prototypes -Wmissing-prototypes -Wmissing-declarations -Wpacked -Wnested-externs -Winline -Wlong-long
#CFLAGS = -g -O2 -Wall -W -pedantic -Wfloat-equal -Wtraditional -Wundef -Wshadow -Wpointer-arith -Wbad-function-cast -Wcast-qual -Wcast-align -Wwrite-strings -Wconversion -Waggregate-return -Wstrict-prototypes -Wmissing-prototypes -Wmissing-declarations -Wmissing-noreturn -Wpacked -Wpadded -Wredundant-decls -Wnested-externs -Wunreachable-code -Winline -Wlong-long
#CFLAGS = -Q -fprofile-arcs -ftest-coverage -ggdb3 -O2 -Wall -W
View
27 src/amnuts230.c
@@ -142,18 +142,18 @@ main(int argc, char **argv)
}
/* Run in background automatically. */
- switch (fork()) {
- case -1:
- /* fork failure */
- boot_exit(11);
- break;
- case 0:
- /* child continues */
- break;
- default:
- /* parent dies */
- _exit(0);
- }
+ // switch (fork()) {
+ // case -1:
+ // /* fork failure */
+ // boot_exit(11);
+ // break;
+ // case 0:
+ // /* child continues */
+ // break;
+ // default:
+ // /* parent dies */
+ // _exit(0);
+ // }
/* XXX: Add setsid() and redirect stdio to /dev/null somewhere */
#ifdef NETLINKS
@@ -3590,9 +3590,6 @@ write_user(UR_OBJECT user, const char *str)
s += strlen(colour_codes[i].txt_code);
continue;
}
- if (s[1] == '~') {
- ++s;
- }
} else if (*s == '^') {
/* See if its a ^ before a ~ , if so then we print colour command as text */
if (s[1] == '~') {

No commit comments for this range

Something went wrong with that request. Please try again.