Module Name:    src
Committed By:   joerg
Date:           Tue Dec  7 22:50:37 UTC 2010

Modified Files:
        src/crypto/external/bsd/openssh/dist: random.c

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


To generate a diff of this commit:
cvs rdiff -u -r1.1 -r1.2 src/crypto/external/bsd/openssh/dist/random.c

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.

Modified files:

Index: src/crypto/external/bsd/openssh/dist/random.c
diff -u src/crypto/external/bsd/openssh/dist/random.c:1.1 src/crypto/external/bsd/openssh/dist/random.c:1.2
--- src/crypto/external/bsd/openssh/dist/random.c:1.1	Sun Jun  7 22:38:47 2009
+++ src/crypto/external/bsd/openssh/dist/random.c	Tue Dec  7 22:50:37 2010
@@ -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);

Reply via email to