For some files:

indent -npro -kr -i8 -ts8 -sob -l80 -ss -ncs *.[ch]

(trivial)

Signed-off-by: Uwe Hermann <uwe@hermann-uwe.de>
Acked-by: Uwe Hermann <uwe@hermann-uwe.de>



git-svn-id: svn://coreboot.org/repository/LinuxBIOSv3@65 f3766cd6-281f-0410-b1cd-43a5c92072e9
This commit is contained in:
Uwe Hermann 2007-01-30 13:15:04 +00:00
parent aecc25a2e1
commit 110c9f7e1c
8 changed files with 32 additions and 34 deletions

View file

@ -36,4 +36,3 @@ struct mem_file {
void *start;
int len;
};

View file

@ -9,7 +9,7 @@ extern void *memmove(void *dest, const void *src, size_t n);
extern void *memset(void *s, int c, size_t n);
extern int memcmp(const void *s1, const void *s2, size_t n);
extern int sprintf(char * buf, const char *fmt, ...);
extern int sprintf(char *buf, const char *fmt, ...);
// yes, linux has fancy ones. We don't care. This stuff gets used
// hardly at all. And the pain of including those files is just too high.
@ -21,7 +21,7 @@ extern int sprintf(char * buf, const char *fmt, ...);
static inline size_t strnlen(const char *src, size_t max)
{
size_t i = 0;
while((*src++) && (i < max)) {
while ((*src++) && (i < max)) {
i++;
}
return i;
@ -30,7 +30,7 @@ static inline size_t strnlen(const char *src, size_t max)
static inline size_t strlen(const char *src)
{
size_t i = 0;
while(*src++) {
while (*src++) {
i++;
}
return i;
@ -40,7 +40,7 @@ static inline char *strchr(const char *s, int c)
{
for (; *s; s++) {
if (*s == c)
return (char *) s;
return (char *)s;
}
return 0;
}
@ -84,8 +84,12 @@ static inline int strcmp(const char *s1, const char *s2)
static inline int isspace(int c)
{
switch (c) {
case ' ': case '\f': case '\n':
case '\r': case '\t': case '\v':
case ' ':
case '\f':
case '\n':
case '\r':
case '\t':
case '\v':
return 1;
default:
return 0;
@ -100,8 +104,7 @@ static inline int isdigit(int c)
static inline int isxdigit(int c)
{
return ((c >= '0' && c <= '9') ||
(c >= 'a' && c <= 'f') ||
(c >= 'A' && c <= 'F'));
(c >= 'a' && c <= 'f') || (c >= 'A' && c <= 'F'));
}
static inline int isupper(int c)
@ -117,14 +120,14 @@ static inline int islower(int c)
static inline int toupper(int c)
{
if (islower(c))
c -= 'a'-'A';
c -= 'a' - 'A';
return c;
}
static inline int tolower(int c)
{
if (isupper(c))
c -= 'A'-'a';
c -= 'A' - 'a';
return c;
}
#endif /* STRING_H */

View file

@ -3,4 +3,3 @@ extern struct chip_operations mainboard_emulation_qemu_i386_ops;
struct mainboard_emulation_qemu_i386_config {
int nothing;
};

View file

@ -30,9 +30,7 @@ int main(void)
{
printk(BIOS_INFO, "RAM init code started\n");
die ("Nothing to do.");
die("Nothing to do.");
return 0;
}

View file

@ -25,4 +25,3 @@
struct chip_operations mainboard_emulation_qemu_i386_ops = {
.name = "QEMU Mainboard"
};

View file

@ -25,8 +25,8 @@
void udelay(int usecs)
{
int i;
for(i = 0; i < usecs; i++)
outb(i&0xff, 0x80);
for (i = 0; i < usecs; i++)
outb(i & 0xff, 0x80);
}
void setup_before_car(void)