summaryrefslogtreecommitdiff
path: root/src/journal
diff options
context:
space:
mode:
authorThomas Hindoe Paaboel Andersen <phomes@gmail.com>2012-09-04 19:24:16 +0200
committerLennart Poettering <lennart@poettering.net>2012-09-13 19:34:24 +0200
commitc53158818d8cdaf46b3f1b5299b9bda118a1043f (patch)
tree3ebddf2e2fd9d3280d59d80e382d83a0042a5706 /src/journal
parentff89a42a8602443b9a74be276cf3ee351b3914c7 (diff)
man: fix a bunch of typos in docs
https://bugs.freedesktop.org/show_bug.cgi?id=54501
Diffstat (limited to 'src/journal')
-rw-r--r--src/journal/journal-file.c2
-rw-r--r--src/journal/lookup3.c2
-rw-r--r--src/journal/mmap-cache.c2
3 files changed, 3 insertions, 3 deletions
diff --git a/src/journal/journal-file.c b/src/journal/journal-file.c
index 8dc0a3a669..e778e1c67c 100644
--- a/src/journal/journal-file.c
+++ b/src/journal/journal-file.c
@@ -1051,7 +1051,7 @@ void journal_file_post_change(JournalFile *f) {
__sync_synchronize();
if (ftruncate(f->fd, f->last_stat.st_size) < 0)
- log_error("Failed to to truncate file to its own size: %m");
+ log_error("Failed to truncate file to its own size: %m");
}
int journal_file_append_entry(JournalFile *f, const dual_timestamp *ts, const struct iovec iovec[], unsigned n_iovec, uint64_t *seqnum, Object **ret, uint64_t *offset) {
diff --git a/src/journal/lookup3.c b/src/journal/lookup3.c
index 31eac8c543..ee9a1834cf 100644
--- a/src/journal/lookup3.c
+++ b/src/journal/lookup3.c
@@ -14,7 +14,7 @@ if SELF_TEST is defined. You can use this free for any purpose. It's in
the public domain. It has no warranty.
You probably want to use hashlittle(). hashlittle() and hashbig()
-hash byte arrays. hashlittle() is is faster than hashbig() on
+hash byte arrays. hashlittle() is faster than hashbig() on
little-endian machines. Intel and AMD are little-endian machines.
On second thought, you probably want hashlittle2(), which is identical to
hashlittle() except it returns two 32-bit hashes for the price of one.
diff --git a/src/journal/mmap-cache.c b/src/journal/mmap-cache.c
index 2b45e375c5..7d6c6c22ba 100644
--- a/src/journal/mmap-cache.c
+++ b/src/journal/mmap-cache.c
@@ -392,7 +392,7 @@ static int mmap_cache_put(
if (st) {
/* Memory maps that are larger then the files
- underneath have undefined behaviour. Hence, clamp
+ underneath have undefined behavior. Hence, clamp
things to the file size if we know it */
if (woffset >= (uint64_t) st->st_size)