git://git.onelab.eu
/
linux-2.6.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
VServer 1.9.2 (patch-2.6.8.1-vs1.9.2.diff)
[linux-2.6.git]
/
arch
/
ppc
/
xmon
/
start.c
diff --git
a/arch/ppc/xmon/start.c
b/arch/ppc/xmon/start.c
index
802775f
..
d880967
100644
(file)
--- a/
arch/ppc/xmon/start.c
+++ b/
arch/ppc/xmon/start.c
@@
-448,13
+448,13
@@
xmon_init_scc(void)
scc_initialized = 1;
if (via_modem) {
for (;;) {
scc_initialized = 1;
if (via_modem) {
for (;;) {
- xmon_write(
0
, "ATE1V1\r", 7);
+ xmon_write(
NULL
, "ATE1V1\r", 7);
if (xmon_expect("OK", 5)) {
if (xmon_expect("OK", 5)) {
- xmon_write(
0
, "ATA\r", 4);
+ xmon_write(
NULL
, "ATA\r", 4);
if (xmon_expect("CONNECT", 40))
break;
}
if (xmon_expect("CONNECT", 40))
break;
}
- xmon_write(
0
, "+++", 3);
+ xmon_write(
NULL
, "+++", 3);
xmon_expect("OK", 3);
}
}
xmon_expect("OK", 3);
}
}
@@
-618,7
+618,7
@@
xmon_fgets(char *str, int nb, void *f)
c = xmon_getchar();
if (c == -1) {
if (p == str)
c = xmon_getchar();
if (c == -1) {
if (p == str)
- return
0
;
+ return
NULL
;
break;
}
*p++ = c;
break;
}
*p++ = c;