浏览代码

fix warning about __random() not being a prototype

Mike Frysinger 19 年之前
父节点
当前提交
098d18a9a4
共有 1 个文件被更改,包括 1 次插入1 次删除
  1. 1 1
      libc/stdlib/random.c

+ 1 - 1
libc/stdlib/random.c

@@ -246,7 +246,7 @@ char * setstate (char *arg_state)
    rear pointers can't wrap on the same call by not testing the rear
    pointer if the front one has wrapped.  Returns a 31-bit random number.  */
 
-long int attribute_hidden __random ()
+long int attribute_hidden __random (void)
 {
   int32_t retval;