diff options
| author | Daniel Stenberg <daniel@haxx.se> | 2005-02-22 12:19:12 +0000 |
|---|---|---|
| committer | Daniel Stenberg <daniel@haxx.se> | 2005-02-22 12:19:12 +0000 |
| commit | 22b7701fe75cce9afdbc27046821dc089f9e7dac (patch) | |
| tree | ca5b4f0428fad0fc9c775dfb0ac879ddee863846 /apps/plugins/lib | |
| parent | 376057d2b67bae0a7b24ae1715d3cbb0b540b7a9 (diff) | |
| download | rockbox-22b7701fe75cce9afdbc27046821dc089f9e7dac.zip rockbox-22b7701fe75cce9afdbc27046821dc089f9e7dac.tar.gz rockbox-22b7701fe75cce9afdbc27046821dc089f9e7dac.tar.bz2 rockbox-22b7701fe75cce9afdbc27046821dc089f9e7dac.tar.xz | |
Build cleanup and general fixes. fprintf() is now fdprintf(), the separation
between uisimulator files and firmware/apps files are better done.
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@6031 a1c6a512-1295-4272-9138-f99709370657
Diffstat (limited to 'apps/plugins/lib')
| -rw-r--r-- | apps/plugins/lib/configfile.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/apps/plugins/lib/configfile.c b/apps/plugins/lib/configfile.c index ff4809a..f2f0a39 100644 --- a/apps/plugins/lib/configfile.c +++ b/apps/plugins/lib/configfile.c @@ -38,24 +38,24 @@ int configfile_save(const char *filename, struct configdata *cfg, if(fd < 0) return fd*10 - 1; - cfg_rb->fprintf(fd, "file version: %d\n", version); + cfg_rb->fdprintf(fd, "file version: %d\n", version); for(i = 0;i < num_items;i++) { switch(cfg[i].type) { case TYPE_INT: - cfg_rb->fprintf(fd, "%s: %d\n", + cfg_rb->fdprintf(fd, "%s: %d\n", cfg[i].name, *cfg[i].val); break; case TYPE_ENUM: - cfg_rb->fprintf(fd, "%s: %s\n", + cfg_rb->fdprintf(fd, "%s: %s\n", cfg[i].name, cfg[i].values[*cfg[i].val]); break; case TYPE_STRING: - cfg_rb->fprintf(fd, "%s: %s\n", + cfg_rb->fdprintf(fd, "%s: %s\n", cfg[i].name, cfg[i].string); break; |