Parent Directory | Revision Log | Patch
revision 1.1.1.1 by likewise, Sat Oct 19 12:59:38 2002 UTC | revision 1.2 by adamdunkels, Thu Oct 24 13:04:51 2002 UTC | |
---|---|---|
# | Line 43 fs_open(char *name, struct fs_file *file | Line 43 fs_open(char *name, struct fs_file *file |
43 | { | { |
44 | struct fsdata_file_noconst *f; | struct fsdata_file_noconst *f; |
45 | ||
46 | for(f = (struct fsdata_file_noconst *)FS_ROOT; f != NULL; f = (struct fsdata_file_noconst *)f->next) { | for(f = (struct fsdata_file_noconst *)FS_ROOT; |
47 | if(!strcmp(name, f->name)) { | f != NULL; |
48 | file->data = f->data; | f = (struct fsdata_file_noconst *)f->next) { |
49 | if(!strcmp(name, (char *)f->name)) { | |
50 | file->data = (char *)f->data; | |
51 | file->len = f->len; | file->len = f->len; |
52 | return 1; | return 1; |
53 | } | } |
|
savannah-hackers-public@gnu.org | ViewVC Help |
Powered by ViewVC 1.1.26 |