X-Git-Url: http://erislabs.net/gitweb/?a=blobdiff_plain;f=lib%2Fmkstemp-safer.c;h=c8c5bbd6e43701eaeab626da1c4edf4e5ce99a00;hb=11f037c25793b02c701776d88087ae7d419cbe93;hp=5ae3413f040e62b491c7b8d6b2f3674c8422bee6;hpb=92f84c96a6048855f3cefa6aa18541589884d8e6;p=gnulib.git diff --git a/lib/mkstemp-safer.c b/lib/mkstemp-safer.c index 5ae3413f0..c8c5bbd6e 100644 --- a/lib/mkstemp-safer.c +++ b/lib/mkstemp-safer.c @@ -1,6 +1,6 @@ /* Invoke mkstemp, but avoid some glitches. - Copyright (C) 2005 Free Software Foundation, Inc. + Copyright (C) 2005, 2006 Free Software Foundation, Inc. This program is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by @@ -18,20 +18,18 @@ /* Written by Paul Eggert. */ -#ifdef HAVE_CONFIG_H -# include -#endif +#include #include "stdlib-safer.h" -#include +#include "mkstemp.h" #include "unistd-safer.h" /* Like mkstemp, but do not return STDIN_FILENO, STDOUT_FILENO, or STDERR_FILENO. */ int -mkstemp_safer (char *template) +mkstemp_safer (char *templ) { - return fd_safer (mkstemp (template)); + return fd_safer (mkstemp (templ)); }