X-Git-Url: http://sru.miketaylor.org.uk/?a=blobdiff_plain;ds=sidebyside;f=src%2Fmod_sample.cpp;h=0c5ef0ce5b21a3aa735f69269d607e815d7f0ab3;hb=4f79f9b5b0095b2f81b1ce583f0f82462f9ee36a;hp=9546271ec47c0982dadc13f24cd756b5d01e4bb6;hpb=22afe38a1f113ef7f2a46d1fde0141cf10b27eb4;p=yazproxy-moved-to-github.git diff --git a/src/mod_sample.cpp b/src/mod_sample.cpp index 9546271..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-2008 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