X-Git-Url: http://git.indexdata.com/?a=blobdiff_plain;f=src%2Fmod_sample.cpp;h=0c5ef0ce5b21a3aa735f69269d607e815d7f0ab3;hb=cf651b8f75567e873463814f9d21164ce7e01e38;hp=cd9fbdacba2e031ca39a41c712363930016b97e0;hpb=7b429cd9f6320f71b949f7e90270266b2f617c07;p=yazproxy-moved-to-github.git diff --git a/src/mod_sample.cpp b/src/mod_sample.cpp index cd9fbda..0c5ef0c 100644 --- a/src/mod_sample.cpp +++ b/src/mod_sample.cpp @@ -1,5 +1,5 @@ /* This file is part of YAZ proxy - Copyright (C) 1998-2009 Index Data + Copyright (C) 1998-2011 Index Data YAZ proxy is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free @@ -51,7 +51,7 @@ int my_authenticate(void *user_handle, #if YAZ_HAVE_XSLT xmlNodePtr ptr = (xmlNodePtr) element_ptr; struct _xmlAttr *attr; - + for (attr = ptr->properties; attr; attr = attr->next) { if (!strcmp((const char *) attr->name, "args") && @@ -64,7 +64,7 @@ int my_authenticate(void *user_handle, sleep(2); fprintf(stderr, "my_authenticate: target=%s user=%s group=%s args=%s IP=%s" "\n", - target_name ? target_name : "none", + target_name ? target_name : "none", user ? user : "none", group ? group : "none", args ? args : "none", peer_IP); @@ -92,6 +92,7 @@ Yaz_ProxyModule_entry yazproxy_module = { /* * Local variables: * c-basic-offset: 4 + * c-file-style: "Stroustrup" * indent-tabs-mode: nil * End: * vim: shiftwidth=4 tabstop=8 expandtab