Fix losetup so that it A) actually works again, B) has much better error
[oweals/busybox.git] / libbb / safe_write.c
index dd35f35aee01b38444f8587622708fd6a3e6e123..201ea1cd32a12a13e24fc6bc6f28ba6c2a94cf12 100644 (file)
@@ -2,7 +2,7 @@
 /*
  * Utility routines.
  *
- * Copyright (C) 1999-2003 by Erik Andersen <andersen@codepoet.org>
+ * Copyright (C) 1999-2004 by Erik Andersen <andersen@codepoet.org>
  *
  * This program is free software; you can redistribute it and/or modify
  * it under the terms of the GNU General Public License as published by
@@ -26,7 +26,7 @@
 
 
 
-ssize_t safe_write(int fd, void *buf, size_t count)
+ssize_t safe_write(int fd, const void *buf, size_t count)
 {
        ssize_t n;