diff options
author | Russ Allbery <rra@stanford.edu> | 2008-04-24 02:02:49 +0000 |
---|---|---|
committer | Russ Allbery <rra@stanford.edu> | 2008-04-24 02:02:49 +0000 |
commit | 92ff7f21ad0b167f8d742a9d7b5f93704a57619c (patch) | |
tree | 7adae5f227b6463e07d5cd0f1dab82b7f1c6be47 /client/file.c | |
parent | 34c58f9471b3df4fa8b719b3c3534940ba5cfe1b (diff) |
Major coding style cleanup. Updated all shared code from my other
projects.
The configure option requesting AFS kaserver support (and thus
building kasetkey) is now --with-kaserver instead of --with-afs.
If KRB5_CONFIG was explicitly set in the environment, don't use a
different krb5-config based on --with-krb4 or --with-krb5. If
krb5-config isn't executable, don't use it. This allows one to
force library probing by setting KRB5_CONFIG to point to a
nonexistent file.
Sanity-check the results of krb5-config before proceeding and error
out in configure if they don't work.
Stop setting Stanford-specific compile-time defaults for the wallet
server and port.
Diffstat (limited to 'client/file.c')
-rw-r--r-- | client/file.c | 46 |
1 files changed, 23 insertions, 23 deletions
diff --git a/client/file.c b/client/file.c index 10304e5..7e0563e 100644 --- a/client/file.c +++ b/client/file.c @@ -1,15 +1,15 @@ -/* $Id$ -** -** File handling for the wallet client. -** -** Written by Russ Allbery <rra@stanford.edu> -** Copyright 2007, 2008 Board of Trustees, Leland Stanford Jr. University -** -** See LICENSE for licensing terms. -*/ +/* $Id$ + * + * File handling for the wallet client. + * + * Written by Russ Allbery <rra@stanford.edu> + * Copyright 2007, 2008 Board of Trustees, Leland Stanford Jr. University + * + * See LICENSE for licensing terms. + */ #include <config.h> -#include <system.h> +#include <portable/system.h> #include <fcntl.h> @@ -17,9 +17,9 @@ #include <util/util.h> /* -** Given a filename, some data, and a length, write that data to the given -** file safely, but overwrite any existing file by that name. -*/ + * Given a filename, some data, and a length, write that data to the given + * file safely, but overwrite any existing file by that name. + */ void overwrite_file(const char *name, const void *data, size_t length) { @@ -45,10 +45,10 @@ overwrite_file(const char *name, const void *data, size_t length) /* -** Given a filename, some data, and a length, write that data to the given -** file safely and atomically by creating file.new, writing the data, linking -** file to file.bak, and then renaming file.new to file. -*/ + * Given a filename, some data, and a length, write that data to the given + * file safely and atomically by creating file.new, writing the data, linking + * file to file.bak, and then renaming file.new to file. + */ void write_file(const char *name, const void *data, size_t length) { @@ -72,12 +72,12 @@ write_file(const char *name, const void *data, size_t length) /* -** Given a remctl object, the command prefix, object type, and object name, -** and a file (which may be NULL), send a wallet get command and write the -** results to the provided file. If the file is NULL, write the results to -** standard output instead. Returns 0 on success and an exit status on -** failure. -*/ + * Given a remctl object, the command prefix, object type, and object name, + * and a file (which may be NULL), send a wallet get command and write the + * results to the provided file. If the file is NULL, write the results to + * standard output instead. Returns 0 on success and an exit status on + * failure. + */ int get_file(struct remctl *r, const char *prefix, const char *type, const char *name, const char *file) |