diff options
author | Thomas Martitz <kugel@rockbox.org> | 2010-05-06 17:35:04 +0000 |
---|---|---|
committer | Thomas Martitz <kugel@rockbox.org> | 2010-05-06 17:35:04 +0000 |
commit | c61e89c0eda126c2c1a4a3983520c35fe30db156 (patch) | |
tree | 1285f8cbde5485f93f8653f31ea0454587dd741e /apps/plugins/pitch_detector.c | |
parent | 684c70bac5f27e8dec49e113563cf6e496da854d (diff) | |
download | rockbox-c61e89c0eda126c2c1a4a3983520c35fe30db156.tar.gz rockbox-c61e89c0eda126c2c1a4a3983520c35fe30db156.zip |
Make creat() posix compliant API-wise. Shouldn't affect the core as it's wrapped via a static inline.
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@25843 a1c6a512-1295-4272-9138-f99709370657
Diffstat (limited to 'apps/plugins/pitch_detector.c')
-rw-r--r-- | apps/plugins/pitch_detector.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/apps/plugins/pitch_detector.c b/apps/plugins/pitch_detector.c index 10125c1302..de0aff9fef 100644 --- a/apps/plugins/pitch_detector.c +++ b/apps/plugins/pitch_detector.c | |||
@@ -381,7 +381,7 @@ enum settings_file_status tuner_settings_load(struct tuner_settings* settings, | |||
381 | enum settings_file_status tuner_settings_save(struct tuner_settings* settings, | 381 | enum settings_file_status tuner_settings_save(struct tuner_settings* settings, |
382 | char* filename) | 382 | char* filename) |
383 | { | 383 | { |
384 | int fd = rb->creat(filename); | 384 | int fd = rb->creat(filename, 0666); |
385 | if(fd >= 0){ /* does file exist? */ | 385 | if(fd >= 0){ /* does file exist? */ |
386 | rb->write (fd, settings, sizeof(*settings)); | 386 | rb->write (fd, settings, sizeof(*settings)); |
387 | rb->close(fd); | 387 | rb->close(fd); |