summaryrefslogtreecommitdiff
path: root/client/posix.c
diff options
context:
space:
mode:
authorSamuel Lidén Borell <samuel@kodafritt.se>2014-08-04 16:08:16 +0200
committerSamuel Lidén Borell <samuel@kodafritt.se>2014-08-04 16:08:16 +0200
commit657bd7b4058125dcc02375cd92b14b73d2d63fa3 (patch)
treefa5c38c1a7fce61a63ce17512cf3ae05bd8b077e /client/posix.c
parent7cc3510bc3731e876d3c5a187ccc03389a990c8b (diff)
downloadfribid-657bd7b4058125dcc02375cd92b14b73d2d63fa3.tar.gz
fribid-657bd7b4058125dcc02375cd92b14b73d2d63fa3.tar.bz2
fribid-657bd7b4058125dcc02375cd92b14b73d2d63fa3.zip
Rewrite most initializers to not require relocations
This patch changes most initializers to not require relocations, except for the ASN1 stuff in client/request.c and baseClass in plugin/npobject.c
Diffstat (limited to 'client/posix.c')
-rw-r--r--client/posix.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/client/posix.c b/client/posix.c
index 28a82d0..90c6639 100644
--- a/client/posix.c
+++ b/client/posix.c
@@ -64,7 +64,7 @@ struct PlatformDirIter {
* @param mode Either Platform_OpenRead or Platform_OpenCreate
*/
FILE *platform_openLocked(const char *filename, PlatformOpenMode mode) {
- static const char *const stdio_modes[] = { "rb", "wb" };
+ static const char stdio_modes[][3] = { "rb", "wb" };
static const int open_flags[] = { O_RDONLY, O_WRONLY|O_CREAT|O_EXCL };
static const int lock_flags[] = { F_RDLCK, F_WRLCK };