Browse Source

Fix prototype

Eric Andersen 22 years ago
parent
commit
c85e07fe25
1 changed files with 2 additions and 2 deletions
  1. 2 2
      libc/stdlib/gcvt.c

+ 2 - 2
libc/stdlib/gcvt.c

@@ -1,9 +1,9 @@
-
+#include <stdio.h>
 #include <stdlib.h>
 
 #ifdef __UCLIBC_HAS_FLOATS__
 #define MAX_NDIGIT 17
-char * gcvt(double number, size_t ndigit, char* buf)
+char *gcvt (double number, int ndigit, char *buf)
 {
     sprintf(buf, "%.*g", (ndigit > MAX_NDIGIT)? MAX_NDIGIT : ndigit, number);
     return buf;