]> git.tuebingen.mpg.de Git - paraslash.git/blobdiff - osl_core.h
http_send.c: Fix a bug in http_post_select().
[paraslash.git] / osl_core.h
index 599d22da6146c8cb88c5330a1a347c4b3b88c756..e18717895a5f3023bdee8452757f9f4a2643cef9 100644 (file)
@@ -1,5 +1,5 @@
 /*
- * Copyright (C) 2007 Andre Noll <maan@systemlinux.org>
+ * Copyright (C) 2007-2008 Andre Noll <maan@systemlinux.org>
  *
  * Licensed under the GPL v2. For licencing details see COPYING.
  */
@@ -441,7 +441,7 @@ _static_inline_ struct osl_row *get_row_pointer(const struct rb_node *node,
  */
 static inline void hash_object(const struct osl_object *obj, HASH_TYPE *hash)
 {
-       return hash_function(obj->data, obj->size, hash);
+       hash_function(obj->data, obj->size, hash);
 }
 
 /**
@@ -476,14 +476,14 @@ static inline char *disk_storage_name_of_hash(const struct osl_table *t, HASH_TY
  * \param old_path The source path.
  * \param new_path The destination path.
  *
- * \return positive in success, \p -E_RENAME on errors.
+ * \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 -E_RENAME;
+               return -ERRNO_TO_PARA_ERROR(errno);
        return 1;
 }