/[PAMELA software]/YodaProfiler/src/YodaProfiler.cpp
ViewVC logotype

Diff of /YodaProfiler/src/YodaProfiler.cpp

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

revision 1.8 by mocchiut, Tue Sep 12 07:30:46 2006 UTC revision 1.9 by mocchiut, Tue Sep 12 13:22:55 2006 UTC
# Line 58  int main(int numinp, char *inps[]){ Line 58  int main(int numinp, char *inps[]){
58    TString user = "anonymous";    TString user = "anonymous";
59    TString password = "";    TString password = "";
60    //    //
61    const char *pamdbhost=gSystem->Getenv("PAM_DBHOST");    const char *pamdbhost = gSystem->Getenv("PAM_DBHOST");
62    const char *pamdbuser=gSystem->Getenv("PAM_DBUSER");    const char *pamdbuser = gSystem->Getenv("PAM_DBUSER");
63    const char *pamdbpsw=gSystem->Getenv("PAM_DBPSW");    const char *pamdbpsw = gSystem->Getenv("PAM_DBPSW");
64      if ( !pamdbhost ) pamdbhost = "";
65      if ( !pamdbuser ) pamdbuser = "";
66      if ( !pamdbpsw ) pamdbpsw = "";
67    if ( strcmp(pamdbhost,"") ) host = pamdbhost;    if ( strcmp(pamdbhost,"") ) host = pamdbhost;
68    if ( strcmp(pamdbuser,"") ) user = pamdbuser;    if ( strcmp(pamdbuser,"") ) user = pamdbuser;
69    if ( strcmp(pamdbpsw,"") ) password = pamdbpsw;    if ( strcmp(pamdbpsw,"") ) password = pamdbpsw;

Legend:
Removed from v.1.8  
changed lines
  Added in v.1.9

  ViewVC Help
Powered by ViewVC 1.1.23