aboutsummaryrefslogtreecommitdiff
path: root/contrib/amd/amd/amd.c
diff options
context:
space:
mode:
authorDavid E. O'Brien <obrien@FreeBSD.org>2001-09-02 17:19:13 +0000
committerDavid E. O'Brien <obrien@FreeBSD.org>2001-09-02 17:19:13 +0000
commitd39ff6a0408be6eda4612ec207d50135455493ad (patch)
treef360f5a4cfde557f960abf8a2685577136e077fd /contrib/amd/amd/amd.c
parent56b658f4c005d078f663f7483244d943db6d7c93 (diff)
downloadsrc-d39ff6a0408be6eda4612ec207d50135455493ad.tar.gz
src-d39ff6a0408be6eda4612ec207d50135455493ad.zip
Virgin import of AMD (am-utils) v6.0.7
Notes
Notes: svn path=/vendor/amd/dist/; revision=82794
Diffstat (limited to 'contrib/amd/amd/amd.c')
-rw-r--r--contrib/amd/amd/amd.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/contrib/amd/amd/amd.c b/contrib/amd/amd/amd.c
index 3f3da1b80226..cc10a8386ab5 100644
--- a/contrib/amd/amd/amd.c
+++ b/contrib/amd/amd/amd.c
@@ -1,5 +1,5 @@
/*
- * Copyright (c) 1997-1999 Erez Zadok
+ * Copyright (c) 1997-2001 Erez Zadok
* Copyright (c) 1989 Jan-Simon Pendry
* Copyright (c) 1989 Imperial College of Science, Technology & Medicine
* Copyright (c) 1989 The Regents of the University of California.
@@ -38,7 +38,7 @@
*
* %W% (Berkeley) %G%
*
- * $Id: amd.c,v 1.6 1999/09/30 21:01:29 ezk Exp $
+ * $Id: amd.c,v 1.8.2.3 2001/01/10 03:22:59 ezk Exp $
*
*/
@@ -177,8 +177,8 @@ daemon_mode(void)
if (gopt.flags & CFM_PRINT_PID) {
if (STREQ(gopt.pid_file, "/dev/stdout")) {
printf("%ld\n", (long) am_mypid);
+ /* flush stdout, just in case */
fflush(stdout);
- /* do not fclose stdout */
} else {
FILE *f;
mode_t prev_umask = umask(0022); /* set secure temporary umask */
@@ -476,7 +476,7 @@ main(int argc, char *argv[])
verstr = strtok(get_version_string(), "\n");
plog(XLOG_INFO, "AM-UTILS VERSION INFORMATION:");
while (verstr) {
- plog(XLOG_INFO, verstr);
+ plog(XLOG_INFO, "%s", verstr);
verstr = strtok(NULL, "\n");
}