Commit | Line | Data |
---|---|---|
34e49164 C |
1 | #define fieldsize(a) (sizeof(a)/sizeof(*a)) |
2 | ||
3 | static int | |
4 | atari_proc_infos(unsigned char *nvram, char *buffer, int *len, | |
5 | off_t *begin, off_t offset, int size) | |
6 | { | |
7 | for (i = fieldsize(boot_prefs) - 1; i >= 0; --i) { | |
8 | if (nvram[1] == boot_prefs[i].val) { | |
9 | PRINT_PROC("%s\n", boot_prefs[i].name); | |
10 | break; | |
11 | } | |
12 | } | |
13 | } | |
14 |