projects
/
freeradius.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
|
inline
| side by side (parent:
99d0c23
)
* Replace a couple printf calls with fprintf(stderr)
author
hartwick
<hartwick>
Tue, 6 Feb 2001 00:32:36 +0000
(
00:32
+0000)
committer
hartwick
<hartwick>
Tue, 6 Feb 2001 00:32:36 +0000
(
00:32
+0000)
src/main/radwho.c
patch
|
blob
|
history
diff --git
a/src/main/radwho.c
b/src/main/radwho.c
index
85ec192
..
18922fd
100644
(file)
--- a/
src/main/radwho.c
+++ b/
src/main/radwho.c
@@
-436,18
+436,18
@@
int main(int argc, char **argv)
/* Read radiusd.conf */
if(read_radius_conf_file() < 0) {
/* Read radiusd.conf */
if(read_radius_conf_file() < 0) {
-
printf("Errors reading radiusd.conf\n"
);
+
fprintf(stderr, "%s: Errors reading radiusd.conf\n", argv[0]
);
exit(1);
}
cs = cf_section_find(NULL);
if(!cs) {
exit(1);
}
cs = cf_section_find(NULL);
if(!cs) {
- printf("No configuration information in radiusd.conf!\n");
+ fprintf(stderr, "No configuration information in radiusd.conf!\n",
+ argv[0]);
exit(1);
}
cf_section_parse(cs, server_config);
exit(1);
}
cf_section_parse(cs, server_config);
-
/*
* See if we are "fingerd".
*/
/*
* See if we are "fingerd".
*/