X-Git-Url: http://git.tuebingen.mpg.de/?a=blobdiff_plain;f=osl_core.h;h=966ef6fd5bde16747f968a2dbd788269db772e0c;hb=55f0ec4ba380864a06f14a7ea5793407e88def87;hp=a6342f8e74db1aa5174e0bfea2a6e128de1b8add;hpb=f57b24f2f5b6d8ce5ca0d5ad67b5c086695d8eb2;p=osl.git diff --git a/osl_core.h b/osl_core.h index a6342f8..966ef6f 100644 --- a/osl_core.h +++ b/osl_core.h @@ -9,7 +9,7 @@ #include "rbtree.h" #include "hash.h" -static __must_check __printf_1_2 __malloc char *make_message(const char *fmt, ...); +__must_check __printf_1_2 __malloc char *make_message(const char *fmt, ...); /** Internal representation of a column of an osl table. */ struct osl_column { @@ -473,23 +473,6 @@ _static_inline_ char *disk_storage_name_of_hash(const struct osl_table *t, HASH_ return strdup(asc); } -/** - * A wrapper for rename(2). - * - * \param old_path The source path. - * \param new_path The destination path. - * - * \return Standard. - * - * \sa rename(2). - */ -_static_inline_ int para_rename(const char *old_path, const char *new_path) -{ - if (rename(old_path, new_path) < 0) - return -ERRNO_TO_ERROR(errno); - return 1; -} - /** * Iterate over each column of an initialized table. *