A lot of cleanups as well as minor API changes.
[libgcrypt.git] / src / getrandom.c
index cf31eeb..9123c0c 100644 (file)
@@ -66,7 +66,7 @@ writen (int fd, const void *buffer, size_t length)
            return -1; /* write error */
          }
       length -= n;
-      buffer += n;
+      buffer = (const char *)buffer + n;
     }
   return 0;  /* Okay */
 }