aboutsummaryrefslogtreecommitdiffstats
path: root/memdump/conio.c
diff options
context:
space:
mode:
Diffstat (limited to 'memdump/conio.c')
-rw-r--r--memdump/conio.c22
1 files changed, 11 insertions, 11 deletions
diff --git a/memdump/conio.c b/memdump/conio.c
index bf54805a..1400e42c 100644
--- a/memdump/conio.c
+++ b/memdump/conio.c
@@ -21,22 +21,22 @@
int putchar(int ch)
{
- if ( ch == '\n' )
- putchar('\r');
- asm("movb $0x02,%%ah ; int $0x21" : : "d" (ch));
- return ch;
+ if (ch == '\n')
+ putchar('\r');
+asm("movb $0x02,%%ah ; int $0x21": :"d"(ch));
+ return ch;
}
/* Note: doesn't put '\n' like the stdc version does */
int puts(const char *s)
{
- int count = 0;
+ int count = 0;
- while ( *s ) {
- putchar(*s);
- count++;
- s++;
- }
+ while (*s) {
+ putchar(*s);
+ count++;
+ s++;
+ }
- return count;
+ return count;
}