From 40fe7cdd9e9035425b01267e53db2b89c5e19a77 Mon Sep 17 00:00:00 2001 From: Sebastian Ramacher Date: Tue, 7 Jan 2014 03:43:38 +0100 Subject: [PATCH] Some typos Signed-off-by: Sebastian Ramacher --- document.c | 4 ++-- print.c | 2 +- shortcuts.c | 2 +- utils.c | 2 +- 4 files changed, 5 insertions(+), 5 deletions(-) diff --git a/document.c b/document.c index f7e7f22..4667619 100644 --- a/document.c +++ b/document.c @@ -35,7 +35,7 @@ /** Read a most GT_MAX_READ bytes before falling back to file. */ static const size_t GT_MAX_READ = 1 << 16; -static const gchar* guess_type(const char* path); +static const char* guess_type(const char* path); /** * Document @@ -86,7 +86,7 @@ zathura_document_open(zathura_plugin_manager_t* plugin_manager, const char* return NULL; } - const gchar* content_type = guess_type(path); + const char* content_type = guess_type(path); if (content_type == NULL) { girara_error("Could not determine file type."); return NULL; diff --git a/print.c b/print.c index d1d6e3d..3ac1fd8 100644 --- a/print.c +++ b/print.c @@ -60,7 +60,7 @@ print(zathura_t* zathura) zathura->print.settings = g_object_ref(gtk_print_operation_get_print_settings(print_operation)); zathura->print.page_setup = g_object_ref(gtk_print_operation_get_default_page_setup(print_operation)); } else if (result == GTK_PRINT_OPERATION_RESULT_ERROR) { - girara_error("Error occured while printing progress"); + girara_error("Error pccurred while printing progress"); } g_object_unref(print_operation); diff --git a/shortcuts.c b/shortcuts.c index 23ea84e..91770ba 100644 --- a/shortcuts.c +++ b/shortcuts.c @@ -1287,7 +1287,7 @@ sc_zoom(girara_session_t* session, girara_argument_t* argument, girara_event_t* zathura_document_set_adjust_mode(zathura->document, ZATHURA_ADJUST_NONE); - /* retreive zoom step value */ + /* retrieve zoom step value */ int value = 1; girara_setting_get(zathura->ui.session, "zoom-step", &value); diff --git a/utils.c b/utils.c index c30e4ef..382f3c4 100644 --- a/utils.c +++ b/utils.c @@ -210,7 +210,7 @@ replace_substring(const char* string, const char* old, const char* new) size_t old_len = strlen(old); size_t new_len = strlen(new); - /* count occurences */ + /* count occurrences */ unsigned int count = 0; unsigned int i = 0;