Browse Source

Pull in gdtoa.h instead of declaring __dtoa() and __freedtoa() directly

ok deraadt@
OPENBSD_5_5
guenther 11 years ago
parent
commit
9c2ecb2a8e
2 changed files with 4 additions and 7 deletions
  1. +2
    -3
      src/lib/libc/stdlib/ecvt.c
  2. +2
    -4
      src/lib/libc/stdlib/gcvt.c

+ 2
- 3
src/lib/libc/stdlib/ecvt.c View File

@ -1,4 +1,4 @@
/* $OpenBSD: ecvt.c,v 1.7 2009/10/16 12:15:03 martynas Exp $ */
/* $OpenBSD: ecvt.c,v 1.8 2013/11/01 19:05:11 guenther Exp $ */
/*
* Copyright (c) 2002, 2006 Todd C. Miller <Todd.Miller@courtesan.com>
@ -23,9 +23,8 @@
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include "gdtoa.h"
extern char *__dtoa(double, int, int, int *, int *, char **);
extern void __freedtoa(char *);
static char *__cvt(double, int, int *, int *, int, int);
static char *


+ 2
- 4
src/lib/libc/stdlib/gcvt.c View File

@ -1,4 +1,4 @@
/* $OpenBSD: gcvt.c,v 1.12 2010/09/25 13:19:19 millert Exp $ */
/* $OpenBSD: gcvt.c,v 1.13 2013/11/01 19:05:11 guenther Exp $ */
/*
* Copyright (c) 2002, 2003, 2006, 2010
@ -25,9 +25,7 @@
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
extern char *__dtoa(double, int, int, int *, int *, char **);
extern void __freedtoa(char *);
#include "gdtoa.h"
#define DEFPREC 6


Loading…
Cancel
Save