Browse Source

- note that __drand48_iterate should be void

Bernhard Reutner-Fischer 16 years ago
parent
commit
e969404db0
2 changed files with 4 additions and 0 deletions
  1. 1 0
      TODO
  2. 3 0
      libc/stdlib/drand48-iter.c

+ 1 - 0
TODO

@@ -143,6 +143,7 @@ Manuel's todo:
   d) Implement glibc 'a' flag for scanf string conversions.
   e) Allow use of the older non-table-based ctype functions when using
      stub locale support. (smaller)
+  f) __drand48_iterate should be void
 
   2) Additional str{f|p}time issues.
   ----------------------------------

+ 3 - 0
libc/stdlib/drand48-iter.c

@@ -26,6 +26,9 @@
 /* Global state for non-reentrant functions.  */
 struct drand48_data __libc_drand48_data attribute_hidden;
 
+#ifdef __UCLIBC_MJN3_ONLY__
+#warning turn int __drand48_iterate into void
+#endif /* __UCLIBC_MJN3_ONLY__ */
 int __drand48_iterate (unsigned short int xsubi[3], struct drand48_data *buffer) attribute_hidden;
 int __drand48_iterate (unsigned short int xsubi[3], struct drand48_data *buffer)
 {