From 188e36178bfe3169ef0188e1b29a48aeefb60d23 Mon Sep 17 00:00:00 2001 From: Thomas Schmitt Date: Fri, 22 Jul 2016 16:03:51 +0200 Subject: [PATCH] Reacted on some of the complaints of codespell --- README | 4 ++-- demo/demo.c | 8 ++++---- doc/checksums.txt | 4 ++-- doc/susp_aaip_2_0.txt | 2 +- libisofs/aaip-os-freebsd.c | 4 ++-- libisofs/aaip-os-linux.c | 4 ++-- libisofs/aaip_0_2.c | 2 +- libisofs/aaip_0_2.h | 4 ++-- libisofs/data_source.c | 2 +- libisofs/ecma119.c | 6 +++--- libisofs/ecma119.h | 4 ++-- libisofs/ecma119_tree.c | 6 +++--- libisofs/eltorito.c | 4 ++-- libisofs/fs_image.c | 4 ++-- libisofs/fsource.h | 4 ++-- libisofs/image.h | 4 ++-- libisofs/libiso_msgs.h | 7 ++++--- libisofs/libisofs.h | 26 +++++++++++++------------- libisofs/messages.c | 4 ++-- libisofs/node.c | 6 +++--- libisofs/node.h | 4 ++-- libisofs/stream.h | 6 +++--- libisofs/writer.h | 4 ++-- 23 files changed, 62 insertions(+), 61 deletions(-) diff --git a/README b/README index d501708..9cfdbb7 100644 --- a/README +++ b/README @@ -4,7 +4,7 @@ Released under GPL (see COPYING file for details). -Copyright (C) 2008 - 2015 Vreixo Formoso, +Copyright (C) 2008 - 2016 Vreixo Formoso, Mario Danic, Vladimir Serbinenko, Thomas Schmitt @@ -14,7 +14,7 @@ libisofs is part of the libburnia project (libburnia-project.org) Download, Build and Installation -libisofs code is mantained in a Bazaar repository at Launchpad +libisofs code is maintained in a Bazaar repository at Launchpad (https://launchpad.net/libisofs/). You can download it with: $ bzr branch lp:libisofs/for-libisoburn diff --git a/demo/demo.c b/demo/demo.c index f531564..99871fe 100644 --- a/demo/demo.c +++ b/demo/demo.c @@ -1,6 +1,6 @@ /* - * Copyright (c) 2007 - 2015 Vreixo Formoso, Thomas Schmitt + * Copyright (c) 2007 - 2016 Vreixo Formoso, Thomas Schmitt * * This file is part of the libisofs project; you can redistribute it and/or * modify it under the terms of the GNU General Public License version 2 @@ -375,7 +375,7 @@ int gesture_iso(int argc, char **argv) result = iso_write_opts_new(&opts, 0); if (result < 0) { - printf ("Cant create write opts, error %d\n", result); + printf ("Cannot create write opts, error %d\n", result); goto ex; } iso_write_opts_set_iso_level(opts, level); @@ -385,7 +385,7 @@ int gesture_iso(int argc, char **argv) result = iso_image_create_burn_source(image, opts, &burn_src); if (result < 0) { - printf ("Cant create image, error %d\n", result); + printf ("Cannot create image, error %d\n", result); goto ex; } @@ -904,7 +904,7 @@ int gesture_iso_ms(int argc, char **argv) result = iso_image_create_burn_source(image, opts, &burn_src); if (result < 0) { - printf ("Cant create image, error %d\n", result); + printf ("Cannot create image, error %d\n", result); goto ex; } iso_write_opts_free(opts); diff --git a/doc/checksums.txt b/doc/checksums.txt index b716e1f..b738438 100644 --- a/doc/checksums.txt +++ b/doc/checksums.txt @@ -189,7 +189,7 @@ With tag type 2: Keep the original MD5 context of the data blocks and clone one for obtaining the MD5 bytes. -If the MD5s match, then compute the checksum block and all folowing ones into +If the MD5s match, then compute the checksum block and all following ones into the kept MD5 context and go on with reading and computing for the tree checksum tag. This will be found at block address next_tag, verified and parsed by: iso_util_decode_md5_tag(block, &tag_type, &pos, @@ -211,7 +211,7 @@ next_tag. Go on by looking for tag type 2 and follow above prescription. Checking the Data Part of the Session -In order to check the trustworthyness of a whole session, continue reading +In order to check the trustworthiness of a whole session, continue reading and checksumming after the tree was verified. Read and checksum the blocks. When reaching block address next_tag (from the diff --git a/doc/susp_aaip_2_0.txt b/doc/susp_aaip_2_0.txt index 5d7bc5e..c79bfb0 100644 --- a/doc/susp_aaip_2_0.txt +++ b/doc/susp_aaip_2_0.txt @@ -235,7 +235,7 @@ An eventually needed qualifier is stored in one or more Qualifier Records. [b] "BP 2 - Qualifier Record Head" shall be present only if QUALIFIER is set to 1. It shall give the number of Qualifier Bytes and eventually indicate that the qualifier continues in a Qualifier Record which comes - imediately after this record. + immediately after this record. 0 to 127 Q_LENGTH, the qualifier is complete by this record 128 to 255 Q_LENGTH+128, the qualifier is continued by next record So a Qualifier Record can contain at most 127 Qualifier Bytes. diff --git a/libisofs/aaip-os-freebsd.c b/libisofs/aaip-os-freebsd.c index ac8f89f..41ab412 100644 --- a/libisofs/aaip-os-freebsd.c +++ b/libisofs/aaip-os-freebsd.c @@ -5,9 +5,9 @@ Arbitrary Attribute Interchange Protocol , system adapter for getting and setting of ACLs and xattr. - To be included by aaip_0_2.c for FreeBSD and NetBSD + To be included by aaip_0_2.c for FreeBSD, NetBSD, and OpenBSD - Copyright (c) 2009 - 2014 Thomas Schmitt, libburnia project, GPLv2+ + Copyright (c) 2009 - 2016 Thomas Schmitt, libburnia project, GPLv2+ */ diff --git a/libisofs/aaip-os-linux.c b/libisofs/aaip-os-linux.c index 65630d1..11b7b34 100644 --- a/libisofs/aaip-os-linux.c +++ b/libisofs/aaip-os-linux.c @@ -7,7 +7,7 @@ To be included by aaip_0_2.c for Linux - Copyright (c) 2009 - 2011 Thomas Schmitt, libburnia project, GPLv2+ + Copyright (c) 2009 - 2016 Thomas Schmitt, libburnia project, GPLv2+ */ @@ -443,7 +443,7 @@ ex: I.e. those with a name which does not begin by "user." bit5= in case of symbolic link: manipulate link target - bit6= tolerate inappropriate presence or absense of + bit6= tolerate inappropriate presence or absence of directory default ACL @return 1 success -1 error memory allocation diff --git a/libisofs/aaip_0_2.c b/libisofs/aaip_0_2.c index f4f8bcd..d26e36b 100644 --- a/libisofs/aaip_0_2.c +++ b/libisofs/aaip_0_2.c @@ -648,7 +648,7 @@ ex:; mission bits. */ -/* Analyze occurence of ACL tag types in long text form. If not disabled by +/* Analyze occurrence of ACL tag types in long text form. If not disabled by parameter flag remove the entries of type "user::" , "group::" , "other::" , or "other:" from an ACL in long text form if they match the bits in st_mode as described by man 2 stat and man 5 acl. diff --git a/libisofs/aaip_0_2.h b/libisofs/aaip_0_2.h index 5cfaa5f..784e565 100644 --- a/libisofs/aaip_0_2.h +++ b/libisofs/aaip_0_2.h @@ -9,7 +9,7 @@ test/aaip_0_2.h - Public declarations - Copyright (c) 2009 Thomas Schmitt, libburnia project, GPLv2+ + Copyright (c) 2009 - 2016 Thomas Schmitt, libburnia project, GPLv2+ */ @@ -93,7 +93,7 @@ int aaip_encode_both_acl(char *a_acl_text, char *d_acl_text, mode_t st_mode, size_t *result_len, unsigned char **result, int flag); -/* Analyze occurence of ACL tag types in long text form. If not disabled by +/* Analyze occurrence of ACL tag types in long text form. If not disabled by parameter flag remove the entries of type "user::" , "group::" , "other::" , or "other:" from an ACL in long text form if they match the bits in st_mode as described by man 2 stat and man 5 acl. diff --git a/libisofs/data_source.c b/libisofs/data_source.c index 9abb0e3..da20551 100644 --- a/libisofs/data_source.c +++ b/libisofs/data_source.c @@ -145,7 +145,7 @@ void ds_free_data(IsoDataSource *src) /** * Create a new IsoDataSource from a local file. This is suitable for - * accessing regular .iso images, or to acces drives via its block device + * accessing regular .iso images, or to access drives via its block device * and standard POSIX I/O calls. * * @param path diff --git a/libisofs/ecma119.c b/libisofs/ecma119.c index b5fd390..d584dcc 100644 --- a/libisofs/ecma119.c +++ b/libisofs/ecma119.c @@ -1,7 +1,7 @@ /* * Copyright (c) 2007 Vreixo Formoso * Copyright (c) 2007 Mario Danic - * Copyright (c) 2009 - 2015 Thomas Schmitt + * Copyright (c) 2009 - 2016 Thomas Schmitt * * This file is part of the libisofs project; you can redistribute it and/or * modify it under the terms of the GNU General Public License version 2 @@ -193,7 +193,7 @@ size_t calc_dirent_len(Ecma119Image *t, Ecma119Node *n) /** * Computes the total size of all directory entries of a single dir, - * acording to ECMA-119 6.8.1.1 + * according to ECMA-119 6.8.1.1 * * This also take into account the size needed for RR entries and * SUSP continuation areas (SUSP, 5.1). @@ -2338,7 +2338,7 @@ int ecma119_image_new(IsoImage *src, IsoWriteOpts *in_opts, Ecma119Image **img) if (target == NULL) { return ISO_OUT_OF_MEM; } - /* This reference will be transfered to the burn_source and released by + /* This reference will be transferred to the burn_source and released by bs_free_data. */ target->refcount = 1; diff --git a/libisofs/ecma119.h b/libisofs/ecma119.h index c0056f4..601dff9 100644 --- a/libisofs/ecma119.h +++ b/libisofs/ecma119.h @@ -59,7 +59,7 @@ #define ISO_DISC_LABEL_SIZE 129 -/* The maximum lenght of an specs violating ECMA-119 file identifier. +/* The maximum length of an specs violating ECMA-119 file identifier. The theoretical limit is 254 - 34 - 28 (len of SUSP CE entry) = 192 Currently the practical limit is 254 - 34 - 96 (non-CE RR entries) - 28 (CE) */ @@ -223,7 +223,7 @@ struct iso_write_opts { /** * Write AAIP as extension according to SUSP 1.10 rather than SUSP 1.12. * I.e. without announcing it by an ER field and thus without the need - * to preceed the RRIP fields by an ES and to preceed the AA field by ES. + * to precede the RRIP fields by an ES and to precede the AA field by ES. * This saves bytes and might avoid problems with readers which dislike * ER fields other than the ones for RRIP. * On the other hand, SUSP 1.12 frowns on such unannounced extensions diff --git a/libisofs/ecma119_tree.c b/libisofs/ecma119_tree.c index bc9e8fc..5b6965d 100644 --- a/libisofs/ecma119_tree.c +++ b/libisofs/ecma119_tree.c @@ -1,6 +1,6 @@ /* * Copyright (c) 2007 Vreixo Formoso - * Copyright (c) 2009 - 2014 Thomas Schmitt + * Copyright (c) 2009 - 2016 Thomas Schmitt * * This file is part of the libisofs project; you can redistribute it and/or * modify it under the terms of the GNU General Public License version 2 @@ -597,7 +597,7 @@ int cmp_node_name(const void *f1, const void *f2) /** * Sorts a the children of each directory in the ECMA-119 tree represented - * by \p root, acording to the order specified in ECMA-119, section 9.3. + * by \p root, according to the order specified in ECMA-119, section 9.3. */ static void sort_tree(Ecma119Node *root) @@ -1270,7 +1270,7 @@ int ecma119_tree_create(Ecma119Image *img) if (img->opts->rockridge && !img->opts->allow_deep_paths) { - /* Relocate deep directories, acording to RRIP, 4.1.5 */ + /* Relocate deep directories, according to RRIP, 4.1.5 */ ret = reorder_tree(img, root, 1, 0); if (ret < 0) { return ret; diff --git a/libisofs/eltorito.c b/libisofs/eltorito.c index f5d3152..2c622b9 100644 --- a/libisofs/eltorito.c +++ b/libisofs/eltorito.c @@ -1,6 +1,6 @@ /* * Copyright (c) 2007 Vreixo Formoso - * Copyright (c) 2010 - 2015 Thomas Schmitt + * Copyright (c) 2010 - 2016 Thomas Schmitt * * This file is part of the libisofs project; you can redistribute it and/or * modify it under the terms of the GNU General Public License version 2 @@ -290,7 +290,7 @@ int iso_tree_add_boot_node(IsoDir *parent, const char *name, IsoBoot **boot) node->size = 0; node->content = NULL; - /* atributes from parent */ + /* attributes from parent */ node->node.mode = S_IFREG | (parent->node.mode & 0444); node->node.uid = parent->node.uid; node->node.gid = parent->node.gid; diff --git a/libisofs/fs_image.c b/libisofs/fs_image.c index d69e24e..0ddab6c 100644 --- a/libisofs/fs_image.c +++ b/libisofs/fs_image.c @@ -1,6 +1,6 @@ /* * Copyright (c) 2007 Vreixo Formoso - * Copyright (c) 2009 - 2015 Thomas Schmitt + * Copyright (c) 2009 - 2016 Thomas Schmitt * * This file is part of the libisofs project; you can redistribute it and/or * modify it under the terms of the GNU General Public License version 2 @@ -3598,7 +3598,7 @@ int iso_image_eval_boot_info_table(IsoImage *image, struct iso_read_opts *opts, boot_pvd_found = iso_read_lsb(boot_info_found, 4); image_pvd = (uint32_t) (opts->block + 16); - /* Accomodate to eventually relocated superblock */ + /* Accommodate to eventually relocated superblock */ if (image_pvd != boot_pvd_found && image_pvd == 16 && boot_pvd_found < iso_image_size) { /* Check whether there is a PVD at boot_pvd_found diff --git a/libisofs/fsource.h b/libisofs/fsource.h index dfb6a45..3ec897c 100644 --- a/libisofs/fsource.h +++ b/libisofs/fsource.h @@ -1,6 +1,6 @@ /* * Copyright (c) 2007 Vreixo Formoso - * Copyright (c) 2009 - 2015 Thomas Schmitt + * Copyright (c) 2009 - 2016 Thomas Schmitt * * This file is part of the libisofs project; you can redistribute it and/or * modify it under the terms of the GNU General Public License version 2 @@ -28,7 +28,7 @@ * Create a new IsoFilesystem to deal with local filesystem. * * @return - * 1 sucess, < 0 error + * 1 success, < 0 error */ int iso_local_filesystem_new(IsoFilesystem **fs); diff --git a/libisofs/image.h b/libisofs/image.h index d23771a..c1cebdc 100644 --- a/libisofs/image.h +++ b/libisofs/image.h @@ -1,6 +1,6 @@ /* * Copyright (c) 2007 Vreixo Formoso - * Copyright (c) 2009 - 2015 Thomas Schmitt + * Copyright (c) 2009 - 2016 Thomas Schmitt * * This file is part of the libisofs project; you can redistribute it and/or * modify it under the terms of the GNU General Public License version 2 @@ -31,7 +31,7 @@ * Global objects such as the message_queues must belogn to that * context. Thus we will have, for example, a msg queue per image, * so images are completelly independent and can be managed together. - * (Usefull, for example, in Multiple-Document-Interface GUI apps. + * (Useful, for example, in Multiple-Document-Interface GUI apps. * [The stuff we have in init belongs really to image!] */ diff --git a/libisofs/libiso_msgs.h b/libisofs/libiso_msgs.h index aa4b3c2..f03096f 100644 --- a/libisofs/libiso_msgs.h +++ b/libisofs/libiso_msgs.h @@ -1,7 +1,7 @@ /* libiso_msgs (generated from libdax_msgs : Fri Feb 22 19:42:52 CET 2008) Message handling facility of libisofs. - Copyright (C) 2006-2008 Thomas Schmitt , + Copyright (C) 2006-2016 Thomas Schmitt , provided under GPL version 2 or later */ @@ -266,8 +266,9 @@ int libiso_msgs_new(struct libiso_msgs **m, int flag); /** Destroy a message handling facility and all its eventual messages. The submitted pointer gets set to NULL. - Actually only the last destroy call of all offical references to the object - will really dispose it. All others just decrement the reference counter. + Actually only the last destroy call of all official references to the + object will really dispose it. All others just decrement the reference + counter. Call this function only with official reference pointers obtained by libiso_msgs_new() or libiso_msgs_refer(), and only once per such pointer. @param flag Bitfield for control purposes (unused yet, submit 0) diff --git a/libisofs/libisofs.h b/libisofs/libisofs.h index da3143e..2e051ad 100644 --- a/libisofs/libisofs.h +++ b/libisofs/libisofs.h @@ -167,7 +167,7 @@ typedef struct Iso_Image IsoImage; * A node in the iso tree, i.e. a file that will be written to image. * * It can represent any kind of files. When needed, you can get the type with - * iso_node_get_type() and cast it to the appropiate subtype. Useful macros + * iso_node_get_type() and cast it to the appropriate subtype. Useful macros * are provided, see below. * * @since 0.6.2 @@ -1257,7 +1257,7 @@ char *iso_get_local_charset(int flag); * @param image * Location where the image pointer will be stored. * @return - * 1 sucess, < 0 error + * 1 success, < 0 error * * @since 0.6.2 */ @@ -1376,7 +1376,7 @@ int iso_write_opts_set_iso_level(IsoWriteOpts *opts, int level); * resulting image will have long filenames (up to 255 characters), deeper * directory structure, POSIX permissions and owner info on files and * directories, support for symbolic links or special files... All that - * attributes can be modified/setted with the appropiate function. + * attributes can be modified/set with the appropriate function. * * @param opts * The option set to be manipulated. @@ -1812,7 +1812,7 @@ int iso_write_opts_set_rrip_1_10_px_ino(IsoWriteOpts *opts, int enable); /** * Write AAIP as extension according to SUSP 1.10 rather than SUSP 1.12. * I.e. without announcing it by an ER field and thus without the need - * to preceed the RRIP fields and the AAIP field by ES fields. + * to precede the RRIP fields and the AAIP field by ES fields. * This saves 5 to 10 bytes per file and might avoid problems with readers * which dislike ER fields other than the ones for RRIP. * On the other hand, SUSP 1.12 frowns on such unannounced extensions @@ -2358,7 +2358,7 @@ int iso_write_opts_set_part_offset(IsoWriteOpts *opts, #define iso_libjte_req_micro 0 /** - * Associate a libjte environment object to the upcomming write run. + * Associate a libjte environment object to the upcoming write run. * libjte implements Jigdo Template Extraction as of Steve McIntyre and * Richard Atterer. * The call will fail if no libjte support was enabled at compile time. @@ -4255,7 +4255,7 @@ int iso_image_get_system_area(IsoImage *img, char data[32768], * Else it will consist of lines as described in ISO_SYSAREA_REPORT_DOC above. * * File paths and other long texts are reported as "(too long to show here)" - * if their length plus preceeding text plus trailing 0-byte exceeds the + * if their length plus preceding text plus trailing 0-byte exceeds the * line length limit of ISO_MAX_SYSAREA_LINE_LENGTH bytes. * Texts which may contain whitespace or unprintable characters will start * at fixed positions and extend to the end of the line. @@ -5237,7 +5237,7 @@ int iso_dir_iter_take(IsoDirIter *iter); * The node removed will be the one returned by the previous iteration. * * It is not allowed to call this function twice without calling - * iso_dir_iter_next inbetween. + * iso_dir_iter_next between the calls. * * @return * 1 on succes, < 0 error @@ -5485,7 +5485,7 @@ int iso_symlink_set_dest(IsoSymlink *link, const char *dest); * or regular files, this function has no effect. * @param w * The weight as a integer number, the greater this value is, the - * closer from the begining of image the file will be written. + * closer from the beginning of image the file will be written. * Default value at IsoNode creation is 0. * * @since 0.6.2 @@ -6239,7 +6239,7 @@ int iso_tree_clone(IsoNode *node, * Add the contents of a dir to a given directory of the iso tree. * * There are several options to control what files are added or how they are - * managed. Take a look at iso_tree_set_* functions to see diferent options + * managed. Take a look at iso_tree_set_* functions to see different options * for recursive directory addition. * * TODO comment Builder and Filesystem related issues when exposing both @@ -6432,7 +6432,7 @@ int iso_set_msgs_severities(char *queue_severity, char *print_severity, * will discard the whole queue. * * @param minimum_severity - * Threshhold + * Threshold * @param error_code * Will become a unique error code as listed at the end of this header * @param imgid @@ -7260,7 +7260,7 @@ mode_t iso_node_get_perms_wo_acl(const IsoNode *node); * @param names * Will return an array of pointers to 0-terminated names * @param value_lengths - * Will return an arry with the lenghts of values + * Will return an array with the lengths of values * @param values * Will return an array of pointers to strings of 8-bit bytes * @param flag @@ -7286,7 +7286,7 @@ int iso_node_get_attrs(IsoNode *node, size_t *num_attrs, * @param name * The xattr name that shall be looked up. * @param value_length - * Will return the lenght of value + * Will return the length of value * @param value * Will return a string of 8-bit bytes. free() it when no longer needed. * @param flag @@ -7469,7 +7469,7 @@ int iso_local_get_perms_wo_acl(char *disk_path, mode_t *st_mode, int flag); * @param names * Will return an array of pointers to 0-terminated names * @param value_lengths - * Will return an arry with the lenghts of values + * Will return an array with the lengths of values * @param values * Will return an array of pointers to 8-bit values * @param flag diff --git a/libisofs/messages.c b/libisofs/messages.c index c6fb194..b344281 100644 --- a/libisofs/messages.c +++ b/libisofs/messages.c @@ -1,6 +1,6 @@ /* * Copyright (c) 2007 Vreixo Formoso - * Copyright (c) 2009 - 2015 Thomas Schmitt + * Copyright (c) 2009 - 2016 Thomas Schmitt * * This file is part of the libisofs project; you can redistribute it and/or * modify it under the terms of the GNU General Public License version 2 @@ -157,7 +157,7 @@ int iso_init_with_flag(int flag) #ifdef Libisofs_with_libjtE /* Ugly compile time check for header version compatibility. - If everthing matches, then it produces no C code. In case of mismatch, + If everything matches, then it produces no C code. In case of mismatch, intentionally faulty C code will be inserted. */ /* The indendation is an advise of man gcc to help old compilers ignoring */ diff --git a/libisofs/node.c b/libisofs/node.c index a955038..5825897 100644 --- a/libisofs/node.c +++ b/libisofs/node.c @@ -1,6 +1,6 @@ /* * Copyright (c) 2007 Vreixo Formoso - * Copyright (c) 2009 - 2015 Thomas Schmitt + * Copyright (c) 2009 - 2016 Thomas Schmitt * * This file is part of the libisofs project; you can redistribute it and/or * modify it under the terms of the GNU General Public License version 2 @@ -1114,7 +1114,7 @@ int iso_symlink_set_dest(IsoSymlink *link, const char *dest) * or regular files, this function has no effect. * @param w * The weight as a integer number, the greater this value is, the - * closer from the begining of image the file will be written. + * closer from the beginning of image the file will be written. */ void iso_node_set_sort_weight(IsoNode *node, int w) { @@ -1818,7 +1818,7 @@ int attr_enlarge_list(char ***names, size_t **value_lengths, char ***values, /* Merge attribute list of node and given new attribute list into attribute list returned by m_* parameters. - The m_* paramters have finally to be freed by a call with bit15 set. + The m_* parameters have finally to be freed by a call with bit15 set. @param flag Bitfield for control purposes bit0= delete all old names which begin by "user." (but not if bit2 is set) diff --git a/libisofs/node.h b/libisofs/node.h index b4b07bf..d6681ce 100644 --- a/libisofs/node.h +++ b/libisofs/node.h @@ -1,6 +1,6 @@ /* * Copyright (c) 2007 Vreixo Formoso - * Copyright (c) 2009 - 2011 Thomas Schmitt + * Copyright (c) 2009 - 2016 Thomas Schmitt * * This file is part of the libisofs project; you can redistribute it and/or * modify it under the terms of the GNU General Public License version 2 @@ -487,7 +487,7 @@ int iso_node_cmp_flag(IsoNode *n1, IsoNode *n2, int flag); /** - * Set the checksum index (typically comming from IsoFileSrc.checksum_index) + * Set the checksum index (typically coming from IsoFileSrc.checksum_index) * of a regular file node. The index is encoded as xattr "isofs.cx" with * four bytes of value. */ diff --git a/libisofs/stream.h b/libisofs/stream.h index 90d9ba9..31bccea 100644 --- a/libisofs/stream.h +++ b/libisofs/stream.h @@ -1,6 +1,6 @@ /* * Copyright (c) 2007 Vreixo Formoso - * Copyright (c) 2009 - 2011 Thomas Schmitt + * Copyright (c) 2009 - 2016 Thomas Schmitt * * This file is part of the libisofs project; you can redistribute it and/or * modify it under the terms of the GNU General Public License version 2 @@ -41,7 +41,7 @@ void iso_stream_get_file_name(IsoStream *stream, char *name); * take an extra ref. * * @return - * 1 sucess, < 0 error + * 1 success, < 0 error * Possible errors: * */ @@ -52,7 +52,7 @@ int iso_file_source_stream_new(IsoFileSource *src, IsoStream **stream); * The stream will add a ref. to the IsoFileSource. * * @return - * 1 sucess, < 0 error + * 1 success, < 0 error */ int iso_cut_out_stream_new(IsoFileSource *src, off_t offset, off_t size, IsoStream **stream); diff --git a/libisofs/writer.h b/libisofs/writer.h index 1b52d5f..a3cc82e 100644 --- a/libisofs/writer.h +++ b/libisofs/writer.h @@ -29,13 +29,13 @@ struct Iso_Image_Writer }; /** - * This is the function all Writers shoudl call to write data to image. + * This is the function all Writers should call to write data to image. * Currently, it is just a wrapper for write(2) Unix system call. * * It is implemented in ecma119.c * * @return - * 1 on sucess, < 0 error + * 1 on success, < 0 error */ int iso_write(Ecma119Image *target, void *buf, size_t count);