diff options
| author | Mattias Andrée <m@maandree.se> | 2026-02-22 14:37:56 +0100 |
|---|---|---|
| committer | Mattias Andrée <m@maandree.se> | 2026-02-22 14:37:56 +0100 |
| commit | 83b77c85d91231eba033f12fe16088aee6f4b276 (patch) | |
| tree | 555ebcc34024c78b109e9796c580e44861f3299d /src | |
| parent | Update e-mail (diff) | |
| download | librarian-master.tar.gz librarian-master.tar.bz2 librarian-master.tar.xz | |
Signed-off-by: Mattias Andrée <m@maandree.se>
Diffstat (limited to 'src')
| -rw-r--r-- | src/librarian.c | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/src/librarian.c b/src/librarian.c index 7c1bd8f..d4265a4 100644 --- a/src/librarian.c +++ b/src/librarian.c @@ -71,7 +71,7 @@ struct library { /** * Is the version stored in - * `ypper` acceptable. + * `upper` acceptable. */ int upper_closed; }; @@ -155,7 +155,7 @@ static int found_file_name_cmp(const void *a, const void *b) * name of a non-reserved variable. * * @param s The string. - * @return 1: The string is a varible name. + * @return 1: The string is a variable name. * 0: The string is a library. */ static int is_variable(const char *s) @@ -239,7 +239,7 @@ static int version_subcmp(char *a, char *b) while (*a || *b) { /* Compare digit part. */ - /* (We must support arbitrary lenght.) */ + /* (We must support arbitrary length.) */ ap = a + strspn(a, "0123456789"); bp = b + strspn(b, "0123456789"); while (*a == '0') a++; @@ -332,7 +332,7 @@ static int test_library_version(char *version, struct library *required) * * @param lib Library specification. * @param path The pathname of the directory. - * @param oldest Are older versions prefered? + * @param oldest Are older versions preferred? * @return The pathname of the library's librarian file. * `NULL` on error or if not found, if not found, * `errno` is set to 0. @@ -398,7 +398,7 @@ fail: * * @param lib Library specification. * @param path LIBRARIAN_PATH. - * @param oldest Are older versions prefered? + * @param oldest Are older versions preferred? * @return The pathname of the library's librarian file. * `NULL` on error or if not found, if not found, * `errno` is set to 0. @@ -455,7 +455,7 @@ fail: * @param libraries The sought libraries. * @param n The number of elements in `libraries`. * @param path LIBRARIAN_PATH. - * @param oldest Are older versions prefered? + * @param oldest Are older versions preferred? * @return 0: Successful and found all files. * -1 and !errno: Did not find all files, but otherwise successful. * -1 and errno: An error occurred |
