Source-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[src/trunk]: src/crypto/external/bsd/openssh/dist Inline string that should h...



details:   https://anonhg.NetBSD.org/src/rev/85cd28da5db3
branches:  trunk
changeset: 759383:85cd28da5db3
user:      joerg <joerg%NetBSD.org@localhost>
date:      Tue Dec 07 22:50:37 2010 +0000

description:
Inline string that should have been const char [] in first place.

diffstat:

 crypto/external/bsd/openssh/dist/random.c |  8 +++-----
 1 files changed, 3 insertions(+), 5 deletions(-)

diffs (36 lines):

diff -r f4c689442165 -r 85cd28da5db3 crypto/external/bsd/openssh/dist/random.c
--- a/crypto/external/bsd/openssh/dist/random.c Tue Dec 07 22:08:27 2010 +0000
+++ b/crypto/external/bsd/openssh/dist/random.c Tue Dec 07 22:50:37 2010 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: random.c,v 1.1 2009/06/07 22:38:47 christos Exp $      */
+/*     $NetBSD: random.c,v 1.2 2010/12/07 22:50:37 joerg Exp $ */
 
 /*-
  * Copyright (c) 2000 The NetBSD Foundation, Inc.
@@ -31,7 +31,7 @@
 
 #include "includes.h"
 #ifndef lint
-__RCSID("$NetBSD: random.c,v 1.1 2009/06/07 22:38:47 christos Exp $");
+__RCSID("$NetBSD: random.c,v 1.2 2010/12/07 22:50:37 joerg Exp $");
 #endif
 
 /*
@@ -52,8 +52,6 @@
 #include "random.h"
 #include "log.h"
 
-static const char *rndfail = "random number device is mandatory.  see rnd(4).";
-
 int
 arc4random_check(void)
 {
@@ -61,7 +59,7 @@
 
        fd = open(_PATH_URANDOM, O_RDONLY, 0666);
        if (fd < 0) {
-               fatal(rndfail);
+               fatal("random number device is mandatory.  see rnd(4).");
                /*NOTREACHED*/
        }
        close(fd);



Home | Main Index | Thread Index | Old Index