diff options
author | Nils Durner <durner@gnunet.org> | 2009-06-15 20:20:34 +0000 |
---|---|---|
committer | Nils Durner <durner@gnunet.org> | 2009-06-15 20:20:34 +0000 |
commit | 21314229eea36c41f276f753c1cf141041405102 (patch) | |
tree | d7d4815cb24e9fa986cfc944c4f67b9c8442c9e8 /src | |
parent | 1088905b5a89a24706d2c1877d289589e3f3c222 (diff) | |
download | gnunet-21314229eea36c41f276f753c1cf141041405102.tar.gz gnunet-21314229eea36c41f276f753c1cf141041405102.zip |
typos
Diffstat (limited to 'src')
-rw-r--r-- | src/util/disk.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/src/util/disk.c b/src/util/disk.c index b0d3b18a4..45e832094 100644 --- a/src/util/disk.c +++ b/src/util/disk.c | |||
@@ -984,14 +984,14 @@ GNUNET_DISK_file_open (const char *fn, int flags, ...) | |||
984 | oflags |= O_CREAT; | 984 | oflags |= O_CREAT; |
985 | 985 | ||
986 | va_list arg; | 986 | va_list arg; |
987 | va_start (arg, oflag); | 987 | va_start (arg, flags); |
988 | mode = va_arg (arg, int); | 988 | mode = va_arg (arg, int); |
989 | va_end (arg); | 989 | va_end (arg); |
990 | } | 990 | } |
991 | if (flags & GNUNET_DISK_OPEN_APPEND) | 991 | if (flags & GNUNET_DISK_OPEN_APPEND) |
992 | oflags = O_APPEND; | 992 | oflags = O_APPEND; |
993 | 993 | ||
994 | fd = open (expfn, oflag | O_LARGEFILE, perm, mode); | 994 | s fd = open (expfn, oflag | O_LARGEFILE, perm, mode); |
995 | if (fd == -1) | 995 | if (fd == -1) |
996 | { | 996 | { |
997 | GNUNET_log_strerror_file (GNUNET_ERROR_TYPE_WARNING, "open", fn); | 997 | GNUNET_log_strerror_file (GNUNET_ERROR_TYPE_WARNING, "open", fn); |
@@ -1212,13 +1212,13 @@ GNUNET_DISK_file_map (const struct GNUNET_IO_Handle *h, struct GNUNET_IO_Handle | |||
1212 | #else | 1212 | #else |
1213 | int prot; | 1213 | int prot; |
1214 | 1214 | ||
1215 | prot = flags = 0; | 1215 | prot = 0; |
1216 | if (access & GNUNET_DISK_MAP_READ) | 1216 | if (access & GNUNET_DISK_MAP_READ) |
1217 | prot = PROT_READ; | 1217 | prot = PROT_READ; |
1218 | if (access & GNUNET_DISK_MAP_WRITE) | 1218 | if (access & GNUNET_DISK_MAP_WRITE) |
1219 | prot |= PROT_WRITE; | 1219 | prot |= PROT_WRITE; |
1220 | 1220 | ||
1221 | return mmap (NULL, len, prot, MAP_SHARED, h->h, 0); | 1221 | return mmap (NULL, len, prot, MAP_SHARED, h->fd, 0); |
1222 | #endif | 1222 | #endif |
1223 | } | 1223 | } |
1224 | 1224 | ||