Commit 91153302 authored by Andreas Gustafsson's avatar Andreas Gustafsson

coding style

parent 3bd4083e
......@@ -15,7 +15,7 @@
* WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
*/
/* $Id: file.h,v 1.21 2001/07/16 03:52:08 mayer Exp $ */
/* $Id: file.h,v 1.22 2001/07/16 04:09:42 gson Exp $ */
#ifndef ISC_FILE_H
#define ISC_FILE_H 1
......@@ -216,17 +216,17 @@ isc_file_template(const char *path, const char *templet, char *buf,
* such that path can be renamed to buf atomically.
*/
/*
* Rename 'file' using 'templet' as a template for the new file name.
*/
isc_result_t
isc_file_renameunique(const char *file, char *templet);
/*
* Given a file name, return the fully qualified path to the file
*
* Rename 'file' using 'templet' as a template for the new file name.
*/
isc_result_t
isc_file_getabsolutepath(const char *filename, char *path, size_t pathlen);
/*
* Given a file name, return the fully qualified path to the file.
*/
/*
* XXX We should also have a isc_file_writeeopen() function
......
......@@ -15,7 +15,7 @@
* WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
*/
/* $Id: file.c,v 1.16 2001/07/16 03:52:09 mayer Exp $ */
/* $Id: file.c,v 1.17 2001/07/16 04:09:44 gson Exp $ */
#include <config.h>
......@@ -389,9 +389,9 @@ isc_file_isabsolute(const char *filename) {
*/
if ((filename[0] == '\\') && (filename[1] == '\\'))
return (ISC_TRUE);
if (isalpha(filename[0]) != 0 && filename[1] == ':' && filename[2] == '\\')
if (isalpha(filename[0]) && filename[1] == ':' && filename[2] == '\\')
return (ISC_TRUE);
if (isalpha(filename[0]) != 0 && filename[1] == ':' && filename[2] == '/')
if (isalpha(filename[0]) && filename[1] == ':' && filename[2] == '/')
return (ISC_TRUE);
return (ISC_FALSE);
}
......@@ -471,5 +471,5 @@ isc_file_getabsolutepath(const char *filename, char *path, size_t pathlen) {
/* Caller needs to provide a larger buffer to contain the string */
if (retval >= pathlen)
return (ISC_R_NOSPACE);
return(ISC_R_SUCCESS);
return (ISC_R_SUCCESS);
}
......@@ -15,7 +15,7 @@
* WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
*/
/* $Id: ntfile.c,v 1.4 2001/07/16 03:52:12 mayer Exp $ */
/* $Id: ntfile.c,v 1.5 2001/07/16 04:09:45 gson Exp $ */
/*
* This file has been necessitated by the fact that the iov array is local
......@@ -29,6 +29,7 @@
#include <config.h>
#include <io.h>
#include <isc/ntfile.h>
FILE *
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment