]> git.ipfire.org Git - thirdparty/squid.git/commitdiff
SourceFormat Enforcement
authorSource Maintenance <squidadm@squid-cache.org>
Sat, 20 Dec 2014 12:12:02 +0000 (12:12 +0000)
committerSource Maintenance <squidadm@squid-cache.org>
Sat, 20 Dec 2014 12:12:02 +0000 (12:12 +0000)
1473 files changed:
compat/GnuRegex.c
compat/GnuRegex.h
compat/assert.cc
compat/assert.h
compat/cmsg.h
compat/compat.cc
compat/compat.h
compat/compat_shared.h
compat/cppunit.h
compat/cpu.h
compat/debug.cc
compat/debug.h
compat/drand48.c
compat/drand48.h
compat/eui64_aton.c
compat/eui64_aton.h
compat/fdsetsize.h
compat/getaddrinfo.c
compat/getaddrinfo.h
compat/getnameinfo.c
compat/getnameinfo.h
compat/inet_ntop.c
compat/inet_ntop.h
compat/inet_pton.c
compat/inet_pton.h
compat/initgroups.h
compat/memrchr.cc
compat/memrchr.h
compat/mswindows.cc
compat/os/aix.h
compat/os/android.h
compat/os/dragonfly.h
compat/os/freebsd.h
compat/os/hpux.h
compat/os/linux.h
compat/os/macosx.h
compat/os/mswindows.h
compat/os/netbsd.h
compat/os/next.h
compat/os/openbsd.h
compat/os/opensolaris_10_netdb.h
compat/os/os2.h
compat/os/qnx.h
compat/os/sgi.h
compat/os/solaris.h
compat/os/sunos.h
compat/osdetect.h
compat/psignal.c
compat/psignal.h
compat/shm.cc
compat/shm.h
compat/statvfs.cc
compat/statvfs.h
compat/stdio.h
compat/stdvarargs.h
compat/strerror.c
compat/strnrchr.c
compat/strnrchr.h
compat/strnstr.cc
compat/strtoll.c
compat/strtoll.h
compat/tempnam.c
compat/tempnam.h
compat/testPreCompiler.h
compat/types.h
compat/valgrind.h
compat/xalloc.cc
compat/xalloc.h
compat/xis.h
compat/xstrerror.cc
compat/xstrerror.h
compat/xstring.cc
compat/xstring.h
compat/xstrto.cc
compat/xstrto.h
doc/debug-sections.txt
helpers/basic_auth/LDAP/basic_ldap_auth.cc
helpers/basic_auth/MSNT/allowusers.cc
helpers/basic_auth/MSNT/confload.cc
helpers/basic_auth/MSNT/denyusers.cc
helpers/basic_auth/MSNT/msntauth.cc
helpers/basic_auth/MSNT/msntauth.h
helpers/basic_auth/MSNT/usersfile.cc
helpers/basic_auth/MSNT/usersfile.h
helpers/basic_auth/MSNT/valid.cc
helpers/basic_auth/MSNT/valid.h
helpers/basic_auth/NCSA/basic_ncsa_auth.cc
helpers/basic_auth/NCSA/crypt_md5.cc
helpers/basic_auth/NCSA/crypt_md5.h
helpers/basic_auth/NIS/basic_nis_auth.cc
helpers/basic_auth/NIS/nis_support.cc
helpers/basic_auth/NIS/nis_support.h
helpers/basic_auth/PAM/basic_pam_auth.cc
helpers/basic_auth/RADIUS/basic_radius_auth.cc
helpers/basic_auth/RADIUS/radius-util.cc
helpers/basic_auth/RADIUS/radius-util.h
helpers/basic_auth/RADIUS/radius.h
helpers/basic_auth/SASL/basic_sasl_auth.cc
helpers/basic_auth/SMB/basic_smb_auth.cc
helpers/basic_auth/SSPI/basic_sspi_auth.cc
helpers/basic_auth/SSPI/valid.cc
helpers/basic_auth/SSPI/valid.h
helpers/basic_auth/fake/fake.cc
helpers/basic_auth/getpwnam/basic_getpwnam_auth.cc
helpers/defines.h
helpers/digest_auth/LDAP/digest_common.h
helpers/digest_auth/LDAP/digest_pw_auth.cc
helpers/digest_auth/LDAP/ldap_backend.cc
helpers/digest_auth/LDAP/ldap_backend.h
helpers/digest_auth/eDirectory/digest_common.h
helpers/digest_auth/eDirectory/digest_pw_auth.cc
helpers/digest_auth/eDirectory/edir_ldapext.cc
helpers/digest_auth/eDirectory/edir_ldapext.h
helpers/digest_auth/eDirectory/ldap_backend.cc
helpers/digest_auth/eDirectory/ldap_backend.h
helpers/digest_auth/file/digest_common.h
helpers/digest_auth/file/digest_file_auth.cc
helpers/digest_auth/file/text_backend.cc
helpers/digest_auth/file/text_backend.h
helpers/external_acl/AD_group/ext_ad_group_acl.cc
helpers/external_acl/LDAP_group/ext_ldap_group_acl.cc
helpers/external_acl/LM_group/ext_lm_group_acl.cc
helpers/external_acl/eDirectory_userip/ext_edirectory_userip_acl.cc
helpers/external_acl/file_userip/ext_file_userip_acl.cc
helpers/external_acl/kerberos_ldap_group/kerberos_ldap_group.cc
helpers/external_acl/kerberos_ldap_group/support.h
helpers/external_acl/kerberos_ldap_group/support_group.cc
helpers/external_acl/kerberos_ldap_group/support_krb5.cc
helpers/external_acl/kerberos_ldap_group/support_ldap.cc
helpers/external_acl/kerberos_ldap_group/support_log.cc
helpers/external_acl/kerberos_ldap_group/support_lserver.cc
helpers/external_acl/kerberos_ldap_group/support_member.cc
helpers/external_acl/kerberos_ldap_group/support_netbios.cc
helpers/external_acl/kerberos_ldap_group/support_resolv.cc
helpers/external_acl/kerberos_ldap_group/support_sasl.cc
helpers/external_acl/session/ext_session_acl.cc
helpers/external_acl/time_quota/ext_time_quota_acl.cc
helpers/external_acl/unix_group/check_group.cc
helpers/log_daemon/file/log_file_daemon.cc
helpers/negotiate_auth/SSPI/negotiate_sspi_auth.cc
helpers/negotiate_auth/kerberos/negotiate_kerberos.h
helpers/negotiate_auth/kerberos/negotiate_kerberos_auth.cc
helpers/negotiate_auth/kerberos/negotiate_kerberos_auth_test.cc
helpers/negotiate_auth/kerberos/negotiate_kerberos_pac.cc
helpers/negotiate_auth/wrapper/negotiate_wrapper.cc
helpers/ntlm_auth/SSPI/ntlm_sspi_auth.cc
helpers/ntlm_auth/fake/ntlm_fake_auth.cc
helpers/ntlm_auth/smb_lm/ntlm_smb_lm_auth.cc
helpers/url_rewrite/LFS/rredir.cc
helpers/url_rewrite/fake/fake.cc
include/Range.h
include/SquidNew.h
include/asn1.h
include/base64.h
include/cache_snmp.h
include/charset.h
include/getfullhostname.h
include/hash.h
include/heap.h
include/html_quote.h
include/leakcheck.h
include/md5.h
include/memMeter.h
include/parse.h
include/radix.h
include/rfc1035.h
include/rfc1123.h
include/rfc1738.h
include/rfc2181.h
include/rfc2617.h
include/rfc2671.h
include/rfc3596.h
include/snmp-internal.h
include/snmp-mib.h
include/snmp.h
include/snmp_api.h
include/snmp_api_error.h
include/snmp_api_util.h
include/snmp_client.h
include/snmp_coexist.h
include/snmp_debug.h
include/snmp_error.h
include/snmp_impl.h
include/snmp_msg.h
include/snmp_pdu.h
include/snmp_session.h
include/snmp_util.h
include/snmp_vars.h
include/splay.h
include/squid.h
include/sspwin32.h
include/util.h
include/uudecode.h
include/version.h
include/xusleep.h
lib/Splay.cc
lib/base64.c
lib/charset.c
lib/dirent.c
lib/encrypt.c
lib/getfullhostname.c
lib/getopt.c
lib/hash.cc
lib/heap.c
lib/html_quote.c
lib/iso3307.c
lib/libTrie/Trie.cc
lib/libTrie/Trie.h
lib/libTrie/TrieCharTransform.h
lib/libTrie/TrieNode.cc
lib/libTrie/TrieNode.h
lib/libTrie/test/trie.cc
lib/md5-test.c
lib/md5.c
lib/ntlmauth/ntlmauth.cc
lib/ntlmauth/ntlmauth.h
lib/ntlmauth/support_bits.cci
lib/ntlmauth/support_endian.h
lib/profiler/Profiler.cc
lib/profiler/Profiler.h
lib/profiler/get_tick.h
lib/profiler/xprof_type.h
lib/radix.c
lib/rfc1035.c
lib/rfc1123.c
lib/rfc1738.c
lib/rfc2617.c
lib/rfc2671.c
lib/rfc3596.c
lib/rfcnb/byteorder.h
lib/rfcnb/rfcnb-common.h
lib/rfcnb/rfcnb-error.h
lib/rfcnb/rfcnb-io.c
lib/rfcnb/rfcnb-io.h
lib/rfcnb/rfcnb-priv.h
lib/rfcnb/rfcnb-util.c
lib/rfcnb/rfcnb-util.h
lib/rfcnb/rfcnb.h
lib/rfcnb/session.c
lib/rfcnb/std-includes.h
lib/smblib/exper.c
lib/smblib/file.c
lib/smblib/find_password.c
lib/smblib/md4.c
lib/smblib/md4.h
lib/smblib/smb-errors.c
lib/smblib/smbdes.c
lib/smblib/smbdes.h
lib/smblib/smbencrypt.c
lib/smblib/smbencrypt.h
lib/smblib/smblib-api.c
lib/smblib/smblib-common.h
lib/smblib/smblib-priv.h
lib/smblib/smblib-util.c
lib/smblib/smblib.c
lib/smblib/smblib.h
lib/smblib/std-defines.h
lib/snmplib/asn1.c
lib/snmplib/coexistance.c
lib/snmplib/mib.c
lib/snmplib/parse.c
lib/snmplib/snmp_api.c
lib/snmplib/snmp_api_error.c
lib/snmplib/snmp_error.c
lib/snmplib/snmp_msg.c
lib/snmplib/snmp_pdu.c
lib/snmplib/snmp_vars.c
lib/snmplib/snmplib_debug.c
lib/sspwin32.cc
lib/stub_memaccount.c
lib/tests/testRFC1035.cc
lib/tests/testRFC1035.h
lib/tests/testRFC1738.cc
lib/tests/testRFC1738.h
lib/util.c
lib/uudecode.c
lib/xusleep.c
scripts/boilerplate.h
src/AccessLogEntry.cc
src/AccessLogEntry.h
src/AclRegs.cc
src/AsyncEngine.cc
src/AsyncEngine.h
src/AuthReg.cc
src/AuthReg.h
src/BodyPipe.cc
src/BodyPipe.h
src/CacheDigest.cc
src/CacheDigest.h
src/CacheManager.h
src/CachePeer.h
src/CachePeerDomainList.h
src/ChunkedCodingParser.cc
src/ChunkedCodingParser.h
src/ClientDelayConfig.cc
src/ClientDelayConfig.h
src/ClientInfo.h
src/ClientRequestContext.h
src/CollapsedForwarding.cc
src/CollapsedForwarding.h
src/CommCalls.cc
src/CommCalls.h
src/CommRead.h
src/CompletionDispatcher.cc
src/CompletionDispatcher.h
src/CompositePoolNode.h
src/ConfigOption.cc
src/ConfigOption.h
src/ConfigParser.cc
src/ConfigParser.h
src/CpuAffinity.cc
src/CpuAffinity.h
src/CpuAffinityMap.cc
src/CpuAffinityMap.h
src/CpuAffinitySet.cc
src/CpuAffinitySet.h
src/Debug.h
src/DelayBucket.cc
src/DelayBucket.h
src/DelayConfig.cc
src/DelayConfig.h
src/DelayId.cc
src/DelayId.h
src/DelayIdComposite.h
src/DelayPool.cc
src/DelayPool.h
src/DelayPools.h
src/DelaySpec.cc
src/DelaySpec.h
src/DelayTagged.cc
src/DelayTagged.h
src/DelayUser.cc
src/DelayUser.h
src/DelayVector.cc
src/DelayVector.h
src/DescriptorSet.cc
src/DiskIO/AIO/AIODiskFile.cc
src/DiskIO/AIO/AIODiskFile.h
src/DiskIO/AIO/AIODiskIOModule.cc
src/DiskIO/AIO/AIODiskIOModule.h
src/DiskIO/AIO/AIODiskIOStrategy.cc
src/DiskIO/AIO/AIODiskIOStrategy.h
src/DiskIO/AIO/aio_win32.cc
src/DiskIO/AIO/aio_win32.h
src/DiskIO/AIO/async_io.h
src/DiskIO/Blocking/BlockingDiskIOModule.cc
src/DiskIO/Blocking/BlockingDiskIOModule.h
src/DiskIO/Blocking/BlockingFile.cc
src/DiskIO/Blocking/BlockingFile.h
src/DiskIO/Blocking/BlockingIOStrategy.cc
src/DiskIO/Blocking/BlockingIOStrategy.h
src/DiskIO/Blocking/DiskIOBlocking.cc
src/DiskIO/DiskDaemon/DiskDaemonDiskIOModule.cc
src/DiskIO/DiskDaemon/DiskDaemonDiskIOModule.h
src/DiskIO/DiskDaemon/DiskdAction.cc
src/DiskIO/DiskDaemon/DiskdAction.h
src/DiskIO/DiskDaemon/DiskdFile.cc
src/DiskIO/DiskDaemon/DiskdFile.h
src/DiskIO/DiskDaemon/DiskdIOStrategy.cc
src/DiskIO/DiskDaemon/DiskdIOStrategy.h
src/DiskIO/DiskDaemon/diomsg.h
src/DiskIO/DiskDaemon/diskd.cc
src/DiskIO/DiskFile.h
src/DiskIO/DiskIOModule.cc
src/DiskIO/DiskIOModule.h
src/DiskIO/DiskIOStrategy.h
src/DiskIO/DiskThreads/CommIO.cc
src/DiskIO/DiskThreads/CommIO.h
src/DiskIO/DiskThreads/DiskThreads.h
src/DiskIO/DiskThreads/DiskThreadsDiskFile.cc
src/DiskIO/DiskThreads/DiskThreadsDiskFile.h
src/DiskIO/DiskThreads/DiskThreadsDiskIOModule.cc
src/DiskIO/DiskThreads/DiskThreadsDiskIOModule.h
src/DiskIO/DiskThreads/DiskThreadsIOStrategy.cc
src/DiskIO/DiskThreads/DiskThreadsIOStrategy.h
src/DiskIO/DiskThreads/aiops.cc
src/DiskIO/DiskThreads/aiops_win32.cc
src/DiskIO/DiskThreads/async_io.cc
src/DiskIO/IORequestor.h
src/DiskIO/IpcIo/IpcIoDiskIOModule.cc
src/DiskIO/IpcIo/IpcIoDiskIOModule.h
src/DiskIO/IpcIo/IpcIoFile.cc
src/DiskIO/IpcIo/IpcIoFile.h
src/DiskIO/IpcIo/IpcIoIOStrategy.cc
src/DiskIO/IpcIo/IpcIoIOStrategy.h
src/DiskIO/Mmapped/MmappedDiskIOModule.cc
src/DiskIO/Mmapped/MmappedDiskIOModule.h
src/DiskIO/Mmapped/MmappedFile.cc
src/DiskIO/Mmapped/MmappedFile.h
src/DiskIO/Mmapped/MmappedIOStrategy.cc
src/DiskIO/Mmapped/MmappedIOStrategy.h
src/DiskIO/ReadRequest.cc
src/DiskIO/ReadRequest.h
src/DiskIO/WriteRequest.cc
src/DiskIO/WriteRequest.h
src/DnsLookupDetails.cc
src/DnsLookupDetails.h
src/ETag.cc
src/ETag.h
src/EventLoop.cc
src/EventLoop.h
src/ExternalACL.h
src/ExternalACLEntry.cc
src/ExternalACLEntry.h
src/FadingCounter.cc
src/FadingCounter.h
src/FileMap.h
src/FwdState.cc
src/FwdState.h
src/Generic.h
src/HierarchyLogEntry.h
src/HttpBody.cc
src/HttpBody.h
src/HttpControlMsg.h
src/HttpHdrCc.cc
src/HttpHdrCc.cci
src/HttpHdrCc.h
src/HttpHdrContRange.cc
src/HttpHdrContRange.h
src/HttpHdrRange.cc
src/HttpHdrSc.cc
src/HttpHdrSc.h
src/HttpHdrScTarget.cc
src/HttpHdrScTarget.h
src/HttpHeader.cc
src/HttpHeader.h
src/HttpHeaderFieldInfo.h
src/HttpHeaderFieldStat.h
src/HttpHeaderMask.h
src/HttpHeaderRange.h
src/HttpHeaderStat.h
src/HttpHeaderTools.cc
src/HttpHeaderTools.h
src/HttpMsg.cc
src/HttpMsg.h
src/HttpReply.cc
src/HttpReply.h
src/HttpRequest.cc
src/HttpRequest.h
src/HttpStateFlags.h
src/ICP.h
src/IoStats.h
src/LeakFinder.cc
src/LeakFinder.h
src/LoadableModule.cc
src/LoadableModule.h
src/LoadableModules.cc
src/LoadableModules.h
src/LogTags.h
src/MasterXaction.cc
src/MasterXaction.h
src/MemBlob.cc
src/MemBlob.h
src/MemBuf.cc
src/MemBuf.h
src/MemObject.cc
src/MemObject.h
src/MemStore.cc
src/MemStore.h
src/MessageSizes.h
src/NeighborTypeDomainList.h
src/Notes.cc
src/Notes.h
src/NullDelayId.cc
src/NullDelayId.h
src/OutOfBoundsException.h
src/Packer.cc
src/Packer.h
src/Parsing.cc
src/Parsing.h
src/PeerDigest.h
src/PeerPoolMgr.cc
src/PeerPoolMgr.h
src/PeerSelectState.h
src/PingData.h
src/ProfStats.cc
src/RefreshPattern.h
src/RegexList.h
src/RemovalPolicy.cc
src/RemovalPolicy.h
src/RequestFlags.cc
src/RequestFlags.h
src/SBuf.cc
src/SBuf.h
src/SBufAlgos.h
src/SBufDetailedStats.cc
src/SBufDetailedStats.h
src/SBufExceptions.cc
src/SBufExceptions.h
src/SBufList.cc
src/SBufList.h
src/SBufStatsAction.cc
src/SBufStatsAction.h
src/SBufStream.h
src/SnmpRequest.h
src/SquidConfig.h
src/SquidDns.h
src/SquidIpc.h
src/SquidList.h
src/SquidMath.cc
src/SquidMath.h
src/SquidNew.cc
src/SquidString.h
src/SquidTime.h
src/StatCounters.cc
src/StatCounters.h
src/StatHist.cc
src/StatHist.h
src/Store.h
src/StoreClient.h
src/StoreEntryStream.h
src/StoreFileSystem.cc
src/StoreFileSystem.h
src/StoreHashIndex.h
src/StoreIOBuffer.h
src/StoreIOState.cc
src/StoreIOState.h
src/StoreMeta.cc
src/StoreMeta.h
src/StoreMetaMD5.cc
src/StoreMetaMD5.h
src/StoreMetaObjSize.h
src/StoreMetaSTD.cc
src/StoreMetaSTD.h
src/StoreMetaSTDLFS.cc
src/StoreMetaSTDLFS.h
src/StoreMetaURL.cc
src/StoreMetaURL.h
src/StoreMetaUnpacker.cc
src/StoreMetaUnpacker.h
src/StoreMetaVary.cc
src/StoreMetaVary.h
src/StoreSearch.h
src/StoreStats.h
src/StoreSwapLogData.cc
src/StoreSwapLogData.h
src/StrList.h
src/String.cc
src/String.cci
src/SwapDir.cc
src/SwapDir.h
src/TimeOrTag.h
src/Transients.cc
src/Transients.h
src/URL.h
src/WinSvc.cc
src/WinSvc.h
src/YesNoNone.cc
src/YesNoNone.h
src/acl/Acl.cc
src/acl/Acl.h
src/acl/AclAddress.cc
src/acl/AclAddress.h
src/acl/AclDenyInfoList.h
src/acl/AclNameList.h
src/acl/AclSizeLimit.h
src/acl/AdaptationService.cc
src/acl/AdaptationService.h
src/acl/AdaptationServiceData.h
src/acl/AllOf.cc
src/acl/AllOf.h
src/acl/AnyOf.cc
src/acl/AnyOf.h
src/acl/Arp.cc
src/acl/Arp.h
src/acl/Asn.cc
src/acl/Asn.h
src/acl/AtStep.cc
src/acl/AtStep.h
src/acl/AtStepData.cc
src/acl/AtStepData.h
src/acl/BoolOps.cc
src/acl/BoolOps.h
src/acl/Browser.h
src/acl/Certificate.cc
src/acl/Certificate.h
src/acl/CertificateData.cc
src/acl/CertificateData.h
src/acl/Checklist.cc
src/acl/Checklist.h
src/acl/Data.h
src/acl/DestinationAsn.h
src/acl/DestinationDomain.cc
src/acl/DestinationDomain.h
src/acl/DestinationIp.cc
src/acl/DestinationIp.h
src/acl/DomainData.cc
src/acl/DomainData.h
src/acl/Eui64.cc
src/acl/Eui64.h
src/acl/ExtUser.cc
src/acl/ExtUser.h
src/acl/FilledChecklist.cc
src/acl/FilledChecklist.h
src/acl/Gadgets.cc
src/acl/Gadgets.h
src/acl/HierCode.cc
src/acl/HierCode.h
src/acl/HierCodeData.cc
src/acl/HierCodeData.h
src/acl/HttpHeaderData.cc
src/acl/HttpHeaderData.h
src/acl/HttpRepHeader.h
src/acl/HttpReqHeader.h
src/acl/HttpStatus.h
src/acl/InnerNode.cc
src/acl/InnerNode.h
src/acl/IntRange.cc
src/acl/IntRange.h
src/acl/Ip.cc
src/acl/Ip.h
src/acl/LocalIp.cc
src/acl/LocalIp.h
src/acl/LocalPort.cc
src/acl/LocalPort.h
src/acl/MaxConnection.cc
src/acl/MaxConnection.h
src/acl/Method.cc
src/acl/Method.h
src/acl/MethodData.cc
src/acl/MethodData.h
src/acl/MyPortName.cc
src/acl/MyPortName.h
src/acl/Note.h
src/acl/NoteData.cc
src/acl/NoteData.h
src/acl/PeerName.cc
src/acl/PeerName.h
src/acl/Protocol.cc
src/acl/Protocol.h
src/acl/ProtocolData.cc
src/acl/ProtocolData.h
src/acl/Random.cc
src/acl/Random.h
src/acl/Referer.h
src/acl/RegexData.cc
src/acl/RegexData.h
src/acl/ReplyHeaderStrategy.h
src/acl/ReplyMimeType.h
src/acl/RequestHeaderStrategy.h
src/acl/RequestMimeType.h
src/acl/ServerCertificate.cc
src/acl/ServerCertificate.h
src/acl/SourceAsn.h
src/acl/SourceDomain.cc
src/acl/SourceDomain.h
src/acl/SourceIp.cc
src/acl/SourceIp.h
src/acl/SslError.cc
src/acl/SslError.h
src/acl/SslErrorData.cc
src/acl/SslErrorData.h
src/acl/Strategised.cc
src/acl/Strategised.h
src/acl/Strategy.h
src/acl/StringData.cc
src/acl/StringData.h
src/acl/Tag.cc
src/acl/Tag.h
src/acl/Time.cc
src/acl/Time.h
src/acl/TimeData.cc
src/acl/TimeData.h
src/acl/Tree.cc
src/acl/Tree.h
src/acl/Url.cc
src/acl/Url.h
src/acl/UrlLogin.cc
src/acl/UrlLogin.h
src/acl/UrlPath.cc
src/acl/UrlPath.h
src/acl/UrlPort.cc
src/acl/UrlPort.h
src/acl/UserData.cc
src/acl/UserData.h
src/acl/forward.h
src/adaptation/AccessCheck.cc
src/adaptation/AccessCheck.h
src/adaptation/AccessRule.cc
src/adaptation/AccessRule.h
src/adaptation/Answer.cc
src/adaptation/Answer.h
src/adaptation/Config.cc
src/adaptation/Config.h
src/adaptation/DynamicGroupCfg.cc
src/adaptation/Elements.h
src/adaptation/History.cc
src/adaptation/History.h
src/adaptation/Initiate.cc
src/adaptation/Initiate.h
src/adaptation/Initiator.cc
src/adaptation/Initiator.h
src/adaptation/Iterator.cc
src/adaptation/Iterator.h
src/adaptation/Message.cc
src/adaptation/Message.h
src/adaptation/Service.cc
src/adaptation/Service.h
src/adaptation/ServiceConfig.cc
src/adaptation/ServiceConfig.h
src/adaptation/ServiceFilter.cc
src/adaptation/ServiceFilter.h
src/adaptation/ServiceGroups.cc
src/adaptation/ecap/Config.h
src/adaptation/ecap/Host.cc
src/adaptation/ecap/Host.h
src/adaptation/ecap/MessageRep.cc
src/adaptation/ecap/MessageRep.h
src/adaptation/ecap/MinimalAdapter.cc
src/adaptation/ecap/Registry.h
src/adaptation/ecap/ServiceRep.cc
src/adaptation/ecap/ServiceRep.h
src/adaptation/ecap/XactionRep.cc
src/adaptation/ecap/XactionRep.h
src/adaptation/forward.h
src/adaptation/icap/Client.cc
src/adaptation/icap/Client.h
src/adaptation/icap/Config.cc
src/adaptation/icap/Config.h
src/adaptation/icap/Elements.cc
src/adaptation/icap/Elements.h
src/adaptation/icap/History.cc
src/adaptation/icap/History.h
src/adaptation/icap/InOut.h
src/adaptation/icap/Launcher.cc
src/adaptation/icap/Launcher.h
src/adaptation/icap/ModXact.cc
src/adaptation/icap/ModXact.h
src/adaptation/icap/OptXact.cc
src/adaptation/icap/OptXact.h
src/adaptation/icap/Options.cc
src/adaptation/icap/Options.h
src/adaptation/icap/ServiceRep.cc
src/adaptation/icap/ServiceRep.h
src/adaptation/icap/Xaction.cc
src/adaptation/icap/Xaction.h
src/adaptation/icap/icap_log.cc
src/adaptation/icap/icap_log.h
src/anyp/PortCfg.cc
src/anyp/PortCfg.h
src/anyp/ProtocolType.h
src/anyp/ProtocolVersion.h
src/anyp/TrafficMode.h
src/anyp/UriScheme.cc
src/anyp/UriScheme.h
src/auth/Acl.cc
src/auth/Acl.h
src/auth/AclMaxUserIp.cc
src/auth/AclMaxUserIp.h
src/auth/AclProxyAuth.cc
src/auth/AclProxyAuth.h
src/auth/AuthAclState.h
src/auth/Config.cc
src/auth/Config.h
src/auth/CredentialState.h
src/auth/Gadgets.cc
src/auth/Gadgets.h
src/auth/QueueNode.h
src/auth/Scheme.cc
src/auth/Scheme.h
src/auth/State.cc
src/auth/State.h
src/auth/Type.h
src/auth/User.cc
src/auth/User.h
src/auth/UserRequest.cc
src/auth/UserRequest.h
src/auth/basic/Config.cc
src/auth/basic/Config.h
src/auth/basic/Scheme.cc
src/auth/basic/Scheme.h
src/auth/basic/User.cc
src/auth/basic/User.h
src/auth/basic/UserRequest.cc
src/auth/basic/UserRequest.h
src/auth/digest/Config.cc
src/auth/digest/Config.h
src/auth/digest/Scheme.cc
src/auth/digest/Scheme.h
src/auth/digest/User.cc
src/auth/digest/User.h
src/auth/digest/UserRequest.cc
src/auth/digest/UserRequest.h
src/auth/negotiate/Config.cc
src/auth/negotiate/Config.h
src/auth/negotiate/Scheme.cc
src/auth/negotiate/Scheme.h
src/auth/negotiate/User.cc
src/auth/negotiate/User.h
src/auth/negotiate/UserRequest.cc
src/auth/negotiate/UserRequest.h
src/auth/ntlm/Config.cc
src/auth/ntlm/Config.h
src/auth/ntlm/Scheme.cc
src/auth/ntlm/Scheme.h
src/auth/ntlm/User.cc
src/auth/ntlm/User.h
src/auth/ntlm/UserRequest.cc
src/auth/ntlm/UserRequest.h
src/base/AsyncCall.cc
src/base/AsyncCall.h
src/base/AsyncCallQueue.h
src/base/AsyncCbdataCalls.h
src/base/AsyncJob.cc
src/base/AsyncJob.h
src/base/AsyncJobCalls.h
src/base/CbDataList.h
src/base/CbcPointer.h
src/base/CharacterSet.cc
src/base/CharacterSet.h
src/base/InstanceId.h
src/base/Lock.h
src/base/LruMap.h
src/base/RefCount.h
src/base/RunnersRegistry.cc
src/base/RunnersRegistry.h
src/base/Subscription.h
src/base/TextException.cc
src/base/TextException.h
src/base/TidyPointer.h
src/base/testCharacterSet.cc
src/base/testCharacterSet.h
src/cache_cf.cc
src/cache_cf.h
src/cache_diff.cc
src/cache_manager.cc
src/carp.cc
src/carp.h
src/cbdata.cc
src/cbdata.h
src/cf_gen.cc
src/clientStream.cc
src/clientStream.h
src/clientStreamForward.h
src/client_db.cc
src/client_db.h
src/client_side.cc
src/client_side.h
src/client_side_reply.cc
src/client_side_reply.h
src/client_side_request.cc
src/client_side_request.cci
src/client_side_request.h
src/clients/Client.cc
src/clients/Client.h
src/clients/FtpClient.cc
src/clients/FtpClient.h
src/clients/FtpGateway.cc
src/clients/FtpRelay.cc
src/clients/forward.h
src/comm.cc
src/comm.h
src/comm/AcceptLimiter.cc
src/comm/AcceptLimiter.h
src/comm/ConnOpener.cc
src/comm/ConnOpener.h
src/comm/Connection.cc
src/comm/Connection.h
src/comm/Flag.h
src/comm/IoCallback.cc
src/comm/IoCallback.h
src/comm/Loops.h
src/comm/ModDevPoll.cc
src/comm/ModEpoll.cc
src/comm/ModKqueue.cc
src/comm/ModPoll.cc
src/comm/ModSelect.cc
src/comm/ModSelectWin32.cc
src/comm/Read.cc
src/comm/Read.h
src/comm/TcpAcceptor.cc
src/comm/TcpAcceptor.h
src/comm/UdpOpenDialer.h
src/comm/Write.cc
src/comm/Write.h
src/comm/comm_internal.h
src/comm/forward.h
src/comm_poll.h
src/debug.cc
src/defines.h
src/delay_pools.cc
src/disk.cc
src/disk.h
src/dlink.cc
src/dlink.h
src/dns_internal.cc
src/enums.h
src/err_detail_type.h
src/err_type.h
src/errorpage.cc
src/errorpage.h
src/esi/Assign.cc
src/esi/Assign.h
src/esi/Attempt.h
src/esi/Context.cc
src/esi/Context.h
src/esi/CustomParser.cc
src/esi/CustomParser.h
src/esi/Element.h
src/esi/ElementList.h
src/esi/Esi.cc
src/esi/Esi.h
src/esi/Except.h
src/esi/ExpatParser.cc
src/esi/ExpatParser.h
src/esi/Expression.cc
src/esi/Expression.h
src/esi/Include.cc
src/esi/Include.h
src/esi/Libxml2Parser.cc
src/esi/Libxml2Parser.h
src/esi/Literal.h
src/esi/Module.cc
src/esi/Module.h
src/esi/Parser.cc
src/esi/Parser.h
src/esi/Segment.cc
src/esi/Segment.h
src/esi/Sequence.cc
src/esi/Sequence.h
src/esi/Var.h
src/esi/VarState.cc
src/esi/VarState.h
src/eui/Config.cc
src/eui/Config.h
src/eui/Eui48.cc
src/eui/Eui48.h
src/eui/Eui64.cc
src/eui/Eui64.h
src/event.cc
src/event.h
src/external_acl.cc
src/fatal.h
src/fd.cc
src/fd.h
src/fde.cc
src/fde.h
src/filemap.cc
src/format/ByteCode.h
src/format/Config.cc
src/format/Config.h
src/format/Format.cc
src/format/Format.h
src/format/Quoting.cc
src/format/Quoting.h
src/format/Token.cc
src/format/Token.h
src/format/TokenTableEntry.h
src/fqdncache.cc
src/fqdncache.h
src/fs/Module.cc
src/fs/Module.h
src/fs/aufs/StoreFSaufs.cc
src/fs/diskd/StoreFSdiskd.cc
src/fs/rock/RockDbCell.cc
src/fs/rock/RockDbCell.h
src/fs/rock/RockForward.h
src/fs/rock/RockIoRequests.cc
src/fs/rock/RockIoRequests.h
src/fs/rock/RockIoState.cc
src/fs/rock/RockIoState.h
src/fs/rock/RockRebuild.cc
src/fs/rock/RockRebuild.h
src/fs/rock/RockStoreFileSystem.cc
src/fs/rock/RockStoreFileSystem.h
src/fs/rock/RockSwapDir.cc
src/fs/rock/RockSwapDir.h
src/fs/ufs/RebuildState.cc
src/fs/ufs/RebuildState.h
src/fs/ufs/StoreFSufs.cc
src/fs/ufs/StoreFSufs.h
src/fs/ufs/StoreSearchUFS.cc
src/fs/ufs/StoreSearchUFS.h
src/fs/ufs/UFSStoreState.cc
src/fs/ufs/UFSStoreState.h
src/fs/ufs/UFSStrategy.cc
src/fs/ufs/UFSStrategy.h
src/fs/ufs/UFSSwapDir.cc
src/fs/ufs/UFSSwapDir.h
src/fs/ufs/UFSSwapLogParser.cc
src/fs/ufs/UFSSwapLogParser.h
src/ftp/Elements.cc
src/ftp/Elements.h
src/ftp/Parsing.cc
src/ftp/Parsing.h
src/globals.h
src/gopher.cc
src/gopher.h
src/helper.cc
src/helper.h
src/helper/ChildConfig.cc
src/helper/ChildConfig.h
src/helper/Reply.cc
src/helper/Reply.h
src/helper/Request.h
src/helper/ResultCode.h
src/helper/forward.h
src/hier_code.h
src/htcp.cc
src/htcp.h
src/http.cc
src/http.h
src/http/MethodType.h
src/http/ProtocolVersion.h
src/http/RegisteredHeaders.h
src/http/RequestMethod.cc
src/http/RequestMethod.h
src/http/StatusCode.cc
src/http/StatusCode.h
src/http/StatusLine.cc
src/http/StatusLine.h
src/http/forward.h
src/http/one/Parser.cc
src/http/one/Parser.h
src/http/one/RequestParser.cc
src/http/one/RequestParser.h
src/http/one/forward.h
src/icmp/Icmp.cc
src/icmp/Icmp.h
src/icmp/Icmp4.cc
src/icmp/Icmp4.h
src/icmp/Icmp6.cc
src/icmp/Icmp6.h
src/icmp/IcmpConfig.h
src/icmp/IcmpPinger.cc
src/icmp/IcmpPinger.h
src/icmp/IcmpSquid.cc
src/icmp/IcmpSquid.h
src/icmp/net_db.cc
src/icmp/net_db.h
src/icmp/pinger.cc
src/icmp/testIcmp.cc
src/icmp/testIcmp.h
src/icp_opcode.h
src/icp_v2.cc
src/icp_v3.cc
src/ident/AclIdent.cc
src/ident/AclIdent.h
src/ident/Config.h
src/ident/Ident.cc
src/ident/Ident.h
src/int.cc
src/int.h
src/internal.cc
src/internal.h
src/ip/Address.cc
src/ip/Address.h
src/ip/Intercept.cc
src/ip/Intercept.h
src/ip/Qos.cci
src/ip/QosConfig.cc
src/ip/QosConfig.h
src/ip/forward.h
src/ip/stubQosConfig.cc
src/ip/testAddress.cc
src/ip/testAddress.h
src/ip/tools.cc
src/ip/tools.h
src/ipc.cc
src/ipc/AtomicWord.cc
src/ipc/AtomicWord.h
src/ipc/Coordinator.cc
src/ipc/Coordinator.h
src/ipc/FdNotes.cc
src/ipc/FdNotes.h
src/ipc/Forwarder.cc
src/ipc/Forwarder.h
src/ipc/Inquirer.cc
src/ipc/Inquirer.h
src/ipc/Kid.cc
src/ipc/Kid.h
src/ipc/Kids.cc
src/ipc/Kids.h
src/ipc/MemMap.cc
src/ipc/MemMap.h
src/ipc/Messages.h
src/ipc/Port.cc
src/ipc/Port.h
src/ipc/Queue.cc
src/ipc/Queue.h
src/ipc/ReadWriteLock.cc
src/ipc/ReadWriteLock.h
src/ipc/Request.h
src/ipc/Response.h
src/ipc/SharedListen.cc
src/ipc/SharedListen.h
src/ipc/StartListening.cc
src/ipc/StartListening.h
src/ipc/StoreMap.cc
src/ipc/StoreMap.h
src/ipc/Strand.cc
src/ipc/Strand.h
src/ipc/StrandCoord.cc
src/ipc/StrandCoord.h
src/ipc/StrandCoords.h
src/ipc/StrandSearch.cc
src/ipc/StrandSearch.h
src/ipc/TypedMsgHdr.cc
src/ipc/TypedMsgHdr.h
src/ipc/UdsOp.cc
src/ipc/UdsOp.h
src/ipc/forward.h
src/ipc/mem/FlexibleArray.h
src/ipc/mem/Page.cc
src/ipc/mem/Page.h
src/ipc/mem/PagePool.cc
src/ipc/mem/PagePool.h
src/ipc/mem/PageStack.cc
src/ipc/mem/PageStack.h
src/ipc/mem/Pages.cc
src/ipc/mem/Pages.h
src/ipc/mem/Pointer.h
src/ipc/mem/Segment.cc
src/ipc/mem/Segment.h
src/ipc_win32.cc
src/ipcache.cc
src/ipcache.h
src/log/Config.cc
src/log/Config.h
src/log/CustomLog.h
src/log/File.cc
src/log/File.h
src/log/FormatHttpdCombined.cc
src/log/FormatHttpdCommon.cc
src/log/FormatSquidCustom.cc
src/log/FormatSquidIcap.cc
src/log/FormatSquidNative.cc
src/log/FormatSquidReferer.cc
src/log/FormatSquidUseragent.cc
src/log/Formats.h
src/log/ModDaemon.cc
src/log/ModDaemon.h
src/log/ModStdio.cc
src/log/ModStdio.h
src/log/ModSyslog.cc
src/log/ModSyslog.h
src/log/ModUdp.cc
src/log/ModUdp.h
src/log/TcpLogger.cc
src/log/TcpLogger.h
src/log/access_log.cc
src/log/access_log.h
src/lookup_t.h
src/main.cc
src/mem/AllocatorProxy.cc
src/mem/AllocatorProxy.h
src/mem/Pool.cc
src/mem/Pool.h
src/mem/PoolChunked.cc
src/mem/PoolChunked.h
src/mem/PoolMalloc.cc
src/mem/PoolMalloc.h
src/mem/forward.h
src/mem/old_api.cc
src/mem_node.cc
src/mem_node.h
src/mgr/Action.cc
src/mgr/Action.h
src/mgr/ActionCreator.h
src/mgr/ActionParams.cc
src/mgr/ActionParams.h
src/mgr/ActionPasswordList.cc
src/mgr/ActionPasswordList.h
src/mgr/ActionProfile.h
src/mgr/ActionWriter.cc
src/mgr/ActionWriter.h
src/mgr/BasicActions.cc
src/mgr/BasicActions.h
src/mgr/Command.cc
src/mgr/Command.h
src/mgr/CountersAction.cc
src/mgr/CountersAction.h
src/mgr/Filler.cc
src/mgr/Filler.h
src/mgr/Forwarder.cc
src/mgr/Forwarder.h
src/mgr/FunAction.cc
src/mgr/FunAction.h
src/mgr/InfoAction.cc
src/mgr/InfoAction.h
src/mgr/Inquirer.cc
src/mgr/Inquirer.h
src/mgr/IntParam.cc
src/mgr/IntParam.h
src/mgr/IntervalAction.cc
src/mgr/IntervalAction.h
src/mgr/IoAction.cc
src/mgr/IoAction.h
src/mgr/QueryParam.h
src/mgr/QueryParams.cc
src/mgr/QueryParams.h
src/mgr/Registration.cc
src/mgr/Registration.h
src/mgr/Request.cc
src/mgr/Request.h
src/mgr/Response.cc
src/mgr/Response.h
src/mgr/ServiceTimesAction.cc
src/mgr/ServiceTimesAction.h
src/mgr/StoreIoAction.cc
src/mgr/StoreIoAction.h
src/mgr/StoreToCommWriter.cc
src/mgr/StoreToCommWriter.h
src/mgr/StringParam.cc
src/mgr/StringParam.h
src/mgr/forward.h
src/mime.cc
src/mime.h
src/mime_header.cc
src/mime_header.h
src/multicast.cc
src/multicast.h
src/neighbors.cc
src/neighbors.h
src/parser/Tokenizer.cc
src/parser/Tokenizer.h
src/parser/testTokenizer.cc
src/parser/testTokenizer.h
src/pconn.cc
src/pconn.h
src/peer_digest.cc
src/peer_proxy_negotiate_auth.cc
src/peer_proxy_negotiate_auth.h
src/peer_select.cc
src/peer_sourcehash.cc
src/peer_sourcehash.h
src/peer_userhash.cc
src/peer_userhash.h
src/protos.h
src/recv-announce.cc
src/redirect.cc
src/redirect.h
src/refresh.cc
src/refresh.h
src/repl/heap/store_heap_replacement.cc
src/repl/heap/store_heap_replacement.h
src/repl/heap/store_repl_heap.cc
src/repl/lru/store_repl_lru.cc
src/repl_modules.h
src/send-announce.cc
src/send-announce.h
src/servers/FtpServer.cc
src/servers/FtpServer.h
src/servers/HttpServer.cc
src/servers/forward.h
src/snmp/Forwarder.cc
src/snmp/Forwarder.h
src/snmp/Inquirer.cc
src/snmp/Inquirer.h
src/snmp/Pdu.cc
src/snmp/Pdu.h
src/snmp/Request.cc
src/snmp/Request.h
src/snmp/Response.cc
src/snmp/Response.h
src/snmp/Session.cc
src/snmp/Session.h
src/snmp/Var.cc
src/snmp/Var.h
src/snmp/forward.h
src/snmp_agent.cc
src/snmp_agent.h
src/snmp_core.cc
src/snmp_core.h
src/ssl/Config.cc
src/ssl/Config.h
src/ssl/ErrorDetail.cc
src/ssl/ErrorDetail.h
src/ssl/ErrorDetailManager.cc
src/ssl/ErrorDetailManager.h
src/ssl/PeerConnector.cc
src/ssl/PeerConnector.h
src/ssl/ProxyCerts.h
src/ssl/ServerBump.cc
src/ssl/ServerBump.h
src/ssl/bio.cc
src/ssl/bio.h
src/ssl/cert_validate_message.cc
src/ssl/cert_validate_message.h
src/ssl/certificate_db.cc
src/ssl/certificate_db.h
src/ssl/context_storage.cc
src/ssl/context_storage.h
src/ssl/crtd_message.cc
src/ssl/crtd_message.h
src/ssl/gadgets.cc
src/ssl/gadgets.h
src/ssl/helper.cc
src/ssl/helper.h
src/ssl/ssl_crtd.cc
src/ssl/stub_libsslutil.cc
src/ssl/support.cc
src/ssl/support.h
src/stat.cc
src/stat.h
src/stmem.cc
src/stmem.h
src/store.cc
src/store_client.cc
src/store_digest.cc
src/store_digest.h
src/store_dir.cc
src/store_io.cc
src/store_key_md5.cc
src/store_key_md5.h
src/store_log.cc
src/store_log.h
src/store_rebuild.cc
src/store_rebuild.h
src/store_swapin.cc
src/store_swapin.h
src/store_swapmeta.cc
src/store_swapout.cc
src/swap_log_op.h
src/test_cache_digest.cc
src/tests/CapturingStoreEntry.h
src/tests/SBufFindTest.cc
src/tests/SBufFindTest.h
src/tests/STUB.h
src/tests/TestSwapDir.cc
src/tests/TestSwapDir.h
src/tests/stub_CollapsedForwarding.cc
src/tests/stub_CommIO.cc
src/tests/stub_DelayId.cc
src/tests/stub_DiskIOModule.cc
src/tests/stub_EventLoop.cc
src/tests/stub_HelperChildConfig.cc
src/tests/stub_HttpReply.cc
src/tests/stub_HttpRequest.cc
src/tests/stub_MemBuf.cc
src/tests/stub_MemObject.cc
src/tests/stub_MemStore.cc
src/tests/stub_Port.cc
src/tests/stub_SBuf.cc
src/tests/stub_SBufDetailedStats.cc
src/tests/stub_UdsOp.cc
src/tests/stub_access_log.cc
src/tests/stub_acl.cc
src/tests/stub_cache_cf.cc
src/tests/stub_cache_manager.cc
src/tests/stub_cbdata.cc
src/tests/stub_client_db.cc
src/tests/stub_client_side.cc
src/tests/stub_client_side_request.cc
src/tests/stub_comm.cc
src/tests/stub_debug.cc
src/tests/stub_errorpage.cc
src/tests/stub_event.cc
src/tests/stub_external_acl.cc
src/tests/stub_fatal.cc
src/tests/stub_fd.cc
src/tests/stub_helper.cc
src/tests/stub_http.cc
src/tests/stub_icp.cc
src/tests/stub_internal.cc
src/tests/stub_ipc.cc
src/tests/stub_ipc_Forwarder.cc
src/tests/stub_ipc_TypedMsgHdr.cc
src/tests/stub_ipcache.cc
src/tests/stub_libauth.cc
src/tests/stub_libauth_acls.cc
src/tests/stub_libcomm.cc
src/tests/stub_libeui.cc
src/tests/stub_libformat.cc
src/tests/stub_libicmp.cc
src/tests/stub_libmem.cc
src/tests/stub_libmgr.cc
src/tests/stub_libsslsquid.cc
src/tests/stub_mem_node.cc
src/tests/stub_mime.cc
src/tests/stub_neighbors.cc
src/tests/stub_pconn.cc
src/tests/stub_redirect.cc
src/tests/stub_stat.cc
src/tests/stub_store.cc
src/tests/stub_store_client.cc
src/tests/stub_store_digest.cc
src/tests/stub_store_rebuild.cc
src/tests/stub_store_stats.cc
src/tests/stub_store_swapout.cc
src/tests/stub_tools.cc
src/tests/stub_wccp2.cc
src/tests/stub_wordlist.cc
src/tests/testACLMaxUserIP.cc
src/tests/testACLMaxUserIP.h
src/tests/testAuth.cc
src/tests/testAuth.h
src/tests/testBoilerplate.cc
src/tests/testCacheManager.cc
src/tests/testConfigParser.h
src/tests/testDiskIO.cc
src/tests/testEvent.cc
src/tests/testEventLoop.cc
src/tests/testHttp1Parser.cc
src/tests/testHttp1Parser.h
src/tests/testHttpReply.cc
src/tests/testHttpRequest.cc
src/tests/testHttpRequestMethod.cc
src/tests/testMain.cc
src/tests/testRefCount.cc
src/tests/testRock.cc
src/tests/testRock.h
src/tests/testSBuf.cc
src/tests/testSBuf.h
src/tests/testSBufList.cc
src/tests/testSBufList.h
src/tests/testStatHist.cc
src/tests/testStatHist.h
src/tests/testStore.cc
src/tests/testStore.h
src/tests/testStoreController.cc
src/tests/testStoreEntryStream.cc
src/tests/testStoreHashIndex.cc
src/tests/testStoreSupport.cc
src/tests/testStoreSupport.h
src/tests/testString.cc
src/tests/testURL.cc
src/tests/testUfs.cc
src/tests/testUriScheme.cc
src/tests/test_http_range.cc
src/time.cc
src/tools.cc
src/tools.h
src/tunnel.cc
src/typedefs.h
src/ufsdump.cc
src/unlinkd.cc
src/unlinkd.h
src/unlinkd_daemon.cc
src/url.cc
src/urn.cc
src/urn.h
src/wccp.cc
src/wccp.h
src/wccp2.cc
src/wccp2.h
src/whois.cc
src/whois.h
src/win32.cc
src/win32.h
src/wordlist.cc
src/wordlist.h
test-suite/ESIExpressions.cc
test-suite/VirtualDeleteOperator.cc
test-suite/debug.cc
test-suite/hash.c
test-suite/hash.h
test-suite/mem_hdr_test.cc
test-suite/mem_node_test.cc
test-suite/membanger.c
test-suite/pconn-banger.c
test-suite/splay.cc
test-suite/syntheticoperators.cc
test-suite/tcp-banger2.c
test-suite/tcp-banger3.c
test-suite/test_tools.cc
test-suite/waiter.c
tools/cachemgr.cc
tools/purge/conffile.cc
tools/purge/convert.cc
tools/purge/copyout.cc
tools/purge/purge.cc
tools/purge/signal.cc
tools/purge/socket.cc
tools/purge/squid-tlv.cc
tools/squidclient/Parameters.h
tools/squidclient/Ping.cc
tools/squidclient/Ping.h
tools/squidclient/Transport.cc
tools/squidclient/Transport.h
tools/squidclient/gssapi_support.cc
tools/squidclient/gssapi_support.h
tools/squidclient/squidclient.cc

index bc0b2d4a9712a435d3b6f086f80c9f312c610724..a6da5a98ff157ca1409f3529b1d91ad6935a8740 100644 (file)
@@ -194,7 +194,7 @@ static int re_match_2(struct re_pattern_buffer * buffer, const char *string1,
 #if HAVE_ALLOCA_H
 #include <alloca.h>
 #else /* not __GNUC__ or HAVE_ALLOCA_H */
-#ifndef _AIX                   /* Already did AIX, up at the top.  */
+#ifndef _AIX            /* Already did AIX, up at the top.  */
 char *alloca();
 #endif /* not _AIX */
 #endif /* not HAVE_ALLOCA_H */
@@ -205,9 +205,9 @@ char *alloca();
 #define REGEX_ALLOCATE alloca
 
 /* Assumes a `char *destination' variable.  */
-#define REGEX_REALLOCATE(source, osize, nsize)                         \
-  (destination = (char *) alloca (nsize),                              \
-   memcpy (destination, source, osize),                                \
+#define REGEX_REALLOCATE(source, osize, nsize)              \
+  (destination = (char *) alloca (nsize),               \
+   memcpy (destination, source, osize),             \
    destination)
 
 #endif /* not REGEX_MALLOC */
@@ -215,7 +215,7 @@ char *alloca();
 /* True if `size1' is non-NULL and PTR is pointing anywhere inside
  * `string1' or just past its end.  This works if PTR is NULL, which is
  * a good thing.  */
-#define FIRST_STRING_P(ptr)                                    \
+#define FIRST_STRING_P(ptr)                     \
   (size1 && string1 <= (ptr) && (ptr) <= string1 + size1)
 
 /* (Re)Allocate N items of type T using malloc, or fail.  */
@@ -223,11 +223,11 @@ char *alloca();
 #define RETALLOC(addr, n, t) ((addr) = (t *) realloc (addr, (n) * sizeof (t)))
 #define REGEX_TALLOC(n, t) ((t *) REGEX_ALLOCATE ((n) * sizeof (t)))
 
-#define BYTEWIDTH 8            /* In bits.  */
+#define BYTEWIDTH 8     /* In bits.  */
 
 #define STREQ(s1, s2) ((strcmp (s1, s2) == 0))
 
-#if !defined(__MINGW32__)      /* MinGW defines boolean */
+#if !defined(__MINGW32__)   /* MinGW defines boolean */
 typedef char boolean;
 #endif
 #define false 0
@@ -348,14 +348,14 @@ typedef enum {
      * bytes of number.  */
     set_number_at,
 
-    wordchar,                  /* Matches any word-constituent character.  */
-    notwordchar,               /* Matches any char that is not a word-constituent.  */
+    wordchar,           /* Matches any word-constituent character.  */
+    notwordchar,        /* Matches any char that is not a word-constituent.  */
 
-    wordbeg,                   /* Succeeds if at word beginning.  */
-    wordend,                   /* Succeeds if at word end.  */
+    wordbeg,            /* Succeeds if at word beginning.  */
+    wordend,            /* Succeeds if at word end.  */
 
-    wordbound,                 /* Succeeds if at a word boundary.  */
-    notwordbound               /* Succeeds if not at a word boundary.  */
+    wordbound,          /* Succeeds if at a word boundary.  */
+    notwordbound        /* Succeeds if not at a word boundary.  */
 
 } re_opcode_t;
 \f
@@ -363,29 +363,29 @@ typedef enum {
 
 /* Store NUMBER in two contiguous bytes starting at DESTINATION.  */
 
-#define STORE_NUMBER(destination, number)                              \
-  do {                                                                 \
-    (destination)[0] = (number) & 0377;                                        \
-    (destination)[1] = (number) >> 8;                                  \
+#define STORE_NUMBER(destination, number)               \
+  do {                                  \
+    (destination)[0] = (number) & 0377;                 \
+    (destination)[1] = (number) >> 8;                   \
   } while (0)
 
 /* Same as STORE_NUMBER, except increment DESTINATION to
  * the byte after where the number is stored.  Therefore, DESTINATION
  * must be an lvalue.  */
 
-#define STORE_NUMBER_AND_INCR(destination, number)                     \
-  do {                                                                 \
-    STORE_NUMBER (destination, number);                                        \
-    (destination) += 2;                                                        \
+#define STORE_NUMBER_AND_INCR(destination, number)          \
+  do {                                  \
+    STORE_NUMBER (destination, number);                 \
+    (destination) += 2;                         \
   } while (0)
 
 /* Put into DESTINATION a number stored in two contiguous bytes starting
  * at SOURCE.  */
 
-#define EXTRACT_NUMBER(destination, source)                            \
-  do {                                                                 \
-    (destination) = *(source) & 0377;                                  \
-    (destination) += SIGN_EXTEND_CHAR (*((source) + 1)) << 8;          \
+#define EXTRACT_NUMBER(destination, source)             \
+  do {                                  \
+    (destination) = *(source) & 0377;                   \
+    (destination) += SIGN_EXTEND_CHAR (*((source) + 1)) << 8;       \
   } while (0)
 
 #ifdef DEBUG
@@ -399,7 +399,7 @@ unsigned char *source;
     *dest += temp << 8;
 }
 
-#ifndef EXTRACT_MACROS         /* To debug the macros.  */
+#ifndef EXTRACT_MACROS      /* To debug the macros.  */
 #undef EXTRACT_NUMBER
 #define EXTRACT_NUMBER(dest, src) extract_number (&dest, src)
 #endif /* not EXTRACT_MACROS */
@@ -409,10 +409,10 @@ unsigned char *source;
 /* Same as EXTRACT_NUMBER, except increment SOURCE to after the number.
  * SOURCE must be an lvalue.  */
 
-#define EXTRACT_NUMBER_AND_INCR(destination, source)                   \
-  do {                                                                 \
-    EXTRACT_NUMBER (destination, source);                              \
-    (source) += 2;                                                     \
+#define EXTRACT_NUMBER_AND_INCR(destination, source)            \
+  do {                                  \
+    EXTRACT_NUMBER (destination, source);               \
+    (source) += 2;                          \
   } while (0)
 
 #ifdef DEBUG
@@ -448,9 +448,9 @@ static int debug = 0;
 #define DEBUG_PRINT2(x1, x2) if (debug) printf (x1, x2)
 #define DEBUG_PRINT3(x1, x2, x3) if (debug) printf (x1, x2, x3)
 #define DEBUG_PRINT4(x1, x2, x3, x4) if (debug) printf (x1, x2, x3, x4)
-#define DEBUG_PRINT_COMPILED_PATTERN(p, s, e)                          \
+#define DEBUG_PRINT_COMPILED_PATTERN(p, s, e)               \
   if (debug) print_partial_compiled_pattern (s, e)
-#define DEBUG_PRINT_DOUBLE_STRING(w, s1, sz1, s2, sz2)                 \
+#define DEBUG_PRINT_DOUBLE_STRING(w, s1, sz1, s2, sz2)          \
   if (debug) print_double_string (w, s1, sz1, s2, sz2)
 
 extern void printchar();
@@ -723,23 +723,23 @@ int size2;
 /* This table gives an error message for each of the error codes listed
  * in regex.h.  Obviously the order here has to be same as there.  */
 
-static const char *re_error_msg[] = {NULL,                             /* REG_NOERROR */
-                                     "No match",                       /* REG_NOMATCH */
-                                     "Invalid regular expression",     /* REG_BADPAT */
-                                     "Invalid collation character",    /* REG_ECOLLATE */
-                                     "Invalid character class name",   /* REG_ECTYPE */
-                                     "Trailing backslash",     /* REG_EESCAPE */
-                                     "Invalid back reference", /* REG_ESUBREG */
-                                     "Unmatched [ or [^",      /* REG_EBRACK */
-                                     "Unmatched ( or \\(",     /* REG_EPAREN */
-                                     "Unmatched \\{",          /* REG_EBRACE */
-                                     "Invalid content of \\{\\}",      /* REG_BADBR */
-                                     "Invalid range end",      /* REG_ERANGE */
-                                     "Memory exhausted",               /* REG_ESPACE */
-                                     "Invalid preceding regular expression",   /* REG_BADRPT */
-                                     "Premature end of regular expression",    /* REG_EEND */
-                                     "Regular expression too big",     /* REG_ESIZE */
-                                     "Unmatched ) or \\)",     /* REG_ERPAREN */
+static const char *re_error_msg[] = {NULL,              /* REG_NOERROR */
+                                     "No match",            /* REG_NOMATCH */
+                                     "Invalid regular expression",  /* REG_BADPAT */
+                                     "Invalid collation character", /* REG_ECOLLATE */
+                                     "Invalid character class name",    /* REG_ECTYPE */
+                                     "Trailing backslash",  /* REG_EESCAPE */
+                                     "Invalid back reference",  /* REG_ESUBREG */
+                                     "Unmatched [ or [^",   /* REG_EBRACK */
+                                     "Unmatched ( or \\(",  /* REG_EPAREN */
+                                     "Unmatched \\{",       /* REG_EBRACE */
+                                     "Invalid content of \\{\\}",   /* REG_BADBR */
+                                     "Invalid range end",   /* REG_ERANGE */
+                                     "Memory exhausted",        /* REG_ESPACE */
+                                     "Invalid preceding regular expression",    /* REG_BADRPT */
+                                     "Premature end of regular expression", /* REG_EEND */
+                                     "Regular expression too big",  /* REG_ESIZE */
+                                     "Unmatched ) or \\)",  /* REG_ERPAREN */
                                     };
 \f
 /* Subroutine declarations and macros for regex_compile.  */
@@ -748,17 +748,17 @@ static const char *re_error_msg[] = {NULL,                                /* REG_NOERROR */
  * if necessary.  Also cast from a signed character in the constant
  * string passed to us by the user to an unsigned char that we can use
  * as an array index (in, e.g., `translate').  */
-#define PATFETCH(c)                                                    \
-  do {if (p == pend) return REG_EEND;                                  \
-    c = (unsigned char) *p++;                                          \
-    if (translate) c = translate[c];                                   \
+#define PATFETCH(c)                         \
+  do {if (p == pend) return REG_EEND;                   \
+    c = (unsigned char) *p++;                       \
+    if (translate) c = translate[c];                    \
   } while (0)
 
 /* Fetch the next character in the uncompiled pattern, with no
  * translation.  */
-#define PATFETCH_RAW(c)                                                        \
-  do {if (p == pend) return REG_EEND;                                  \
-    c = (unsigned char) *p++;                                          \
+#define PATFETCH_RAW(c)                         \
+  do {if (p == pend) return REG_EEND;                   \
+    c = (unsigned char) *p++;                       \
   } while (0)
 
 /* Go backwards one character in the pattern.  */
@@ -776,32 +776,32 @@ static const char *re_error_msg[] = {NULL,                                /* REG_NOERROR */
 #define INIT_BUF_SIZE  32
 
 /* Make sure we have at least N more bytes of space in buffer.  */
-#define GET_BUFFER_SPACE(n)                                            \
-    while (b - bufp->buffer + (n) > bufp->allocated)                   \
+#define GET_BUFFER_SPACE(n)                     \
+    while (b - bufp->buffer + (n) > bufp->allocated)            \
       EXTEND_BUFFER ()
 
 /* Make sure we have one more byte of buffer space and then add C to it.  */
-#define BUF_PUSH(c)                                                    \
-  do {                                                                 \
-    GET_BUFFER_SPACE (1);                                              \
-    *b++ = (unsigned char) (c);                                                \
+#define BUF_PUSH(c)                         \
+  do {                                  \
+    GET_BUFFER_SPACE (1);                       \
+    *b++ = (unsigned char) (c);                     \
   } while (0)
 
 /* Ensure we have two more bytes of buffer space and then append C1 and C2.  */
-#define BUF_PUSH_2(c1, c2)                                             \
-  do {                                                                 \
-    GET_BUFFER_SPACE (2);                                              \
-    *b++ = (unsigned char) (c1);                                       \
-    *b++ = (unsigned char) (c2);                                       \
+#define BUF_PUSH_2(c1, c2)                      \
+  do {                                  \
+    GET_BUFFER_SPACE (2);                       \
+    *b++ = (unsigned char) (c1);                    \
+    *b++ = (unsigned char) (c2);                    \
   } while (0)
 
 /* As with BUF_PUSH_2, except for three bytes.  */
-#define BUF_PUSH_3(c1, c2, c3)                                         \
-  do {                                                                 \
-    GET_BUFFER_SPACE (3);                                              \
-    *b++ = (unsigned char) (c1);                                       \
-    *b++ = (unsigned char) (c2);                                       \
-    *b++ = (unsigned char) (c3);                                       \
+#define BUF_PUSH_3(c1, c2, c3)                      \
+  do {                                  \
+    GET_BUFFER_SPACE (3);                       \
+    *b++ = (unsigned char) (c1);                    \
+    *b++ = (unsigned char) (c2);                    \
+    *b++ = (unsigned char) (c3);                    \
   } while (0)
 
 /* Store a jump with opcode OP at LOC to location TO.  We store a
@@ -830,29 +830,29 @@ static const char *re_error_msg[] = {NULL,                                /* REG_NOERROR */
  * reset the pointers that pointed into the old block to point to the
  * correct places in the new one.  If extending the buffer results in it
  * being larger than MAX_BUF_SIZE, then flag memory exhausted.  */
-#define EXTEND_BUFFER()                                                        \
-  do {                                                                         \
-    unsigned char *old_buffer = bufp->buffer;                          \
-    if (bufp->allocated == MAX_BUF_SIZE)                               \
-      return REG_ESIZE;                                                        \
-    bufp->allocated <<= 1;                                             \
-    if (bufp->allocated > MAX_BUF_SIZE)                                        \
-      bufp->allocated = MAX_BUF_SIZE;                                  \
+#define EXTEND_BUFFER()                         \
+  do {                                  \
+    unsigned char *old_buffer = bufp->buffer;               \
+    if (bufp->allocated == MAX_BUF_SIZE)                \
+      return REG_ESIZE;                         \
+    bufp->allocated <<= 1;                      \
+    if (bufp->allocated > MAX_BUF_SIZE)                 \
+      bufp->allocated = MAX_BUF_SIZE;                   \
     bufp->buffer = (unsigned char *) realloc (bufp->buffer, bufp->allocated);\
-    if (bufp->buffer == NULL)                                          \
-      return REG_ESPACE;                                               \
-    /* If the buffer moved, move all the pointers into it.  */         \
-    if (old_buffer != bufp->buffer)                                    \
-      {                                                                        \
-        b = (b - old_buffer) + bufp->buffer;                           \
-        begalt = (begalt - old_buffer) + bufp->buffer;                 \
-        if (fixup_alt_jump)                                            \
+    if (bufp->buffer == NULL)                       \
+      return REG_ESPACE;                        \
+    /* If the buffer moved, move all the pointers into it.  */      \
+    if (old_buffer != bufp->buffer)                 \
+      {                                 \
+        b = (b - old_buffer) + bufp->buffer;                \
+        begalt = (begalt - old_buffer) + bufp->buffer;          \
+        if (fixup_alt_jump)                     \
           fixup_alt_jump = (fixup_alt_jump - old_buffer) + bufp->buffer;\
-        if (laststart)                                                 \
-          laststart = (laststart - old_buffer) + bufp->buffer;         \
-        if (pending_exact)                                             \
-          pending_exact = (pending_exact - old_buffer) + bufp->buffer; \
-      }                                                                        \
+        if (laststart)                          \
+          laststart = (laststart - old_buffer) + bufp->buffer;      \
+        if (pending_exact)                      \
+          pending_exact = (pending_exact - old_buffer) + bufp->buffer;  \
+      }                                 \
   } while (0)
 
 /* Since we have one byte reserved for the register number argument to
@@ -881,7 +881,7 @@ typedef struct {
 typedef struct {
     compile_stack_elt_t *stack;
     unsigned size;
-    unsigned avail;            /* Offset of next open position.  */
+    unsigned avail;     /* Offset of next open position.  */
 } compile_stack_type;
 
 static void store_op1(re_opcode_t op, unsigned char *loc, int arg);
@@ -904,30 +904,30 @@ static reg_errcode_t compile_range(const char **p_ptr, const char *pend, char *t
    |= 1 << (((unsigned char) c) % BYTEWIDTH))
 
 /* Get the next unsigned number in the uncompiled pattern.  */
-#define GET_UNSIGNED_NUMBER(num)                                       \
-  { if (p != pend)                                                     \
-     {                                                                 \
-       PATFETCH (c);                                                   \
-       while (ISDIGIT (c))                                             \
-         {                                                             \
-           if (num < 0)                                                        \
-              num = 0;                                                 \
-           num = num * 10 + c - '0';                                   \
-           if (p == pend)                                              \
-              break;                                                   \
-           PATFETCH (c);                                               \
-         }                                                             \
-       }                                                               \
+#define GET_UNSIGNED_NUMBER(num)                    \
+  { if (p != pend)                          \
+     {                                  \
+       PATFETCH (c);                            \
+       while (ISDIGIT (c))                      \
+         {                              \
+           if (num < 0)                         \
+              num = 0;                          \
+           num = num * 10 + c - '0';                    \
+           if (p == pend)                       \
+              break;                            \
+           PATFETCH (c);                        \
+         }                              \
+       }                                \
     }
 
-#define CHAR_CLASS_MAX_LENGTH  6       /* Namely, `xdigit'.  */
+#define CHAR_CLASS_MAX_LENGTH  6    /* Namely, `xdigit'.  */
 
-#define IS_CHAR_CLASS(string)                                          \
-   (STREQ (string, "alpha") || STREQ (string, "upper")                 \
-    || STREQ (string, "lower") || STREQ (string, "digit")              \
-    || STREQ (string, "alnum") || STREQ (string, "xdigit")             \
-    || STREQ (string, "space") || STREQ (string, "print")              \
-    || STREQ (string, "punct") || STREQ (string, "graph")              \
+#define IS_CHAR_CLASS(string)                       \
+   (STREQ (string, "alpha") || STREQ (string, "upper")          \
+    || STREQ (string, "lower") || STREQ (string, "digit")       \
+    || STREQ (string, "alnum") || STREQ (string, "xdigit")      \
+    || STREQ (string, "space") || STREQ (string, "print")       \
+    || STREQ (string, "punct") || STREQ (string, "graph")       \
     || STREQ (string, "cntrl") || STREQ (string, "blank"))
 \f
 /* `regex_compile' compiles PATTERN (of length SIZE) according to SYNTAX.
@@ -1038,11 +1038,12 @@ regex_compile(const char *pattern, int size, reg_syntax_t syntax, struct re_patt
 #endif
 
     if (bufp->allocated == 0) {
-        if (bufp->buffer) {    /* If zero allocated, but buffer is non-null, try to realloc
-                                * enough space.  This loses if buffer's address is bogus, but
-                                * that is the user's responsibility.  */
+        if (bufp->buffer) {
+            /* If zero allocated, but buffer is non-null, try to realloc
+                     * enough space.  This loses if buffer's address is bogus, but
+                     * that is the user's responsibility.  */
             RETALLOC(bufp->buffer, INIT_BUF_SIZE, unsigned char);
-        } else {               /* Caller did not allocate a buffer.  Do it for them.  */
+        } else {        /* Caller did not allocate a buffer.  Do it for them.  */
             bufp->buffer = TALLOC(INIT_BUF_SIZE, unsigned char);
         }
         if (!bufp->buffer)
@@ -1058,7 +1059,7 @@ regex_compile(const char *pattern, int size, reg_syntax_t syntax, struct re_patt
 
         switch (c) {
         case '^': {
-            if (               /* If at start of pattern, it's an operator.  */
+            if (        /* If at start of pattern, it's an operator.  */
                 p == pattern + 1
                 /* If context independent, it's an operator.  */
                 || syntax & RE_CONTEXT_INDEP_ANCHORS
@@ -1071,7 +1072,7 @@ regex_compile(const char *pattern, int size, reg_syntax_t syntax, struct re_patt
         break;
 
         case '$': {
-            if (               /* If at end of pattern, it's an operator.  */
+            if (        /* If at end of pattern, it's an operator.  */
                 p == pend
                 /* If context independent, it's an operator.  */
                 || syntax & RE_CONTEXT_INDEP_ANCHORS
@@ -1146,16 +1147,17 @@ handle_plus:
 
                 /* Now we know whether or not zero matches is allowed
                  * and also whether or not two or more matches is allowed.  */
-                if (many_times_ok) {   /* More than one repetition is allowed, so put in at the
-                                        * end a backward relative jump from `b' to before the next
-                                        * jump we're going to put in below (which jumps from
-                                        * laststart to after this jump).
-                                        *
-                                        * But if we are at the `*' in the exact sequence `.*\n',
-                                        * insert an unconditional jump backwards to the .,
-                                        * instead of the beginning of the loop.  This way we only
-                                        * push a failure point once, instead of every time
-                                        * through the loop.  */
+                if (many_times_ok) {
+                    /* More than one repetition is allowed, so put in at the
+                         * end a backward relative jump from `b' to before the next
+                         * jump we're going to put in below (which jumps from
+                         * laststart to after this jump).
+                         *
+                         * But if we are at the `*' in the exact sequence `.*\n',
+                         * insert an unconditional jump backwards to the .,
+                         * instead of the beginning of the loop.  This way we only
+                         * push a failure point once, instead of every time
+                         * through the loop.  */
                     assert(p - 1 > pattern);
 
                     /* Allocate the space for the jump.  */
@@ -1169,7 +1171,7 @@ handle_plus:
                     if (TRANSLATE(*(p - 2)) == TRANSLATE('.')
                             && zero_times_ok
                             && p < pend && TRANSLATE(*p) == TRANSLATE('\n')
-                            && !(syntax & RE_DOT_NEWLINE)) {   /* We have .*\n.  */
+                            && !(syntax & RE_DOT_NEWLINE)) {    /* We have .*\n.  */
                         STORE_JUMP(jump, b, laststart);
                         keep_string_p = true;
                     } else
@@ -1274,10 +1276,10 @@ handle_plus:
                         && !(p - 3 >= pattern && p[-3] == '[' && p[-2] == '^')
                         && *p != ']') {
                     reg_errcode_t ret
-                    = compile_range(&p, pend, translate, syntax, b);
+                        = compile_range(&p, pend, translate, syntax, b);
                     if (ret != REG_NOERROR)
                         return ret;
-                } else if (p[0] == '-' && p[1] != ']') {       /* This handles ranges made up of characters only.  */
+                } else if (p[0] == '-' && p[1] != ']') {    /* This handles ranges made up of characters only.  */
                     reg_errcode_t ret;
 
                     /* Move past the `-'.  */
@@ -1290,7 +1292,7 @@ handle_plus:
                 /* See if we're at the beginning of a possible character
                  * class.  */
 
-                else if (syntax & RE_CHAR_CLASSES && c == '[' && *p == ':') {  /* Leave room for the null.  */
+                else if (syntax & RE_CHAR_CLASSES && c == '[' && *p == ':') {   /* Leave room for the null.  */
                     char str[CHAR_CLASS_MAX_LENGTH + 1];
 
                     PATFETCH(c);
@@ -1437,7 +1439,7 @@ handle_open:
                  * be valid.  */
                 COMPILE_STACK_TOP.begalt_offset = begalt - bufp->buffer;
                 COMPILE_STACK_TOP.fixup_alt_jump
-                = fixup_alt_jump ? fixup_alt_jump - bufp->buffer + 1 : 0;
+                    = fixup_alt_jump ? fixup_alt_jump - bufp->buffer + 1 : 0;
                 COMPILE_STACK_TOP.laststart_offset = b - bufp->buffer;
                 COMPILE_STACK_TOP.regnum = regnum;
 
@@ -1471,10 +1473,11 @@ handle_open:
                         return REG_ERPAREN;
                 }
 handle_close:
-                if (fixup_alt_jump) {  /* Push a dummy failure point at the end of the
-                                        * alternative for a possible future
-                                        * `pop_failure_jump' to pop.  See comments at
-                                        * `push_dummy_failure' in `re_match_2'.  */
+                if (fixup_alt_jump) {
+                    /* Push a dummy failure point at the end of the
+                         * alternative for a possible future
+                         * `pop_failure_jump' to pop.  See comments at
+                         * `push_dummy_failure' in `re_match_2'.  */
                     BUF_PUSH(push_dummy_failure);
 
                     /* We allocated space for this jump when we assigned
@@ -1500,9 +1503,9 @@ handle_close:
                     compile_stack.avail--;
                     begalt = bufp->buffer + COMPILE_STACK_TOP.begalt_offset;
                     fixup_alt_jump
-                    = COMPILE_STACK_TOP.fixup_alt_jump
-                      ? bufp->buffer + COMPILE_STACK_TOP.fixup_alt_jump - 1
-                      : 0;
+                        = COMPILE_STACK_TOP.fixup_alt_jump
+                          ? bufp->buffer + COMPILE_STACK_TOP.fixup_alt_jump - 1
+                          : 0;
                     laststart = bufp->buffer + COMPILE_STACK_TOP.laststart_offset;
                     this_group_regnum = COMPILE_STACK_TOP.regnum;
                     /* If we've reached MAX_REGNUM groups, then this open
@@ -1514,7 +1517,7 @@ handle_close:
                      * groups were inside this one.  */
                     if (this_group_regnum <= MAX_REGNUM) {
                         unsigned char *inner_group_loc
-                        = bufp->buffer + COMPILE_STACK_TOP.inner_group_offset;
+                            = bufp->buffer + COMPILE_STACK_TOP.inner_group_offset;
 
                         *inner_group_loc = regnum - this_group_regnum;
                         BUF_PUSH_3(stop_memory, this_group_regnum,
@@ -1523,7 +1526,7 @@ handle_close:
                 }
                 break;
 
-            case '|':          /* `\|'.  */
+            case '|':       /* `\|'.  */
                 if (syntax & RE_LIMITED_OPS || syntax & RE_NO_BK_VBAR)
                     goto normal_backslash;
 handle_alt:
@@ -1647,8 +1650,9 @@ handle_interval: {
                      * jump_n <succeed_n addr> <jump count>
                      * (The upper bound and `jump_n' are omitted if
                      * `upper_bound' is 1, though.)  */
-                    else {     /* If the upper bound is > 1, we need to insert
-                                * more at the end of the loop.  */
+                    else {
+                        /* If the upper bound is > 1, we need to insert
+                        * more at the end of the loop.  */
                         unsigned nbytes = 10 + (upper_bound > 1) * 10;
 
                         GET_BUFFER_SPACE(nbytes);
@@ -1670,13 +1674,14 @@ handle_interval: {
                         insert_op2(set_number_at, laststart, 5, lower_bound, b);
                         b += 5;
 
-                        if (upper_bound > 1) { /* More than one repetition is allowed, so
-                                                * append a backward jump to the `succeed_n'
-                                                * that starts this interval.
-                                                *
-                                                * When we've reached this during matching,
-                                                * we'll have matched the interval once, so
-                                                * jump back only `upper_bound - 1' times.  */
+                        if (upper_bound > 1) {
+                            /* More than one repetition is allowed, so
+                             * append a backward jump to the `succeed_n'
+                             * that starts this interval.
+                             *
+                             * When we've reached this during matching,
+                             * we'll have matched the interval once, so
+                             * jump back only `upper_bound - 1' times.  */
                             STORE_JUMP2(jump_n, b, laststart + 5,
                                         upper_bound - 1);
                             b += 5;
@@ -1827,8 +1832,8 @@ normal_char:
             BUF_PUSH(c);
             (*pending_exact)++;
             break;
-        }                      /* switch (c) */
-    }                          /* while p != pend */
+        }           /* switch (c) */
+    }               /* while p != pend */
 
     /* Through the pattern now.  */
 
@@ -1851,7 +1856,7 @@ normal_char:
 #endif /* DEBUG */
 
     return REG_NOERROR;
-}                              /* regex_compile */
+}               /* regex_compile */
 \f
 /* Subroutines for `regex_compile'.  */
 
@@ -2028,7 +2033,7 @@ typedef const unsigned char *fail_stack_elt_t;
 typedef struct {
     fail_stack_elt_t *stack;
     unsigned size;
-    unsigned avail;            /* Offset of next open position.  */
+    unsigned avail;     /* Offset of next open position.  */
 } fail_stack_type;
 
 #define FAIL_STACK_EMPTY()     (fail_stack.avail == 0)
@@ -2038,16 +2043,16 @@ typedef struct {
 
 /* Initialize `fail_stack'.  Do `return -2' if the alloc fails.  */
 
-#define INIT_FAIL_STACK()                                              \
-  do {                                                                 \
-    fail_stack.stack = (fail_stack_elt_t *)                            \
-      REGEX_ALLOCATE (INIT_FAILURE_ALLOC * sizeof (fail_stack_elt_t)); \
-                                                                       \
-    if (fail_stack.stack == NULL)                                      \
-      return -2;                                                       \
-                                                                       \
-    fail_stack.size = INIT_FAILURE_ALLOC;                              \
-    fail_stack.avail = 0;                                              \
+#define INIT_FAIL_STACK()                       \
+  do {                                  \
+    fail_stack.stack = (fail_stack_elt_t *)             \
+      REGEX_ALLOCATE (INIT_FAILURE_ALLOC * sizeof (fail_stack_elt_t));  \
+                                    \
+    if (fail_stack.stack == NULL)                   \
+      return -2;                            \
+                                    \
+    fail_stack.size = INIT_FAILURE_ALLOC;               \
+    fail_stack.avail = 0;                       \
   } while (0)
 
 /* Double the size of FAIL_STACK, up to approximately `re_max_failures' items.
@@ -2057,34 +2062,34 @@ typedef struct {
  *
  * REGEX_REALLOCATE requires `destination' be declared.   */
 
-#define DOUBLE_FAIL_STACK(fail_stack)                                  \
-  ((fail_stack).size > re_max_failures * MAX_FAILURE_ITEMS             \
-   ? 0                                                                 \
-   : ((fail_stack).stack = (fail_stack_elt_t *)                                \
-        REGEX_REALLOCATE ((fail_stack).stack,                          \
-          (fail_stack).size * sizeof (fail_stack_elt_t),               \
-          ((fail_stack).size << 1) * sizeof (fail_stack_elt_t)),       \
-                                                                       \
-      (fail_stack).stack == NULL                                       \
-      ? 0                                                              \
-      : ((fail_stack).size <<= 1,                                      \
+#define DOUBLE_FAIL_STACK(fail_stack)                   \
+  ((fail_stack).size > re_max_failures * MAX_FAILURE_ITEMS      \
+   ? 0                                  \
+   : ((fail_stack).stack = (fail_stack_elt_t *)             \
+        REGEX_REALLOCATE ((fail_stack).stack,               \
+          (fail_stack).size * sizeof (fail_stack_elt_t),        \
+          ((fail_stack).size << 1) * sizeof (fail_stack_elt_t)),    \
+                                    \
+      (fail_stack).stack == NULL                    \
+      ? 0                               \
+      : ((fail_stack).size <<= 1,                   \
          1)))
 
 /* Push PATTERN_OP on FAIL_STACK.
  *
  * Return 1 if was able to do so and 0 if ran out of memory allocating
  * space to do so.  */
-#define PUSH_PATTERN_OP(pattern_op, fail_stack)                                \
-  ((FAIL_STACK_FULL ()                                                 \
-    && !DOUBLE_FAIL_STACK (fail_stack))                                        \
-    ? 0                                                                        \
-    : ((fail_stack).stack[(fail_stack).avail++] = pattern_op,          \
+#define PUSH_PATTERN_OP(pattern_op, fail_stack)             \
+  ((FAIL_STACK_FULL ()                          \
+    && !DOUBLE_FAIL_STACK (fail_stack))                 \
+    ? 0                                 \
+    : ((fail_stack).stack[(fail_stack).avail++] = pattern_op,       \
        1))
 
 /* This pushes an item onto the failure stack.  Must be a four-byte
  * value.  Assumes the variable `fail_stack'.  Probably should only
  * be called from within `PUSH_FAILURE_POINT'.  */
-#define PUSH_FAILURE_ITEM(item)                                                \
+#define PUSH_FAILURE_ITEM(item)                     \
   fail_stack.stack[fail_stack.avail++] = (fail_stack_elt_t) item
 
 /* The complement operation.  Assumes `fail_stack' is nonempty.  */
@@ -2108,78 +2113,78 @@ typedef struct {
  *
  * Does `return FAILURE_CODE' if runs out of memory.  */
 
-#define PUSH_FAILURE_POINT(pattern_place, string_place, failure_code)  \
-  do {                                                                 \
-    char *destination;                                                 \
-    /* Must be int, so when we don't save any registers, the arithmetic        \
-       of 0 + -1 isn't done as unsigned.  */                           \
-    int this_reg;                                                      \
-                                                                       \
-    DEBUG_STATEMENT (failure_id++);                                    \
-    DEBUG_STATEMENT (nfailure_points_pushed++);                                \
-    DEBUG_PRINT2 ("\nPUSH_FAILURE_POINT #%u:\n", failure_id);          \
+#define PUSH_FAILURE_POINT(pattern_place, string_place, failure_code)   \
+  do {                                  \
+    char *destination;                          \
+    /* Must be int, so when we don't save any registers, the arithmetic \
+       of 0 + -1 isn't done as unsigned.  */                \
+    int this_reg;                           \
+                                        \
+    DEBUG_STATEMENT (failure_id++);                 \
+    DEBUG_STATEMENT (nfailure_points_pushed++);             \
+    DEBUG_PRINT2 ("\nPUSH_FAILURE_POINT #%u:\n", failure_id);       \
     DEBUG_PRINT2 ("  Before push, next avail: %d\n", (fail_stack).avail);\
     DEBUG_PRINT2 ("                     size: %d\n", (fail_stack).size);\
-                                                                       \
-    DEBUG_PRINT2 ("  slots needed: %d\n", NUM_FAILURE_ITEMS);          \
-    DEBUG_PRINT2 ("     available: %d\n", REMAINING_AVAIL_SLOTS);      \
-                                                                       \
-    /* Ensure we have enough space allocated for what we will push.  */        \
-    while (REMAINING_AVAIL_SLOTS < NUM_FAILURE_ITEMS)                  \
-      {                                                                        \
-        if (!DOUBLE_FAIL_STACK (fail_stack))                   \
-          return failure_code;                                         \
-                                                                       \
-        DEBUG_PRINT2 ("\n  Doubled stack; size now: %d\n",             \
-                      (fail_stack).size);                              \
+                                    \
+    DEBUG_PRINT2 ("  slots needed: %d\n", NUM_FAILURE_ITEMS);       \
+    DEBUG_PRINT2 ("     available: %d\n", REMAINING_AVAIL_SLOTS);   \
+                                    \
+    /* Ensure we have enough space allocated for what we will push.  */ \
+    while (REMAINING_AVAIL_SLOTS < NUM_FAILURE_ITEMS)           \
+      {                                 \
+        if (!DOUBLE_FAIL_STACK (fail_stack))            \
+          return failure_code;                      \
+                                    \
+        DEBUG_PRINT2 ("\n  Doubled stack; size now: %d\n",      \
+               (fail_stack).size);              \
         DEBUG_PRINT2 ("  slots available: %d\n", REMAINING_AVAIL_SLOTS);\
-      }                                                                        \
-                                                                       \
-    /* Push the info, starting with the registers.  */                 \
-    DEBUG_PRINT1 ("\n");                                               \
-                                                                       \
-    for (this_reg = lowest_active_reg; this_reg <= highest_active_reg; \
-         this_reg++)                                                   \
-      {                                                                        \
-       DEBUG_PRINT2 ("  Pushing reg: %d\n", this_reg);                 \
-        DEBUG_STATEMENT (num_regs_pushed++);                           \
-                                                                       \
-       DEBUG_PRINT2 ("    start: 0x%x\n", regstart[this_reg]);         \
-        PUSH_FAILURE_ITEM (regstart[this_reg]);                                \
+      }                                 \
+                                    \
+    /* Push the info, starting with the registers.  */          \
+    DEBUG_PRINT1 ("\n");                        \
+                                    \
+    for (this_reg = lowest_active_reg; this_reg <= highest_active_reg;  \
+         this_reg++)                            \
+      {                                 \
+    DEBUG_PRINT2 ("  Pushing reg: %d\n", this_reg);         \
+        DEBUG_STATEMENT (num_regs_pushed++);                \
+                                    \
+    DEBUG_PRINT2 ("    start: 0x%x\n", regstart[this_reg]);     \
+        PUSH_FAILURE_ITEM (regstart[this_reg]);             \
                                                                         \
-       DEBUG_PRINT2 ("    end: 0x%x\n", regend[this_reg]);             \
-        PUSH_FAILURE_ITEM (regend[this_reg]);                          \
-                                                                       \
-       DEBUG_PRINT2 ("    info: 0x%x\n      ", reg_info[this_reg]);    \
-        DEBUG_PRINT2 (" match_null=%d",                                        \
-                      REG_MATCH_NULL_STRING_P (reg_info[this_reg]));   \
-        DEBUG_PRINT2 (" active=%d", IS_ACTIVE (reg_info[this_reg]));   \
-        DEBUG_PRINT2 (" matched_something=%d",                         \
-                      MATCHED_SOMETHING (reg_info[this_reg]));         \
-        DEBUG_PRINT2 (" ever_matched=%d",                              \
-                      EVER_MATCHED_SOMETHING (reg_info[this_reg]));    \
-       DEBUG_PRINT1 ("\n");                                            \
-        PUSH_FAILURE_ITEM (reg_info[this_reg].word);                   \
-      }                                                                        \
-                                                                       \
+    DEBUG_PRINT2 ("    end: 0x%x\n", regend[this_reg]);     \
+        PUSH_FAILURE_ITEM (regend[this_reg]);               \
+                                    \
+    DEBUG_PRINT2 ("    info: 0x%x\n      ", reg_info[this_reg]);    \
+        DEBUG_PRINT2 (" match_null=%d",                 \
+                      REG_MATCH_NULL_STRING_P (reg_info[this_reg]));    \
+        DEBUG_PRINT2 (" active=%d", IS_ACTIVE (reg_info[this_reg]));    \
+        DEBUG_PRINT2 (" matched_something=%d",              \
+                      MATCHED_SOMETHING (reg_info[this_reg]));      \
+        DEBUG_PRINT2 (" ever_matched=%d",               \
+                      EVER_MATCHED_SOMETHING (reg_info[this_reg])); \
+    DEBUG_PRINT1 ("\n");                        \
+        PUSH_FAILURE_ITEM (reg_info[this_reg].word);            \
+      }                                 \
+                                    \
     DEBUG_PRINT2 ("  Pushing  low active reg: %d\n", lowest_active_reg);\
-    PUSH_FAILURE_ITEM (lowest_active_reg);                             \
-                                                                       \
+    PUSH_FAILURE_ITEM (lowest_active_reg);              \
+                                    \
     DEBUG_PRINT2 ("  Pushing high active reg: %d\n", highest_active_reg);\
-    PUSH_FAILURE_ITEM (highest_active_reg);                            \
-                                                                       \
-    DEBUG_PRINT2 ("  Pushing pattern 0x%x: ", pattern_place);          \
-    DEBUG_PRINT_COMPILED_PATTERN (bufp, pattern_place, pend);          \
-    PUSH_FAILURE_ITEM (pattern_place);                                 \
-                                                                       \
-    DEBUG_PRINT2 ("  Pushing string 0x%x: `", string_place);           \
+    PUSH_FAILURE_ITEM (highest_active_reg);             \
+                                    \
+    DEBUG_PRINT2 ("  Pushing pattern 0x%x: ", pattern_place);       \
+    DEBUG_PRINT_COMPILED_PATTERN (bufp, pattern_place, pend);       \
+    PUSH_FAILURE_ITEM (pattern_place);                  \
+                                    \
+    DEBUG_PRINT2 ("  Pushing string 0x%x: `", string_place);        \
     DEBUG_PRINT_DOUBLE_STRING (string_place, string1, size1, string2,   \
-                                size2);                                \
-    DEBUG_PRINT1 ("'\n");                                              \
-    PUSH_FAILURE_ITEM (string_place);                                  \
-                                                                       \
-    DEBUG_PRINT2 ("  Pushing failure id: %u\n", failure_id);           \
-    DEBUG_PUSH (failure_id);                                           \
+                 size2);                \
+    DEBUG_PRINT1 ("'\n");                       \
+    PUSH_FAILURE_ITEM (string_place);                   \
+                                    \
+    DEBUG_PRINT2 ("  Pushing failure id: %u\n", failure_id);        \
+    DEBUG_PUSH (failure_id);                        \
   } while (0)
 
 /* This is the number of items that are pushed and popped on the stack
@@ -2188,7 +2193,7 @@ typedef struct {
 
 /* Individual items aside from the registers.  */
 #ifdef DEBUG
-#define NUM_NONREG_ITEMS 5     /* Includes failure point id.  */
+#define NUM_NONREG_ITEMS 5  /* Includes failure point id.  */
 #else
 #define NUM_NONREG_ITEMS 4
 #endif
@@ -2197,8 +2202,8 @@ typedef struct {
 #define MAX_FAILURE_ITEMS ((num_regs - 1) * NUM_REG_ITEMS + NUM_NONREG_ITEMS)
 
 /* We actually push this many items.  */
-#define NUM_FAILURE_ITEMS                                              \
-  ((highest_active_reg - lowest_active_reg + 1) * NUM_REG_ITEMS        \
+#define NUM_FAILURE_ITEMS                       \
+  ((highest_active_reg - lowest_active_reg + 1) * NUM_REG_ITEMS     \
     + NUM_NONREG_ITEMS)
 
 /* How many items can still be added to the stack without overflowing it.  */
@@ -2217,61 +2222,61 @@ typedef struct {
  * `pend', `string1', `size1', `string2', and `size2'.  */
 
 #define POP_FAILURE_POINT(str, pat, low_reg, high_reg, regstart, regend, reg_info)\
-{                                                                      \
-  DEBUG_STATEMENT (fail_stack_elt_t failure_id;)                       \
-  int this_reg;                                                                \
-  const unsigned char *string_temp;                                    \
-                                                                       \
-  assert (!FAIL_STACK_EMPTY ());                                       \
-                                                                       \
-  /* Remove failure points and point to how many regs pushed.  */      \
-  DEBUG_PRINT1 ("POP_FAILURE_POINT:\n");                               \
-  DEBUG_PRINT2 ("  Before pop, next avail: %d\n", fail_stack.avail);   \
-  DEBUG_PRINT2 ("                    size: %d\n", fail_stack.size);    \
-                                                                       \
-  assert (fail_stack.avail >= NUM_NONREG_ITEMS);                       \
-                                                                       \
-  DEBUG_POP (&failure_id);                                             \
-  DEBUG_PRINT2 ("  Popping failure id: %u\n", failure_id);             \
-                                                                       \
-  /* If the saved string location is NULL, it came from an             \
-     on_failure_keep_string_jump opcode, and we want to throw away the \
-     saved NULL, thus retaining our current position in the string.  */        \
-  string_temp = POP_FAILURE_ITEM ();                                   \
-  if (string_temp != NULL)                                             \
-    str = (const char *) string_temp;                                  \
-                                                                       \
-  DEBUG_PRINT2 ("  Popping string 0x%x: `", str);                      \
-  DEBUG_PRINT_DOUBLE_STRING (str, string1, size1, string2, size2);     \
-  DEBUG_PRINT1 ("'\n");                                                        \
-                                                                       \
-  pat = (unsigned char *) POP_FAILURE_ITEM ();                         \
-  DEBUG_PRINT2 ("  Popping pattern 0x%x: ", pat);                      \
-  DEBUG_PRINT_COMPILED_PATTERN (bufp, pat, pend);                      \
-                                                                       \
-  /* Restore register info.  */                                                \
-  high_reg = (unsigned long) POP_FAILURE_ITEM ();                      \
-  DEBUG_PRINT2 ("  Popping high active reg: %d\n", high_reg);          \
-                                                                       \
-  low_reg = (unsigned long) POP_FAILURE_ITEM ();                       \
-  DEBUG_PRINT2 ("  Popping  low active reg: %d\n", low_reg);           \
-                                                                       \
-  for (this_reg = high_reg; this_reg >= low_reg; this_reg--)           \
-    {                                                                  \
-      DEBUG_PRINT2 ("    Popping reg: %d\n", this_reg);                        \
-                                                                       \
-      reg_info[this_reg].word = POP_FAILURE_ITEM ();                   \
-      DEBUG_PRINT2 ("      info: 0x%x\n", reg_info[this_reg]);         \
-                                                                       \
-      regend[this_reg] = (const char *) POP_FAILURE_ITEM ();           \
-      DEBUG_PRINT2 ("      end: 0x%x\n", regend[this_reg]);            \
-                                                                       \
-      regstart[this_reg] = (const char *) POP_FAILURE_ITEM ();         \
-      DEBUG_PRINT2 ("      start: 0x%x\n", regstart[this_reg]);                \
-    }                                                                  \
-                                                                       \
-  DEBUG_STATEMENT (nfailure_points_popped++);                          \
-}                              /* POP_FAILURE_POINT */
+{                                   \
+  DEBUG_STATEMENT (fail_stack_elt_t failure_id;)            \
+  int this_reg;                             \
+  const unsigned char *string_temp;                 \
+                                    \
+  assert (!FAIL_STACK_EMPTY ());                    \
+                                    \
+  /* Remove failure points and point to how many regs pushed.  */   \
+  DEBUG_PRINT1 ("POP_FAILURE_POINT:\n");                \
+  DEBUG_PRINT2 ("  Before pop, next avail: %d\n", fail_stack.avail);    \
+  DEBUG_PRINT2 ("                    size: %d\n", fail_stack.size); \
+                                    \
+  assert (fail_stack.avail >= NUM_NONREG_ITEMS);            \
+                                    \
+  DEBUG_POP (&failure_id);                      \
+  DEBUG_PRINT2 ("  Popping failure id: %u\n", failure_id);      \
+                                    \
+  /* If the saved string location is NULL, it came from an      \
+     on_failure_keep_string_jump opcode, and we want to throw away the  \
+     saved NULL, thus retaining our current position in the string.  */ \
+  string_temp = POP_FAILURE_ITEM ();                    \
+  if (string_temp != NULL)                      \
+    str = (const char *) string_temp;                   \
+                                    \
+  DEBUG_PRINT2 ("  Popping string 0x%x: `", str);           \
+  DEBUG_PRINT_DOUBLE_STRING (str, string1, size1, string2, size2);  \
+  DEBUG_PRINT1 ("'\n");                         \
+                                    \
+  pat = (unsigned char *) POP_FAILURE_ITEM ();              \
+  DEBUG_PRINT2 ("  Popping pattern 0x%x: ", pat);           \
+  DEBUG_PRINT_COMPILED_PATTERN (bufp, pat, pend);           \
+                                    \
+  /* Restore register info.  */                     \
+  high_reg = (unsigned long) POP_FAILURE_ITEM ();           \
+  DEBUG_PRINT2 ("  Popping high active reg: %d\n", high_reg);       \
+                                    \
+  low_reg = (unsigned long) POP_FAILURE_ITEM ();            \
+  DEBUG_PRINT2 ("  Popping  low active reg: %d\n", low_reg);        \
+                                    \
+  for (this_reg = high_reg; this_reg >= low_reg; this_reg--)        \
+    {                                   \
+      DEBUG_PRINT2 ("    Popping reg: %d\n", this_reg);         \
+                                    \
+      reg_info[this_reg].word = POP_FAILURE_ITEM ();            \
+      DEBUG_PRINT2 ("      info: 0x%x\n", reg_info[this_reg]);      \
+                                    \
+      regend[this_reg] = (const char *) POP_FAILURE_ITEM ();        \
+      DEBUG_PRINT2 ("      end: 0x%x\n", regend[this_reg]);     \
+                                    \
+      regstart[this_reg] = (const char *) POP_FAILURE_ITEM ();      \
+      DEBUG_PRINT2 ("      start: 0x%x\n", regstart[this_reg]);     \
+    }                                   \
+                                    \
+  DEBUG_STATEMENT (nfailure_points_popped++);               \
+}               /* POP_FAILURE_POINT */
 \f
 /* re_compile_fastmap computes a ``fastmap'' for the compiled pattern in
  * BUFP.  A fastmap records which of the (1 << BYTEWIDTH) possible
@@ -2320,8 +2325,8 @@ struct re_pattern_buffer *bufp;
     assert(fastmap != NULL && p != NULL);
 
     INIT_FAIL_STACK();
-    memset(fastmap, 0, 1 << BYTEWIDTH);                /* Assume nothing's valid.  */
-    bufp->fastmap_accurate = 1;        /* It will be when we're done.  */
+    memset(fastmap, 0, 1 << BYTEWIDTH);     /* Assume nothing's valid.  */
+    bufp->fastmap_accurate = 1; /* It will be when we're done.  */
     bufp->can_be_null = 0;
 
     while (p != pend || !FAIL_STACK_EMPTY()) {
@@ -2343,17 +2348,17 @@ struct re_pattern_buffer *bufp;
 #endif
         {
 
-            /* I guess the idea here is to simply not bother with a fastmap
-             * if a backreference is used, since it's too hard to figure out
-             * the fastmap for the corresponding group.  Setting
-             * `can_be_null' stops `re_search_2' from using the fastmap, so
-             * that is all we do.  */
+        /* I guess the idea here is to simply not bother with a fastmap
+         * if a backreference is used, since it's too hard to figure out
+         * the fastmap for the corresponding group.  Setting
+         * `can_be_null' stops `re_search_2' from using the fastmap, so
+         * that is all we do.  */
         case duplicate:
             bufp->can_be_null = 1;
             return 0;
 
-            /* Following are the cases which match a character.  These end
-             * with `break'.  */
+        /* Following are the cases which match a character.  These end
+         * with `break'.  */
 
         case exactn:
             fastmap[p[1]] = 1;
@@ -2466,7 +2471,7 @@ handle_on_failure_jump:
                 bufp->can_be_null = 1;
 
             if (succeed_n_p) {
-                EXTRACT_NUMBER_AND_INCR(k, p); /* Skip the n.  */
+                EXTRACT_NUMBER_AND_INCR(k, p);  /* Skip the n.  */
                 succeed_n_p = false;
             }
             continue;
@@ -2479,7 +2484,7 @@ handle_on_failure_jump:
             EXTRACT_NUMBER_AND_INCR(k, p);
             if (k == 0) {
                 p -= 4;
-                succeed_n_p = true;    /* Spaghetti code alert.  */
+                succeed_n_p = true; /* Spaghetti code alert.  */
                 goto handle_on_failure_jump;
             }
             continue;
@@ -2494,8 +2499,8 @@ handle_on_failure_jump:
             continue;
 
         default:
-            abort();           /* We have listed all the cases.  */
-        }                      /* switch *p++ */
+            abort();        /* We have listed all the cases.  */
+        }           /* switch *p++ */
 
         /* Getting here means we have found the possible starting
          * characters for one path of the pattern -- and that the empty
@@ -2505,13 +2510,13 @@ handle_on_failure_jump:
          * does these things.  */
         path_can_be_null = false;
         p = pend;
-    }                          /* while p */
+    }               /* while p */
 
     /* Set `can_be_null' for the last path (also the first path, if the
      * pattern is empty).  */
     bufp->can_be_null |= path_can_be_null;
     return 0;
-}                              /* re_compile_fastmap */
+}               /* re_compile_fastmap */
 \f
 /* Searching routines.  */
 
@@ -2597,7 +2602,7 @@ int stop;
          * null string, however, we don't need to skip characters; we want
          * the first null string.  */
         if (fastmap && startpos < total_size && !bufp->can_be_null) {
-            if (range > 0) {   /* Searching forwards.  */
+            if (range > 0) {    /* Searching forwards.  */
                 register const char *d;
                 register int lim = 0;
                 int irange = range;
@@ -2619,7 +2624,7 @@ int stop;
                         range--;
 
                 startpos += irange - range;
-            } else {           /* Searching backwards.  */
+            } else {        /* Searching backwards.  */
                 register char c = (size1 == 0 || startpos >= size1
                                    ? string2[startpos - size1]
                                    : string1[startpos]);
@@ -2653,7 +2658,7 @@ advance:
         }
     }
     return -1;
-}                              /* re_search_2 */
+}               /* re_search_2 */
 \f
 /* Declarations and macros for re_match_2.  */
 
@@ -2693,22 +2698,22 @@ static boolean group_match_null_string_p(unsigned char **p, unsigned char *end,
 /* Call this when have matched a real character; it sets `matched' flags
  * for the subexpressions which we are currently inside.  Also records
  * that those subexprs have matched.  */
-#define SET_REGS_MATCHED()                                             \
-  do                                                                   \
-    {                                                                  \
-      unsigned r;                                                      \
-      for (r = lowest_active_reg; r <= highest_active_reg; r++)                \
-        {                                                              \
-          MATCHED_SOMETHING (reg_info[r])                              \
-            = EVER_MATCHED_SOMETHING (reg_info[r])                     \
-            = 1;                                                       \
-        }                                                              \
-    }                                                                  \
+#define SET_REGS_MATCHED()                      \
+  do                                    \
+    {                                   \
+      unsigned r;                           \
+      for (r = lowest_active_reg; r <= highest_active_reg; r++)     \
+        {                               \
+          MATCHED_SOMETHING (reg_info[r])               \
+            = EVER_MATCHED_SOMETHING (reg_info[r])          \
+            = 1;                            \
+        }                               \
+    }                                   \
   while (0)
 
 /* This converts PTR, a pointer into one of the search strings `string1'
  * and `string2' into an offset from the beginning of that string.  */
-#define POINTER_TO_OFFSET(ptr)                                         \
+#define POINTER_TO_OFFSET(ptr)                      \
   (FIRST_STRING_P (ptr) ? (ptr) - string1 : (ptr) - string2 + size1)
 
 /* Registers are set to a sentinel when they haven't yet matched.  */
@@ -2721,15 +2726,15 @@ static boolean group_match_null_string_p(unsigned char **p, unsigned char *end,
 
 /* Call before fetching a character with *d.  This switches over to
  * string2 if necessary.  */
-#define PREFETCH()                                                     \
-  while (d == dend)                                                    \
-    {                                                                  \
-      /* End of string2 => fail.  */                                   \
-      if (dend == end_match_2)                                                 \
-        goto fail;                                                     \
-      /* End of string1 => advance to string2.  */                     \
-      d = string2;                                                     \
-      dend = end_match_2;                                              \
+#define PREFETCH()                          \
+  while (d == dend)                             \
+    {                                   \
+      /* End of string2 => fail.  */                    \
+      if (dend == end_match_2)                      \
+        goto fail;                          \
+      /* End of string1 => advance to string2.  */          \
+      d = string2;                              \
+      dend = end_match_2;                       \
     }
 
 /* Test if at very beginning or at very end of the virtual concatenation
@@ -2744,9 +2749,9 @@ static int at_strings_end(const char *d, const char *end2)
  * two special cases to check for: if past the end of string1, look at
  * the first character in string2; and if before the beginning of
  * string2, look at the last character in string1.  */
-#define WORDCHAR_P(d)                                                  \
-  (re_syntax_table[(d) == end1 ? *string2                                      \
-           : (d) == string2 - 1 ? *(end1 - 1) : *(d)]                  \
+#define WORDCHAR_P(d)                           \
+  (re_syntax_table[(d) == end1 ? *string2                   \
+           : (d) == string2 - 1 ? *(end1 - 1) : *(d)]           \
    == Sword)
 static int
 wordchar_p(const char *d, const char *end1, const char *string2)
@@ -2758,25 +2763,25 @@ wordchar_p(const char *d, const char *end1, const char *string2)
 
 /* Test if the character before D and the one at D differ with respect
  * to being word-constituent.  */
-#define AT_WORD_BOUNDARY(d)                                            \
-  (AT_STRINGS_BEG (d) || at_strings_end(d,end2)                                \
+#define AT_WORD_BOUNDARY(d)                     \
+  (AT_STRINGS_BEG (d) || at_strings_end(d,end2)             \
    || WORDCHAR_P (d - 1) != WORDCHAR_P (d))
 
 /* Free everything we malloc.  */
 #ifdef REGEX_MALLOC
 #define FREE_VAR(var) if (var) free (var); var = NULL
-#define FREE_VARIABLES()                                               \
-  do {                                                                 \
-    FREE_VAR (fail_stack.stack);                                       \
-    FREE_VAR (regstart);                                               \
-    FREE_VAR (regend);                                                 \
-    FREE_VAR (old_regstart);                                           \
-    FREE_VAR (old_regend);                                             \
-    FREE_VAR (best_regstart);                                          \
-    FREE_VAR (best_regend);                                            \
-    FREE_VAR (reg_info);                                               \
-    FREE_VAR (reg_dummy);                                              \
-    FREE_VAR (reg_info_dummy);                                         \
+#define FREE_VARIABLES()                        \
+  do {                                  \
+    FREE_VAR (fail_stack.stack);                    \
+    FREE_VAR (regstart);                        \
+    FREE_VAR (regend);                          \
+    FREE_VAR (old_regstart);                        \
+    FREE_VAR (old_regend);                      \
+    FREE_VAR (best_regstart);                       \
+    FREE_VAR (best_regend);                     \
+    FREE_VAR (reg_info);                        \
+    FREE_VAR (reg_dummy);                       \
+    FREE_VAR (reg_info_dummy);                      \
   } while (0)
 #else /* not REGEX_MALLOC */
 /* Some MIPS systems (at least) want this to free alloca'd storage.  */
@@ -3012,7 +3017,7 @@ int stop;
     for (;;) {
         DEBUG_PRINT2("\n0x%x: ", p);
 
-        if (p == pend) {       /* End of pattern means we might have succeeded.  */
+        if (p == pend) {    /* End of pattern means we might have succeeded.  */
             DEBUG_PRINT1("end of pattern ... ");
 
             /* If we haven't matched the entire string, and we want the
@@ -3020,7 +3025,7 @@ int stop;
             if (d != end_match_2) {
                 DEBUG_PRINT1("backtracking.\n");
 
-                if (!FAIL_STACK_EMPTY()) {     /* More failure points to try.  */
+                if (!FAIL_STACK_EMPTY()) {  /* More failure points to try.  */
                     boolean same_str_p = (FIRST_STRING_P(match_end)
                                           == MATCHING_IN_FIRST_STRING);
 
@@ -3059,24 +3064,26 @@ restore_best_regs:
                         regend[mcnt] = best_regend[mcnt];
                     }
                 }
-            }                  /* d != end_match_2 */
+            }           /* d != end_match_2 */
             DEBUG_PRINT1("Accepting match.\n");
 
             /* If caller wants register contents data back, do it.  */
             if (regs && !bufp->no_sub) {
                 /* Have the register data arrays been allocated?  */
-                if (bufp->regs_allocated == REGS_UNALLOCATED) {                /* No.  So allocate them with malloc.  We need one
-                                                                        * extra element beyond `num_regs' for the `-1' marker
-                                                                        * GNU code uses.  */
+                if (bufp->regs_allocated == REGS_UNALLOCATED) {
+                    /* No.  So allocate them with malloc.  We need one
+                                         * extra element beyond `num_regs' for the `-1' marker
+                                         * GNU code uses.  */
                     regs->num_regs = max(RE_NREGS, num_regs + 1);
                     regs->start = TALLOC(regs->num_regs, regoff_t);
                     regs->end = TALLOC(regs->num_regs, regoff_t);
                     if (regs->start == NULL || regs->end == NULL)
                         return -2;
                     bufp->regs_allocated = REGS_REALLOCATE;
-                } else if (bufp->regs_allocated == REGS_REALLOCATE) {  /* Yes.  If we need more elements than were already
-                                                                        * allocated, reallocate them.  If we need fewer, just
-                                                                        * leave it alone.  */
+                } else if (bufp->regs_allocated == REGS_REALLOCATE) {
+                    /* Yes.  If we need more elements than were already
+                                         * allocated, reallocate them.  If we need fewer, just
+                                         * leave it alone.  */
                     if (regs->num_regs < num_regs + 1) {
                         regs->num_regs = num_regs + 1;
                         RETALLOC(regs->start, regs->num_regs, regoff_t);
@@ -3113,7 +3120,7 @@ restore_best_regs:
                  * -1 at the end.  */
                 for (mcnt = num_regs; mcnt < regs->num_regs; mcnt++)
                     regs->start[mcnt] = regs->end[mcnt] = -1;
-            }                  /* regs && !bufp->no_sub */
+            }           /* regs && !bufp->no_sub */
             FREE_VARIABLES();
             DEBUG_PRINT4("%u failure points pushed, %u popped (%u remain).\n",
                          nfailure_points_pushed, nfailure_points_popped,
@@ -3135,15 +3142,15 @@ restore_best_regs:
         switch ((re_opcode_t) * p++)
 #endif
         {
-            /* Ignore these.  Used to ignore the n of succeed_n's which
-             * currently have n == 0.  */
+        /* Ignore these.  Used to ignore the n of succeed_n's which
+         * currently have n == 0.  */
         case no_op:
             DEBUG_PRINT1("EXECUTING no_op.\n");
             break;
 
-            /* Match the next n pattern characters exactly.  The following
-             * byte in the pattern defines n, and the n bytes after that
-             * are the characters to match.  */
+        /* Match the next n pattern characters exactly.  The following
+         * byte in the pattern defines n, and the n bytes after that
+         * are the characters to match.  */
         case exactn:
             mcnt = *p++;
             DEBUG_PRINT2("EXECUTING exactn %d.\n", mcnt);
@@ -3166,7 +3173,7 @@ restore_best_regs:
             SET_REGS_MATCHED();
             break;
 
-            /* Match any character except possibly a newline or a null.  */
+        /* Match any character except possibly a newline or a null.  */
         case anychar:
             DEBUG_PRINT1("EXECUTING anychar.\n");
 
@@ -3189,7 +3196,7 @@ restore_best_regs:
             DEBUG_PRINT2("EXECUTING charset%s.\n", not ? "_not" : "");
 
             PREFETCH();
-            c = TRANSLATE(*d); /* The character to match.  */
+            c = TRANSLATE(*d);  /* The character to match.  */
 
             /* Cast to `unsigned' instead of `unsigned char' in case the
              * bit list is a full 32 bytes long.  */
@@ -3216,11 +3223,11 @@ restore_best_regs:
             DEBUG_PRINT3("EXECUTING start_memory %d (%d):\n", *p, p[1]);
 
             /* Find out if this group can match the empty string.  */
-            p1 = p;            /* To send to group_match_null_string_p.  */
+            p1 = p;     /* To send to group_match_null_string_p.  */
 
             if (REG_MATCH_NULL_STRING_P(reg_info[*p]) == MATCH_NULL_UNSET_VALUE)
                 REG_MATCH_NULL_STRING_P(reg_info[*p])
-                = group_match_null_string_p(&p1, pend, reg_info);
+                    = group_match_null_string_p(&p1, pend, reg_info);
 
             /* Save the position in the string where we were the last time
              * we were at this open-group operator in case the group is
@@ -3229,7 +3236,7 @@ restore_best_regs:
              * the string in case this attempt to match fails.  */
             old_regstart[*p] = REG_MATCH_NULL_STRING_P(reg_info[*p])
                                ? REG_UNSET(regstart[*p]) ? d : regstart[*p]
-                   : regstart[*p];
+                               : regstart[*p];
             DEBUG_PRINT2("  old_regstart: %d\n",
                          POINTER_TO_OFFSET(old_regstart[*p]));
 
@@ -3251,9 +3258,9 @@ restore_best_regs:
             p += 2;
             break;
 
-            /* The stop_memory opcode represents the end of a group.  Its
-             * arguments are the same as start_memory's: the register
-             * number, and the number of inner groups.  */
+        /* The stop_memory opcode represents the end of a group.  Its
+         * arguments are the same as start_memory's: the register
+         * number, and the number of inner groups.  */
         case stop_memory:
             DEBUG_PRINT3("EXECUTING stop_memory %d (%d):\n", *p, p[1]);
 
@@ -3264,7 +3271,7 @@ restore_best_regs:
              * the string in case this attempt to match fails.  */
             old_regend[*p] = REG_MATCH_NULL_STRING_P(reg_info[*p])
                              ? REG_UNSET(regend[*p]) ? d : regend[*p]
-                 : regend[*p];
+                             : regend[*p];
             DEBUG_PRINT2("      old_regend: %d\n",
                          POINTER_TO_OFFSET(old_regend[*p]));
 
@@ -3279,10 +3286,11 @@ restore_best_regs:
             if (lowest_active_reg == highest_active_reg) {
                 lowest_active_reg = NO_LOWEST_ACTIVE_REG;
                 highest_active_reg = NO_HIGHEST_ACTIVE_REG;
-            } else {           /* We must scan for the new highest active register, since
-                                * it isn't necessarily one less than now: consider
-                                * (a(b)c(d(e)f)g).  When group 3 ends, after the f), the
-                                * new highest active register is 1.  */
+            } else {
+                /* We must scan for the new highest active register, since
+                     * it isn't necessarily one less than now: consider
+                     * (a(b)c(d(e)f)g).  When group 3 ends, after the f), the
+                     * new highest active register is 1.  */
                 unsigned char r = *p - 1;
                 while (r > 0 && !IS_ACTIVE(reg_info[r]))
                     r--;
@@ -3373,11 +3381,11 @@ restore_best_regs:
             p += 2;
             break;
 
-            /* \<digit> has been turned into a `duplicate' command which is
-             * followed by the numeric value of <digit> as the register number.  */
+        /* \<digit> has been turned into a `duplicate' command which is
+         * followed by the numeric value of <digit> as the register number.  */
         case duplicate: {
             register const char *d2, *dend2;
-            int regno = *p++;  /* Get which register to match against.  */
+            int regno = *p++;   /* Get which register to match against.  */
             DEBUG_PRINT2("EXECUTING duplicate %d.\n", regno);
 
             /* Can't back reference a group which we've never matched.  */
@@ -3449,7 +3457,7 @@ restore_best_regs:
             /* In all other cases, we fail.  */
             goto fail;
 
-            /* endline is the dual of begline.  */
+        /* endline is the dual of begline.  */
         case endline:
             DEBUG_PRINT1("EXECUTING endline.\n");
 
@@ -3464,36 +3472,36 @@ restore_best_regs:
             }
             goto fail;
 
-            /* Match at the very beginning of the data.  */
+        /* Match at the very beginning of the data.  */
         case begbuf:
             DEBUG_PRINT1("EXECUTING begbuf.\n");
             if (AT_STRINGS_BEG(d))
                 break;
             goto fail;
 
-            /* Match at the very end of the data.  */
+        /* Match at the very end of the data.  */
         case endbuf:
             DEBUG_PRINT1("EXECUTING endbuf.\n");
             if (at_strings_end(d,end2))
                 break;
             goto fail;
 
-            /* on_failure_keep_string_jump is used to optimize `.*\n'.  It
-             * pushes NULL as the value for the string on the stack.  Then
-             * `pop_failure_point' will keep the current value for the
-             * string, instead of restoring it.  To see why, consider
-             * matching `foo\nbar' against `.*\n'.  The .* matches the foo;
-             * then the . fails against the \n.  But the next thing we want
-             * to do is match the \n against the \n; if we restored the
-             * string value, we would be back at the foo.
-             *
-             * Because this is used only in specific cases, we don't need to
-             * check all the things that `on_failure_jump' does, to make
-             * sure the right things get saved on the stack.  Hence we don't
-             * share its code.  The only reason to push anything on the
-             * stack at all is that otherwise we would have to change
-             * `anychar's code to do something besides goto fail in this
-             * case; that seems worse than this.  */
+        /* on_failure_keep_string_jump is used to optimize `.*\n'.  It
+         * pushes NULL as the value for the string on the stack.  Then
+         * `pop_failure_point' will keep the current value for the
+         * string, instead of restoring it.  To see why, consider
+         * matching `foo\nbar' against `.*\n'.  The .* matches the foo;
+         * then the . fails against the \n.  But the next thing we want
+         * to do is match the \n against the \n; if we restored the
+         * string value, we would be back at the foo.
+         *
+         * Because this is used only in specific cases, we don't need to
+         * check all the things that `on_failure_jump' does, to make
+         * sure the right things get saved on the stack.  Hence we don't
+         * share its code.  The only reason to push anything on the
+         * stack at all is that otherwise we would have to change
+         * `anychar's code to do something besides goto fail in this
+         * case; that seems worse than this.  */
         case on_failure_keep_string_jump:
             DEBUG_PRINT1("EXECUTING on_failure_keep_string_jump");
 
@@ -3503,18 +3511,18 @@ restore_best_regs:
             PUSH_FAILURE_POINT(p + mcnt, NULL, -2);
             break;
 
-            /* Uses of on_failure_jump:
-             *
-             * Each alternative starts with an on_failure_jump that points
-             * to the beginning of the next alternative.  Each alternative
-             * except the last ends with a jump that in effect jumps past
-             * the rest of the alternatives.  (They really jump to the
-             * ending jump of the following alternative, because tensioning
-             * these jumps is a hassle.)
-             *
-             * Repeats start with an on_failure_jump that points past both
-             * the repetition text and either the following jump or
-             * pop_failure_jump back to this on_failure_jump.  */
+        /* Uses of on_failure_jump:
+         *
+         * Each alternative starts with an on_failure_jump that points
+         * to the beginning of the next alternative.  Each alternative
+         * except the last ends with a jump that in effect jumps past
+         * the rest of the alternatives.  (They really jump to the
+         * ending jump of the following alternative, because tensioning
+         * these jumps is a hassle.)
+         *
+         * Repeats start with an on_failure_jump that points past both
+         * the repetition text and either the following jump or
+         * pop_failure_jump back to this on_failure_jump.  */
         case on_failure_jump:
 on_failure:
             DEBUG_PRINT1("EXECUTING on_failure_jump");
@@ -3553,8 +3561,8 @@ on_failure:
             PUSH_FAILURE_POINT(p + mcnt, d, -2);
             break;
 
-            /* A smart repeat ends with `maybe_pop_jump'.
-             * We change it to either `pop_failure_jump' or `jump'.  */
+        /* A smart repeat ends with `maybe_pop_jump'.
+         * We change it to either `pop_failure_jump' or `jump'.  */
         case maybe_pop_jump:
             EXTRACT_NUMBER_AND_INCR(mcnt, p);
             DEBUG_PRINT2("EXECUTING maybe_pop_jump %d.\n", mcnt);
@@ -3578,7 +3586,7 @@ on_failure:
                 while (p2 + 2 < pend
                         && ((re_opcode_t) * p2 == stop_memory
                             || (re_opcode_t) * p2 == start_memory))
-                    p2 += 3;   /* Skip over args, too.  */
+                    p2 += 3;    /* Skip over args, too.  */
 
                 /* If we're at the end of the pattern, we can change.  */
                 if (p2 == pend) {
@@ -3591,7 +3599,7 @@ on_failure:
                 } else if ((re_opcode_t) * p2 == exactn
                            || (bufp->newline_anchor && (re_opcode_t) * p2 == endline)) {
                     register unsigned char c
-                    = *p2 == (unsigned char) endline ? '\n' : p2[2];
+                        = *p2 == (unsigned char) endline ? '\n' : p2[2];
                     p1 = p + mcnt;
 
                     /* p1[0] ... p1[2] are the `on_failure_jump' corresponding
@@ -3618,20 +3626,20 @@ on_failure:
                     }
                 }
             }
-            p -= 2;            /* Point at relative address again.  */
+            p -= 2;     /* Point at relative address again.  */
             if ((re_opcode_t) p[-1] != pop_failure_jump) {
                 p[-1] = (unsigned char) jump;
                 DEBUG_PRINT1("  Match => jump.\n");
                 goto unconditional_jump;
             }
-            /* Note fall through.  */
-
-            /* The end of a simple repeat has a pop_failure_jump back to
-             * its matching on_failure_jump, where the latter will push a
-             * failure point.  The pop_failure_jump takes off failure
-             * points put on by this pop_failure_jump's matching
-             * on_failure_jump; we got through the pattern to here from the
-             * matching on_failure_jump, so didn't fail.  */
+        /* Note fall through.  */
+
+        /* The end of a simple repeat has a pop_failure_jump back to
+         * its matching on_failure_jump, where the latter will push a
+         * failure point.  The pop_failure_jump takes off failure
+         * points put on by this pop_failure_jump's matching
+         * on_failure_jump; we got through the pattern to here from the
+         * matching on_failure_jump, so didn't fail.  */
         case pop_failure_jump: {
             /* We need to pass separate storage for the lowest and
              * highest registers, even though we don't care about the
@@ -3655,23 +3663,23 @@ on_failure:
         /* Unconditionally jump (without popping any failure points).  */
         case jump:
 unconditional_jump:
-            EXTRACT_NUMBER_AND_INCR(mcnt, p);  /* Get the amount to jump.  */
+            EXTRACT_NUMBER_AND_INCR(mcnt, p);   /* Get the amount to jump.  */
             DEBUG_PRINT2("EXECUTING jump %d ", mcnt);
-            p += mcnt;         /* Do the jump.  */
+            p += mcnt;      /* Do the jump.  */
             DEBUG_PRINT2("(to 0x%x).\n", p);
             break;
 
-            /* We need this opcode so we can detect where alternatives end
-             * in `group_match_null_string_p' et al.  */
+        /* We need this opcode so we can detect where alternatives end
+         * in `group_match_null_string_p' et al.  */
         case jump_past_alt:
             DEBUG_PRINT1("EXECUTING jump_past_alt.\n");
             goto unconditional_jump;
 
-            /* Normally, the on_failure_jump pushes a failure point, which
-             * then gets popped at pop_failure_jump.  We will end up at
-             * pop_failure_jump, also, and with a pattern of, say, `a+', we
-             * are skipping over the on_failure_jump, so we have to push
-             * something meaningless for pop_failure_jump to pop.  */
+        /* Normally, the on_failure_jump pushes a failure point, which
+         * then gets popped at pop_failure_jump.  We will end up at
+         * pop_failure_jump, also, and with a pattern of, say, `a+', we
+         * are skipping over the on_failure_jump, so we have to push
+         * something meaningless for pop_failure_jump to pop.  */
         case dummy_failure_jump:
             DEBUG_PRINT1("EXECUTING dummy_failure_jump.\n");
             /* It doesn't matter what we push for the string here.  What
@@ -3679,11 +3687,11 @@ unconditional_jump:
             PUSH_FAILURE_POINT(0, 0, -2);
             goto unconditional_jump;
 
-            /* At the end of an alternative, we need to push a dummy failure
-             * point in case we are followed by a `pop_failure_jump', because
-             * we don't want the failure point for the alternative to be
-             * popped.  For example, matching `(a|ab)*' against `aab'
-             * requires that we match the `ab' alternative.  */
+        /* At the end of an alternative, we need to push a dummy failure
+         * point in case we are followed by a `pop_failure_jump', because
+         * we don't want the failure point for the alternative to be
+         * popped.  For example, matching `(a|ab)*' against `aab'
+         * requires that we match the `ab' alternative.  */
         case push_dummy_failure:
             DEBUG_PRINT1("EXECUTING push_dummy_failure.\n");
             /* See comments just above at `dummy_failure_jump' about the
@@ -3691,8 +3699,8 @@ unconditional_jump:
             PUSH_FAILURE_POINT(0, 0, -2);
             break;
 
-            /* Have to succeed matching what follows at least n times.
-             * After that, handle like `on_failure_jump'.  */
+        /* Have to succeed matching what follows at least n times.
+         * After that, handle like `on_failure_jump'.  */
         case succeed_n:
             EXTRACT_NUMBER(mcnt, p + 2);
             DEBUG_PRINT2("EXECUTING succeed_n %d.\n", mcnt);
@@ -3784,11 +3792,11 @@ unconditional_jump:
         default:
             abort();
         }
-        continue;              /* Successfully executed one pattern command; keep going.  */
+        continue;       /* Successfully executed one pattern command; keep going.  */
 
         /* We goto here if a matching operation fails. */
 fail:
-        if (!FAIL_STACK_EMPTY()) {     /* A restart point is known.  Restore to that state.  */
+        if (!FAIL_STACK_EMPTY()) {  /* A restart point is known.  Restore to that state.  */
             DEBUG_PRINT1("\nFAIL:\n");
             POP_FAILURE_POINT(d, p,
                               lowest_active_reg, highest_active_reg,
@@ -3828,16 +3836,16 @@ fail:
             if (d >= string1 && d <= end1)
                 dend = end_match_1;
         } else
-            break;             /* Matching at this starting point really fails.  */
-    }                          /* for (;;) */
+            break;      /* Matching at this starting point really fails.  */
+    }               /* for (;;) */
 
     if (best_regs_set)
         goto restore_best_regs;
 
     FREE_VARIABLES();
 
-    return -1;                 /* Failure to match.  */
-}                              /* re_match_2 */
+    return -1;          /* Failure to match.  */
+}               /* re_match_2 */
 \f
 /* Subroutine definitions for re_match_2.  */
 
@@ -3864,7 +3872,7 @@ group_match_null_string_p(unsigned char **p, unsigned char *end, register_info_t
          * matching stop_memory.  */
 
         switch ((re_opcode_t) * p1) {
-            /* Could be either a loop or a series of alternatives.  */
+        /* Could be either a loop or a series of alternatives.  */
         case on_failure_jump:
             p1++;
             EXTRACT_NUMBER_AND_INCR(mcnt, p1);
@@ -3927,8 +3935,8 @@ group_match_null_string_p(unsigned char **p, unsigned char *end, register_info_t
                 if (!alt_match_null_string_p(p1, p1 + mcnt, reg_info))
                     return false;
 
-                p1 += mcnt;    /* Get past the n-th alternative.  */
-            }                  /* if mcnt > 0 */
+                p1 += mcnt; /* Get past the n-th alternative.  */
+            }           /* if mcnt > 0 */
             break;
 
         case stop_memory:
@@ -3940,10 +3948,10 @@ group_match_null_string_p(unsigned char **p, unsigned char *end, register_info_t
             if (!common_op_match_null_string_p(&p1, end, reg_info))
                 return false;
         }
-    }                          /* while p1 < end */
+    }               /* while p1 < end */
 
     return false;
-}                              /* group_match_null_string_p */
+}               /* group_match_null_string_p */
 
 /* Similar to group_match_null_string_p, but doesn't deal with alternatives:
  * It expects P to be the first byte of a single alternative and END one
@@ -3960,7 +3968,7 @@ alt_match_null_string_p(unsigned char *p, unsigned char *end, register_info_type
          * to one that can't.  */
 
         switch ((re_opcode_t) * p1) {
-            /* It's a loop.  */
+        /* It's a loop.  */
         case on_failure_jump:
             p1++;
             EXTRACT_NUMBER_AND_INCR(mcnt, p1);
@@ -3971,10 +3979,10 @@ alt_match_null_string_p(unsigned char *p, unsigned char *end, register_info_type
             if (!common_op_match_null_string_p(&p1, end, reg_info))
                 return false;
         }
-    }                          /* while p1 < end */
+    }               /* while p1 < end */
 
     return true;
-}                              /* alt_match_null_string_p */
+}               /* alt_match_null_string_p */
 
 /* Deals with the ops common to group_match_null_string_p and
  * alt_match_null_string_p.
@@ -4016,7 +4024,7 @@ common_op_match_null_string_p( unsigned char **p, unsigned char *end, register_i
             return false;
         break;
 
-        /* If this is an optimized succeed_n for zero times, make the jump.  */
+    /* If this is an optimized succeed_n for zero times, make the jump.  */
     case jump:
         EXTRACT_NUMBER_AND_INCR(mcnt, p1);
         if (mcnt >= 0)
@@ -4053,7 +4061,7 @@ common_op_match_null_string_p( unsigned char **p, unsigned char *end, register_i
 
     *p = p1;
     return true;
-}                              /* common_op_match_null_string_p */
+}               /* common_op_match_null_string_p */
 
 /* Return zero if TRANSLATE[S1] and TRANSLATE[S2] are identical for LEN
  * bytes; nonzero otherwise.  */
@@ -4116,8 +4124,8 @@ int cflags;
 {
     reg_errcode_t ret;
     unsigned syntax
-    = (cflags & REG_EXTENDED) ?
-      RE_SYNTAX_POSIX_EXTENDED : RE_SYNTAX_POSIX_BASIC;
+        = (cflags & REG_EXTENDED) ?
+          RE_SYNTAX_POSIX_EXTENDED : RE_SYNTAX_POSIX_BASIC;
 
     /* regex_compile will allocate the space for the compiled pattern.  */
     preg->buffer = 0;
@@ -4143,7 +4151,7 @@ int cflags;
         preg->translate = NULL;
 
     /* If REG_NEWLINE is set, newlines are treated differently.  */
-    if (cflags & REG_NEWLINE) {        /* REG_NEWLINE implies neither . nor [^...] match newline.  */
+    if (cflags & REG_NEWLINE) { /* REG_NEWLINE implies neither . nor [^...] match newline.  */
         syntax &= ~RE_DOT_NEWLINE;
         syntax |= RE_HAT_LISTS_NOT_NEWLINE;
         /* It also changes the matching behavior.  */
@@ -4257,7 +4265,7 @@ regerror(int errcode, const regex_t *preg, char *errbuf, size_t errbuf_size)
     if (!msg)
         msg = "Success";
 
-    msg_size = strlen(msg) + 1;        /* Includes the null.  */
+    msg_size = strlen(msg) + 1; /* Includes the null.  */
 
     if (errbuf_size != 0) {
         if (msg_size > errbuf_size) {
@@ -4300,3 +4308,4 @@ regex_t *preg;
  * trim-versions-without-asking: nil
  * End:
  */
+
index a59a19dea638088575a0b81920aaa85c6056eca9..b81653748adf5b433e4a1d687b377669e8d6f5c1 100644 (file)
 extern "C" {
 #endif
 
-    /* Definitions for data structures and routines for the regular
    * expression library, version 0.12.
    *
    * Copyright (C) 1985, 1989, 1990, 1991, 1992, 1993 Free Software Foundation, Inc.
    *
    * This program 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 Software Foundation; either version 2, or (at your option)
    * any later version.
    *
    * This program is distributed in the hope that it will be useful,
    * but WITHOUT ANY WARRANTY; without even the implied warranty of
    * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
    * GNU General Public License for more details.
    *
    * You should have received a copy of the GNU General Public License
    * along with this program; if not, write to the Free Software
    * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111, USA.  */
-
-    /* POSIX says that <sys/types.h> must be included (by the caller) before
    * <regex.h>.  */
-
-    /* The following bits are used to determine the regexp syntax we
    * recognize.  The set/not-set meanings are chosen so that Emacs syntax
    * remains the value 0.  The bits are given in alphabetical order, and
    * the definitions shifted by one from the previous bit; thus, when we
    * add or remove a bit, only one other definition need change.  */
-    typedef unsigned reg_syntax_t;
-
-    /* If this bit is not set, then \ inside a bracket expression is literal.
    * If set, then such a \ quotes the following character.  */
+/* Definitions for data structures and routines for the regular
+ * expression library, version 0.12.
+ *
+ * Copyright (C) 1985, 1989, 1990, 1991, 1992, 1993 Free Software Foundation, Inc.
+ *
+ * This program 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 Software Foundation; either version 2, or (at your option)
+ * any later version.
+ *
+ * This program is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
+ * GNU General Public License for more details.
+ *
+ * You should have received a copy of the GNU General Public License
+ * along with this program; if not, write to the Free Software
+ * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111, USA.  */
+
+/* POSIX says that <sys/types.h> must be included (by the caller) before
+ * <regex.h>.  */
+
+/* The following bits are used to determine the regexp syntax we
+ * recognize.  The set/not-set meanings are chosen so that Emacs syntax
+ * remains the value 0.  The bits are given in alphabetical order, and
+ * the definitions shifted by one from the previous bit; thus, when we
+ * add or remove a bit, only one other definition need change.  */
+typedef unsigned reg_syntax_t;
+
+/* If this bit is not set, then \ inside a bracket expression is literal.
+ * If set, then such a \ quotes the following character.  */
 #define RE_BACKSLASH_ESCAPE_IN_LISTS (1)
 
-    /* If this bit is not set, then + and ? are operators, and \+ and \? are
    * literals.
    * If set, then \+ and \? are operators and + and ? are literals.  */
+/* If this bit is not set, then + and ? are operators, and \+ and \? are
+ * literals.
+ * If set, then \+ and \? are operators and + and ? are literals.  */
 #define RE_BK_PLUS_QM (RE_BACKSLASH_ESCAPE_IN_LISTS << 1)
 
-    /* If this bit is set, then character classes are supported.  They are:
    * [:alpha:], [:upper:], [:lower:],  [:digit:], [:alnum:], [:xdigit:],
    * [:space:], [:print:], [:punct:], [:graph:], and [:cntrl:].
    * If not set, then character classes are not supported.  */
+/* If this bit is set, then character classes are supported.  They are:
+ * [:alpha:], [:upper:], [:lower:],  [:digit:], [:alnum:], [:xdigit:],
+ * [:space:], [:print:], [:punct:], [:graph:], and [:cntrl:].
+ * If not set, then character classes are not supported.  */
 #define RE_CHAR_CLASSES (RE_BK_PLUS_QM << 1)
 
-    /* If this bit is set, then ^ and $ are always anchors (outside bracket
    * expressions, of course).
    * If this bit is not set, then it depends:
    * ^  is an anchor if it is at the beginning of a regular
    * expression or after an open-group or an alternation operator;
    * $  is an anchor if it is at the end of a regular expression, or
    * before a close-group or an alternation operator.
    *
    * This bit could be (re)combined with RE_CONTEXT_INDEP_OPS, because
    * POSIX draft 11.2 says that * etc. in leading positions is undefined.
    * We already implemented a previous draft which made those constructs
    * invalid, though, so we haven't changed the code back.  */
+/* If this bit is set, then ^ and $ are always anchors (outside bracket
+ * expressions, of course).
+ * If this bit is not set, then it depends:
+ * ^  is an anchor if it is at the beginning of a regular
+ * expression or after an open-group or an alternation operator;
+ * $  is an anchor if it is at the end of a regular expression, or
+ * before a close-group or an alternation operator.
+ *
+ * This bit could be (re)combined with RE_CONTEXT_INDEP_OPS, because
+ * POSIX draft 11.2 says that * etc. in leading positions is undefined.
+ * We already implemented a previous draft which made those constructs
+ * invalid, though, so we haven't changed the code back.  */
 #define RE_CONTEXT_INDEP_ANCHORS (RE_CHAR_CLASSES << 1)
 
-    /* If this bit is set, then special characters are always special
    * regardless of where they are in the pattern.
    * If this bit is not set, then special characters are special only in
    * some contexts; otherwise they are ordinary.  Specifically,
    * * + ? and intervals are only special when not after the beginning,
    * open-group, or alternation operator.  */
+/* If this bit is set, then special characters are always special
+ * regardless of where they are in the pattern.
+ * If this bit is not set, then special characters are special only in
+ * some contexts; otherwise they are ordinary.  Specifically,
+ * * + ? and intervals are only special when not after the beginning,
+ * open-group, or alternation operator.  */
 #define RE_CONTEXT_INDEP_OPS (RE_CONTEXT_INDEP_ANCHORS << 1)
 
-    /* If this bit is set, then *, +, ?, and { cannot be first in an re or
    * immediately after an alternation or begin-group operator.  */
+/* If this bit is set, then *, +, ?, and { cannot be first in an re or
+ * immediately after an alternation or begin-group operator.  */
 #define RE_CONTEXT_INVALID_OPS (RE_CONTEXT_INDEP_OPS << 1)
 
-    /* If this bit is set, then . matches newline.
    * If not set, then it doesn't.  */
+/* If this bit is set, then . matches newline.
+ * If not set, then it doesn't.  */
 #define RE_DOT_NEWLINE (RE_CONTEXT_INVALID_OPS << 1)
 
-    /* If this bit is set, then . doesn't match NUL.
    * If not set, then it does.  */
+/* If this bit is set, then . doesn't match NUL.
+ * If not set, then it does.  */
 #define RE_DOT_NOT_NULL (RE_DOT_NEWLINE << 1)
 
-    /* If this bit is set, nonmatching lists [^...] do not match newline.
    * If not set, they do.  */
+/* If this bit is set, nonmatching lists [^...] do not match newline.
+ * If not set, they do.  */
 #define RE_HAT_LISTS_NOT_NEWLINE (RE_DOT_NOT_NULL << 1)
 
-    /* If this bit is set, either \{...\} or {...} defines an
    * interval, depending on RE_NO_BK_BRACES.
    * If not set, \{, \}, {, and } are literals.  */
+/* If this bit is set, either \{...\} or {...} defines an
+ * interval, depending on RE_NO_BK_BRACES.
+ * If not set, \{, \}, {, and } are literals.  */
 #define RE_INTERVALS (RE_HAT_LISTS_NOT_NEWLINE << 1)
 
-    /* If this bit is set, +, ? and | aren't recognized as operators.
    * If not set, they are.  */
+/* If this bit is set, +, ? and | aren't recognized as operators.
+ * If not set, they are.  */
 #define RE_LIMITED_OPS (RE_INTERVALS << 1)
 
-    /* If this bit is set, newline is an alternation operator.
    * If not set, newline is literal.  */
+/* If this bit is set, newline is an alternation operator.
+ * If not set, newline is literal.  */
 #define RE_NEWLINE_ALT (RE_LIMITED_OPS << 1)
 
-    /* If this bit is set, then `{...}' defines an interval, and \{ and \}
    * are literals.
    * If not set, then `\{...\}' defines an interval.  */
+/* If this bit is set, then `{...}' defines an interval, and \{ and \}
+ * are literals.
+ * If not set, then `\{...\}' defines an interval.  */
 #define RE_NO_BK_BRACES (RE_NEWLINE_ALT << 1)
 
-    /* If this bit is set, (...) defines a group, and \( and \) are literals.
    * If not set, \(...\) defines a group, and ( and ) are literals.  */
+/* If this bit is set, (...) defines a group, and \( and \) are literals.
+ * If not set, \(...\) defines a group, and ( and ) are literals.  */
 #define RE_NO_BK_PARENS (RE_NO_BK_BRACES << 1)
 
-    /* If this bit is set, then \<digit> matches <digit>.
    * If not set, then \<digit> is a back-reference.  */
+/* If this bit is set, then \<digit> matches <digit>.
+ * If not set, then \<digit> is a back-reference.  */
 #define RE_NO_BK_REFS (RE_NO_BK_PARENS << 1)
 
-    /* If this bit is set, then | is an alternation operator, and \| is literal.
    * If not set, then \| is an alternation operator, and | is literal.  */
+/* If this bit is set, then | is an alternation operator, and \| is literal.
+ * If not set, then \| is an alternation operator, and | is literal.  */
 #define RE_NO_BK_VBAR (RE_NO_BK_REFS << 1)
 
-    /* If this bit is set, then an ending range point collating higher
    * than the starting range point, as in [z-a], is invalid.
    * If not set, then when ending range point collates higher than the
    * starting range point, the range is ignored.  */
+/* If this bit is set, then an ending range point collating higher
+ * than the starting range point, as in [z-a], is invalid.
+ * If not set, then when ending range point collates higher than the
+ * starting range point, the range is ignored.  */
 #define RE_NO_EMPTY_RANGES (RE_NO_BK_VBAR << 1)
 
-    /* If this bit is set, then an unmatched ) is ordinary.
    * If not set, then an unmatched ) is invalid.  */
+/* If this bit is set, then an unmatched ) is ordinary.
+ * If not set, then an unmatched ) is invalid.  */
 #define RE_UNMATCHED_RIGHT_PAREN_ORD (RE_NO_EMPTY_RANGES << 1)
 
-    /* Define combinations of the above bits for the standard possibilities.
    * (The [[[ comments delimit what gets put into the Texinfo file, so
    * don't delete them!)  */
-    /* [[[begin syntaxes]]] */
+/* Define combinations of the above bits for the standard possibilities.
+ * (The [[[ comments delimit what gets put into the Texinfo file, so
+ * don't delete them!)  */
+/* [[[begin syntaxes]]] */
 #define RE_SYNTAX_EMACS 0
 
-#define RE_SYNTAX_AWK                                                  \
-  (RE_BACKSLASH_ESCAPE_IN_LISTS | RE_DOT_NOT_NULL                      \
-   | RE_NO_BK_PARENS            | RE_NO_BK_REFS                                \
-   | RE_NO_BK_VBAR               | RE_NO_EMPTY_RANGES                  \
+#define RE_SYNTAX_AWK                           \
+  (RE_BACKSLASH_ESCAPE_IN_LISTS | RE_DOT_NOT_NULL           \
+   | RE_NO_BK_PARENS            | RE_NO_BK_REFS             \
+   | RE_NO_BK_VBAR               | RE_NO_EMPTY_RANGES           \
    | RE_UNMATCHED_RIGHT_PAREN_ORD)
 
-#define RE_SYNTAX_POSIX_AWK                                            \
+#define RE_SYNTAX_POSIX_AWK                         \
   (RE_SYNTAX_POSIX_EXTENDED | RE_BACKSLASH_ESCAPE_IN_LISTS)
 
-#define RE_SYNTAX_GREP                                                 \
-  (RE_BK_PLUS_QM              | RE_CHAR_CLASSES                                \
-   | RE_HAT_LISTS_NOT_NEWLINE | RE_INTERVALS                           \
+#define RE_SYNTAX_GREP                          \
+  (RE_BK_PLUS_QM              | RE_CHAR_CLASSES             \
+   | RE_HAT_LISTS_NOT_NEWLINE | RE_INTERVALS                \
    | RE_NEWLINE_ALT)
 
-#define RE_SYNTAX_EGREP                                                        \
-  (RE_CHAR_CLASSES        | RE_CONTEXT_INDEP_ANCHORS                   \
-   | RE_CONTEXT_INDEP_OPS | RE_HAT_LISTS_NOT_NEWLINE                   \
-   | RE_NEWLINE_ALT       | RE_NO_BK_PARENS                            \
+#define RE_SYNTAX_EGREP                         \
+  (RE_CHAR_CLASSES        | RE_CONTEXT_INDEP_ANCHORS            \
+   | RE_CONTEXT_INDEP_OPS | RE_HAT_LISTS_NOT_NEWLINE            \
+   | RE_NEWLINE_ALT       | RE_NO_BK_PARENS             \
    | RE_NO_BK_VBAR)
 
-#define RE_SYNTAX_POSIX_EGREP                                          \
+#define RE_SYNTAX_POSIX_EGREP                       \
   (RE_SYNTAX_EGREP | RE_INTERVALS | RE_NO_BK_BRACES)
 
-    /* P1003.2/D11.2, section 4.20.7.1, lines 5078ff.  */
+/* P1003.2/D11.2, section 4.20.7.1, lines 5078ff.  */
 #define RE_SYNTAX_ED RE_SYNTAX_POSIX_BASIC
 
 #define RE_SYNTAX_SED RE_SYNTAX_POSIX_BASIC
 
-    /* Syntax bits common to both basic and extended POSIX regex syntax.  */
-#define _RE_SYNTAX_POSIX_COMMON                                                \
-  (RE_CHAR_CLASSES | RE_DOT_NEWLINE      | RE_DOT_NOT_NULL             \
+/* Syntax bits common to both basic and extended POSIX regex syntax.  */
+#define _RE_SYNTAX_POSIX_COMMON                     \
+  (RE_CHAR_CLASSES | RE_DOT_NEWLINE      | RE_DOT_NOT_NULL      \
    | RE_INTERVALS  | RE_NO_EMPTY_RANGES)
 
-#define RE_SYNTAX_POSIX_BASIC                                          \
+#define RE_SYNTAX_POSIX_BASIC                       \
   (_RE_SYNTAX_POSIX_COMMON | RE_BK_PLUS_QM)
 
-    /* Differs from ..._POSIX_BASIC only in that RE_BK_PLUS_QM becomes
    * RE_LIMITED_OPS, i.e., \? \+ \| are not recognized.  Actually, this
    * isn't minimal, since other operators, such as \`, aren't disabled.  */
-#define RE_SYNTAX_POSIX_MINIMAL_BASIC                                  \
+/* Differs from ..._POSIX_BASIC only in that RE_BK_PLUS_QM becomes
+ * RE_LIMITED_OPS, i.e., \? \+ \| are not recognized.  Actually, this
+ * isn't minimal, since other operators, such as \`, aren't disabled.  */
+#define RE_SYNTAX_POSIX_MINIMAL_BASIC                   \
   (_RE_SYNTAX_POSIX_COMMON | RE_LIMITED_OPS)
 
-#define RE_SYNTAX_POSIX_EXTENDED                                       \
-  (_RE_SYNTAX_POSIX_COMMON | RE_CONTEXT_INDEP_ANCHORS                  \
-   | RE_CONTEXT_INDEP_OPS  | RE_NO_BK_BRACES                           \
-   | RE_NO_BK_PARENS       | RE_NO_BK_VBAR                             \
+#define RE_SYNTAX_POSIX_EXTENDED                    \
+  (_RE_SYNTAX_POSIX_COMMON | RE_CONTEXT_INDEP_ANCHORS           \
+   | RE_CONTEXT_INDEP_OPS  | RE_NO_BK_BRACES                \
+   | RE_NO_BK_PARENS       | RE_NO_BK_VBAR              \
    | RE_UNMATCHED_RIGHT_PAREN_ORD)
 
-    /* Differs from ..._POSIX_EXTENDED in that RE_CONTEXT_INVALID_OPS
    * replaces RE_CONTEXT_INDEP_OPS and RE_NO_BK_REFS is added.  */
-#define RE_SYNTAX_POSIX_MINIMAL_EXTENDED                               \
-  (_RE_SYNTAX_POSIX_COMMON  | RE_CONTEXT_INDEP_ANCHORS                 \
-   | RE_CONTEXT_INVALID_OPS | RE_NO_BK_BRACES                          \
-   | RE_NO_BK_PARENS        | RE_NO_BK_REFS                            \
-   | RE_NO_BK_VBAR         | RE_UNMATCHED_RIGHT_PAREN_ORD)
-    /* [[[end syntaxes]]] */
-    \f
-    /* Maximum number of duplicates an interval can allow.  Some systems
    * (erroneously) define this in other header files, but we want our
    * value, so remove any previous define.  */
+/* Differs from ..._POSIX_EXTENDED in that RE_CONTEXT_INVALID_OPS
+ * replaces RE_CONTEXT_INDEP_OPS and RE_NO_BK_REFS is added.  */
+#define RE_SYNTAX_POSIX_MINIMAL_EXTENDED                \
+  (_RE_SYNTAX_POSIX_COMMON  | RE_CONTEXT_INDEP_ANCHORS          \
+   | RE_CONTEXT_INVALID_OPS | RE_NO_BK_BRACES               \
+   | RE_NO_BK_PARENS        | RE_NO_BK_REFS             \
+   | RE_NO_BK_VBAR      | RE_UNMATCHED_RIGHT_PAREN_ORD)
+/* [[[end syntaxes]]] */
+\f
+/* Maximum number of duplicates an interval can allow.  Some systems
+ * (erroneously) define this in other header files, but we want our
+ * value, so remove any previous define.  */
 #ifdef RE_DUP_MAX
 #undef RE_DUP_MAX
 #endif
 #define RE_DUP_MAX ((1 << 15) - 1)
 
-    /* POSIX `cflags' bits (i.e., information for `regcomp').  */
+/* POSIX `cflags' bits (i.e., information for `regcomp').  */
 
-    /* If this bit is set, then use extended regular expression syntax.
    * If not set, then use basic regular expression syntax.  */
+/* If this bit is set, then use extended regular expression syntax.
+ * If not set, then use basic regular expression syntax.  */
 #define REG_EXTENDED 1
 
-    /* If this bit is set, then ignore case when matching.
    * If not set, then case is significant.  */
+/* If this bit is set, then ignore case when matching.
+ * If not set, then case is significant.  */
 #define REG_ICASE (REG_EXTENDED << 1)
 
-    /* If this bit is set, then anchors do not match at newline
    * characters in the string.
    * If not set, then anchors do match at newlines.  */
+/* If this bit is set, then anchors do not match at newline
+ * characters in the string.
+ * If not set, then anchors do match at newlines.  */
 #define REG_NEWLINE (REG_ICASE << 1)
 
-    /* If this bit is set, then report only success or fail in regexec.
    * If not set, then returns differ between not matching and errors.  */
+/* If this bit is set, then report only success or fail in regexec.
+ * If not set, then returns differ between not matching and errors.  */
 #define REG_NOSUB (REG_NEWLINE << 1)
 
-    /* POSIX `eflags' bits (i.e., information for regexec).  */
+/* POSIX `eflags' bits (i.e., information for regexec).  */
 
-    /* If this bit is set, then the beginning-of-line operator doesn't match
    * the beginning of the string (presumably because it's not the
    * beginning of a line).
    * If not set, then the beginning-of-line operator does match the
    * beginning of the string.  */
+/* If this bit is set, then the beginning-of-line operator doesn't match
+ * the beginning of the string (presumably because it's not the
+ * beginning of a line).
+ * If not set, then the beginning-of-line operator does match the
+ * beginning of the string.  */
 #define REG_NOTBOL 1
 
-    /* Like REG_NOTBOL, except for the end-of-line.  */
+/* Like REG_NOTBOL, except for the end-of-line.  */
 #define REG_NOTEOL (1 << 1)
 
-    /* If any error codes are removed, changed, or added, update the
    * `re_error_msg' table in regex.c.  */
-    typedef enum {
-        REG_NOERROR = 0,               /* Success.  */
-        REG_NOMATCH,           /* Didn't find a match (for regexec).  */
-
-        /* POSIX regcomp return error codes.  (In the order listed in the
-         * standard.)  */
-        REG_BADPAT,                    /* Invalid pattern.  */
-        REG_ECOLLATE,          /* Not implemented.  */
-        REG_ECTYPE,                    /* Invalid character class name.  */
-        REG_EESCAPE,           /* Trailing backslash.  */
-        REG_ESUBREG,           /* Invalid back reference.  */
-        REG_EBRACK,                    /* Unmatched left bracket.  */
-        REG_EPAREN,                    /* Parenthesis imbalance.  */
-        REG_EBRACE,                    /* Unmatched \{.  */
-        REG_BADBR,                     /* Invalid contents of \{\}.  */
-        REG_ERANGE,                    /* Invalid range end.  */
-        REG_ESPACE,                    /* Ran out of memory.  */
-        REG_BADRPT,                    /* No preceding re for repetition op.  */
-
-        /* Error codes we've added.  */
-        REG_EEND,                      /* Premature end.  */
-        REG_ESIZE,                     /* Compiled pattern bigger than 2^16 bytes.  */
-        REG_ERPAREN                    /* Unmatched ) or \); not returned from regcomp.  */
-    } reg_errcode_t;
-    \f
-    /* This data structure represents a compiled pattern.  Before calling
    * the pattern compiler, the fields `buffer', `allocated', `fastmap',
    * `translate', and `no_sub' can be set.  After the pattern has been
    * compiled, the `re_nsub' field is available.  All other fields are
    * private to the regex routines.  */
-
-    struct re_pattern_buffer {
-        /* [[[begin pattern_buffer]]] */
-        /* Space that holds the compiled pattern.  It is declared as
-         * `unsigned char *' because its elements are
-         * sometimes used as array indexes.  */
-        unsigned char *buffer;
-
-        /* Number of bytes to which `buffer' points.  */
-        unsigned long allocated;
-
-        /* Number of bytes actually used in `buffer'.  */
-        unsigned long used;
-
-        /* Syntax setting with which the pattern was compiled.  */
-        reg_syntax_t syntax;
-
-        /* Pointer to a fastmap, if any, otherwise zero.  re_search uses
-         * the fastmap, if there is one, to skip over impossible
-         * starting points for matches.  */
-        char *fastmap;
-
-        /* Either a translate table to apply to all characters before
-         * comparing them, or zero for no translation.  The translation
-         * is applied to a pattern when it is compiled and to a string
-         * when it is matched.  */
-        char *translate;
-
-        /* Number of subexpressions found by the compiler.  */
-        size_t re_nsub;
-
-        /* Zero if this pattern cannot match the empty string, one else.
-         * Well, in truth it's used only in `re_search_2', to see
-         * whether or not we should use the fastmap, so we don't set
-         * this absolutely perfectly; see `re_compile_fastmap' (the
-         * `duplicate' case).  */
-        unsigned can_be_null:1;
-
-        /* If REGS_UNALLOCATED, allocate space in the `regs' structure
-         * for `max (RE_NREGS, re_nsub + 1)' groups.
-         * If REGS_REALLOCATE, reallocate space if necessary.
-         * If REGS_FIXED, use what's there.  */
+/* If any error codes are removed, changed, or added, update the
+ * `re_error_msg' table in regex.c.  */
+typedef enum {
+    REG_NOERROR = 0,        /* Success.  */
+    REG_NOMATCH,        /* Didn't find a match (for regexec).  */
+
+    /* POSIX regcomp return error codes.  (In the order listed in the
+     * standard.)  */
+    REG_BADPAT,         /* Invalid pattern.  */
+    REG_ECOLLATE,       /* Not implemented.  */
+    REG_ECTYPE,         /* Invalid character class name.  */
+    REG_EESCAPE,        /* Trailing backslash.  */
+    REG_ESUBREG,        /* Invalid back reference.  */
+    REG_EBRACK,         /* Unmatched left bracket.  */
+    REG_EPAREN,         /* Parenthesis imbalance.  */
+    REG_EBRACE,         /* Unmatched \{.  */
+    REG_BADBR,          /* Invalid contents of \{\}.  */
+    REG_ERANGE,         /* Invalid range end.  */
+    REG_ESPACE,         /* Ran out of memory.  */
+    REG_BADRPT,         /* No preceding re for repetition op.  */
+
+    /* Error codes we've added.  */
+    REG_EEND,           /* Premature end.  */
+    REG_ESIZE,          /* Compiled pattern bigger than 2^16 bytes.  */
+    REG_ERPAREN         /* Unmatched ) or \); not returned from regcomp.  */
+} reg_errcode_t;
+\f
+/* This data structure represents a compiled pattern.  Before calling
+ * the pattern compiler, the fields `buffer', `allocated', `fastmap',
+ * `translate', and `no_sub' can be set.  After the pattern has been
+ * compiled, the `re_nsub' field is available.  All other fields are
+ * private to the regex routines.  */
+
+struct re_pattern_buffer {
+    /* [[[begin pattern_buffer]]] */
+    /* Space that holds the compiled pattern.  It is declared as
+     * `unsigned char *' because its elements are
+     * sometimes used as array indexes.  */
+    unsigned char *buffer;
+
+    /* Number of bytes to which `buffer' points.  */
+    unsigned long allocated;
+
+    /* Number of bytes actually used in `buffer'.  */
+    unsigned long used;
+
+    /* Syntax setting with which the pattern was compiled.  */
+    reg_syntax_t syntax;
+
+    /* Pointer to a fastmap, if any, otherwise zero.  re_search uses
+     * the fastmap, if there is one, to skip over impossible
+     * starting points for matches.  */
+    char *fastmap;
+
+    /* Either a translate table to apply to all characters before
+     * comparing them, or zero for no translation.  The translation
+     * is applied to a pattern when it is compiled and to a string
+     * when it is matched.  */
+    char *translate;
+
+    /* Number of subexpressions found by the compiler.  */
+    size_t re_nsub;
+
+    /* Zero if this pattern cannot match the empty string, one else.
+     * Well, in truth it's used only in `re_search_2', to see
+     * whether or not we should use the fastmap, so we don't set
+     * this absolutely perfectly; see `re_compile_fastmap' (the
+     * `duplicate' case).  */
+    unsigned can_be_null:1;
+
+    /* If REGS_UNALLOCATED, allocate space in the `regs' structure
+     * for `max (RE_NREGS, re_nsub + 1)' groups.
+     * If REGS_REALLOCATE, reallocate space if necessary.
+     * If REGS_FIXED, use what's there.  */
 #define REGS_UNALLOCATED 0
 #define REGS_REALLOCATE 1
 #define REGS_FIXED 2
-        unsigned regs_allocated:2;
+    unsigned regs_allocated:2;
 
-        /* Set to zero when `regex_compile' compiles a pattern; set to one
-         * by `re_compile_fastmap' if it updates the fastmap.  */
-        unsigned fastmap_accurate:1;
+    /* Set to zero when `regex_compile' compiles a pattern; set to one
+     * by `re_compile_fastmap' if it updates the fastmap.  */
+    unsigned fastmap_accurate:1;
 
-        /* If set, `re_match_2' does not return information about
-         * subexpressions.  */
-        unsigned no_sub:1;
+    /* If set, `re_match_2' does not return information about
+     * subexpressions.  */
+    unsigned no_sub:1;
 
-        /* If set, a beginning-of-line anchor doesn't match at the
-         * beginning of the string.  */
-        unsigned not_bol:1;
+    /* If set, a beginning-of-line anchor doesn't match at the
+     * beginning of the string.  */
+    unsigned not_bol:1;
 
-        /* Similarly for an end-of-line anchor.  */
-        unsigned not_eol:1;
+    /* Similarly for an end-of-line anchor.  */
+    unsigned not_eol:1;
 
-        /* If true, an anchor at a newline matches.  */
-        unsigned newline_anchor:1;
+    /* If true, an anchor at a newline matches.  */
+    unsigned newline_anchor:1;
 
-        /* [[[end pattern_buffer]]] */
-    };
+    /* [[[end pattern_buffer]]] */
+};
 
-    typedef struct re_pattern_buffer regex_t;
+typedef struct re_pattern_buffer regex_t;
 
-    /* search.c (search_buffer) in Emacs needs this one opcode value.  It is
    * defined both in `regex.c' and here.  */
+/* search.c (search_buffer) in Emacs needs this one opcode value.  It is
+ * defined both in `regex.c' and here.  */
 #define RE_EXACTN_VALUE 1
-    \f
-    /* Type for byte offsets within the string.  POSIX mandates this.  */
-    typedef int regoff_t;
-
-    /* This is the structure we store register match data in.  See
    * regex.texinfo for a full description of what registers match.  */
-    struct re_registers {
-        unsigned num_regs;
-        regoff_t *start;
-        regoff_t *end;
-    };
-
-    /* If `regs_allocated' is REGS_UNALLOCATED in the pattern buffer,
    * `re_match_2' returns information about at least this many registers
    * the first time a `regs' structure is passed.  */
+\f
+/* Type for byte offsets within the string.  POSIX mandates this.  */
+typedef int regoff_t;
+
+/* This is the structure we store register match data in.  See
+ * regex.texinfo for a full description of what registers match.  */
+struct re_registers {
+    unsigned num_regs;
+    regoff_t *start;
+    regoff_t *end;
+};
+
+/* If `regs_allocated' is REGS_UNALLOCATED in the pattern buffer,
+ * `re_match_2' returns information about at least this many registers
+ * the first time a `regs' structure is passed.  */
 #ifndef RE_NREGS
 #define RE_NREGS 30
 #endif
 
-    /* POSIX specification for registers.  Aside from the different names than
    * `re_registers', POSIX uses an array of structures, instead of a
    * structure of arrays.  */
-    typedef struct {
-        regoff_t rm_so;                /* Byte offset from string's start to substring's start.  */
-        regoff_t rm_eo;                /* Byte offset from string's start to substring's end.  */
-    } regmatch_t;
-    \f
-    /* Declarations for routines.  */
-
-    /* To avoid duplicating every routine declaration -- once with a
    * prototype (if we are ANSI), and once without (if we aren't) -- we
    * use the following macro to declare argument types.  This
    * unfortunately clutters up the declarations a bit, but I think it's
    * worth it.  */
-
-    /* POSIX compatibility.  */
-    extern int regcomp(regex_t * preg, const char *pattern, int cflags);
-    extern int regexec(const regex_t * preg, const char *string, size_t nmatch, regmatch_t pmatch[], int eflags);
-    extern size_t regerror(int errcode, const regex_t * preg, char *errbuf, size_t errbuf_size);
-    extern void regfree(regex_t * preg);
+/* POSIX specification for registers.  Aside from the different names than
+ * `re_registers', POSIX uses an array of structures, instead of a
+ * structure of arrays.  */
+typedef struct {
+    regoff_t rm_so;     /* Byte offset from string's start to substring's start.  */
+    regoff_t rm_eo;     /* Byte offset from string's start to substring's end.  */
+} regmatch_t;
+\f
+/* Declarations for routines.  */
+
+/* To avoid duplicating every routine declaration -- once with a
+ * prototype (if we are ANSI), and once without (if we aren't) -- we
+ * use the following macro to declare argument types.  This
+ * unfortunately clutters up the declarations a bit, but I think it's
+ * worth it.  */
+
+/* POSIX compatibility.  */
+extern int regcomp(regex_t * preg, const char *pattern, int cflags);
+extern int regexec(const regex_t * preg, const char *string, size_t nmatch, regmatch_t pmatch[], int eflags);
+extern size_t regerror(int errcode, const regex_t * preg, char *errbuf, size_t errbuf_size);
+extern void regfree(regex_t * preg);
 
 #ifdef __cplusplus
 }
@@ -410,3 +410,4 @@ extern "C" {
  * trim-versions-without-asking: nil
  * End:
  */
+
index 183f5340ea9765ba00598976bfc0abadfa761f89..1e1e9d27843b36b0f4658e1ac13571363078fb16 100644 (file)
@@ -13,3 +13,4 @@ void xassert(const char *expr, const char *file, int line)
     fprintf(stderr, "assertion failed: %s:%d: \"%s\"\n", file, line, expr);
     abort();
 }
+
index c1a49357be62f91a1a14bcc9c6a7716d77c1e43d..7f08f94e94d74bb96f46a72e877d2c2d0c1e6271 100644 (file)
@@ -25,3 +25,4 @@ extern void
 xassert(const char *, const char *, int);
 
 #endif /* SQUID_ASSERT_H */
+
index b2bb7ce2b8ed911b9a9f1bf497ce387ec9fd2205..c8ea453ed0ad74ccc2936c1d482b27c5a2468dab 100644 (file)
@@ -140,3 +140,4 @@ struct sockaddr_un {
 #endif
 
 #endif /* SQUID_COMPAT_CMSG_H */
+
index 31aad1f290fcbf37eb5d78ab9c4603411318d76a..399ffc67932a535a5f882d32704e3b45639ed49f 100644 (file)
@@ -10,3 +10,4 @@
 #include "compat.h"
 
 void (*failure_notify) (const char *) = NULL;
+
index ac5a6c238f9087d21d0eddb299f2f9924ae2288e..03dd7f64cd59463ead7c5d4a24913564fa009775 100644 (file)
 #include "compat/cppunit.h"
 
 #endif /* _SQUID_COMPAT_H */
+
index 70e571ae585412260a5ebaac56881f243ebf0ab2..66f9af128e008a3e0427487c5145df2d9c24e1dd 100644 (file)
@@ -273,3 +273,4 @@ const char * squid_strnstr(const char *s, const char *find, size_t slen);
 #endif
 
 #endif /* _SQUID_COMPAT_SHARED_H */
+
index 22e8456b6e57ac5244a3f0a0cd555d428cf67792..34d06ee2ac730bc6de5f3aeab63f62744d1774a9 100644 (file)
@@ -39,3 +39,4 @@
 #endif /* HAVE_UNIQUE_PTR */
 #endif /* HAVE_CPPUNIT_EXTENSIONS_HELPERMACROS_H */
 #endif /* SQUID_COMPAT_CPPUNIT_H */
+
index a02a2c38ba3bd5fc676c133e080c5029953a1784..a0c9f2417b3a70c03490fb0339d17f71738065fc 100644 (file)
@@ -69,3 +69,4 @@ inline int sched_getaffinity(int, size_t, cpu_set_t *) { return ENOTSUP; }
 #endif /* HAVE_CPU_AFFINITY */
 
 #endif /* SQUID_COMPAT_CPU_H */
+
index b298a06bfa125adebeb741fd663cc796527dd21b..4dd6a695e8963cd899bf22637b76977d5ac83d04 100644 (file)
@@ -27,3 +27,4 @@ debug(const char *format,...)
 }
 
 #endif /* __GNUC__ */
+
index 2e045ee294d4adbe30f8a34e5e24066c8cdf9716..1848989ba38fa3530bcc1463d9b180b662bd0a92 100644 (file)
@@ -38,3 +38,4 @@ void debug(const char *format,...);
 #endif
 
 #endif /* COMPAT_DEBUG_H */
+
index 2cdee3edcd2bcdae22e30fc21a87981a065232bd..530fdd25b344e4a18681c65457ed921cbaa6e1a6 100644 (file)
 
 #if !HAVE_DRAND48
 
-#define N      16
-#define MASK   ((unsigned)(1 << (N - 1)) + (1 << (N - 1)) - 1)
-#define LOW(x) ((unsigned)(x) & MASK)
-#define HIGH(x)        LOW((x) >> N)
-#define MUL(x, y, z)   { long l = (long)(x) * (long)(y); \
-               (z)[0] = LOW(l); (z)[1] = HIGH(l); }
-#define CARRY(x, y)    ((long)(x) + (long)(y) > MASK)
-#define ADDEQU(x, y, z)        (z = CARRY(x, (y)), x = LOW(x + (y)))
-#define X0     0x330E
-#define X1     0xABCD
-#define X2     0x1234
-#define A0     0xE66D
-#define A1     0xDEEC
-#define A2     0x5
-#define C      0xB
+#define N   16
+#define MASK    ((unsigned)(1 << (N - 1)) + (1 << (N - 1)) - 1)
+#define LOW(x)  ((unsigned)(x) & MASK)
+#define HIGH(x) LOW((x) >> N)
+#define MUL(x, y, z)    { long l = (long)(x) * (long)(y); \
+        (z)[0] = LOW(l); (z)[1] = HIGH(l); }
+#define CARRY(x, y) ((long)(x) + (long)(y) > MASK)
+#define ADDEQU(x, y, z) (z = CARRY(x, (y)), x = LOW(x + (y)))
+#define X0  0x330E
+#define X1  0xABCD
+#define X2  0x1234
+#define A0  0xE66D
+#define A1  0xDEEC
+#define A2  0x5
+#define C   0xB
 
 static void next(void);
 static unsigned x[3] = {X0, X1, X2}, a[3] = {A0, A1, A2}, c = C;
@@ -61,3 +61,4 @@ next(void)
 }
 
 #endif /* HAVE_DRAND48 */
+
index 76f1e844d16de78f0374b3a4b7c25dcb8c2a569f..22303598a2297330e86bdb2becb46668faac2156 100644 (file)
@@ -15,3 +15,4 @@ SQUIDCEXTERN double drand48(void);
 #endif
 
 #endif
+
index 5b8f5239006ce48162408f92db41d58c36dd7734..f12fd7c4590787409908a2cbd45329a0ce161a35 100644 (file)
@@ -144,3 +144,4 @@ good:
 }
 
 #endif /* !SQUID_EUI64_ATON */
+
index cc78d92651dfebe650fc5878909a4228592c1a5c..4785e75aae01f836e735d7bf64cc6e9112fad055 100644 (file)
@@ -59,24 +59,24 @@ extern "C" {
 
 #define SQUID_EUI64_ATON 1
 
-    /**
    * Size of the ASCII representation of an EUI-64.
    */
+/**
+ * Size of the ASCII representation of an EUI-64.
+ */
 #define EUI64_SIZ       24
 
-    /**
    * The number of bytes in an EUI-64.
    */
+/**
+ * The number of bytes in an EUI-64.
+ */
 #define EUI64_LEN       8
 
-    /**
    * Structure of an IEEE EUI-64.
    */
-    struct eui64 {
-        uint8_t octet[EUI64_LEN];
-    };
+/**
+ * Structure of an IEEE EUI-64.
+ */
+struct eui64 {
+    uint8_t octet[EUI64_LEN];
+};
 
-    int eui64_aton(const char *a, struct eui64 *e);
+int eui64_aton(const char *a, struct eui64 *e);
 #if defined(__cplusplus)
 }
 #endif
@@ -84,3 +84,4 @@ extern "C" {
 #endif /* !_SYS_EUI64_H */
 #endif /* HAVE_SYS_EUI64_H */
 #endif /* SQUID_COMPAT_EUI64_ATON_H */
+
index 1c6abbab65d4284d5e104fdf227a102295e9e9f7..a343100efac5829749417d6a7a5b613f0c7c2d26 100644 (file)
@@ -18,8 +18,8 @@
 /* FD_SETSIZE must be redefined before including sys/types.h */
 #if 0
 /* AYJ: would dearly like to use this to enforce include order
-       but at present some helpers don't follow the squid include methodology.
-       that will need fixing later.
+    but at present some helpers don't follow the squid include methodology.
+    that will need fixing later.
 */
 #ifdef _SYS_TYPES_H
 #error squid_fdsetsize.h for FDSETSIZE must be included before sys/types.h
@@ -98,3 +98,4 @@
 #endif
 
 #endif /* SQUID_FDSETSIZE_H */
+
index 350135f49e8db885f82d4087000e45caaf8f5c57..4d46ffc5dd394e3157a54929b2a14269e648283c 100644 (file)
@@ -13,7 +13,7 @@
  * Update/Maintenance History:
  *
  *    15-Aug-2007 : Copied from fetchmail 6.3.8
- *                     - added protection around libray headers
+ *          - added protection around libray headers
  *
  *    16-Aug-2007 : Altered configure checks
  *                  Un-hacked slightly to use system gethostbyname()
@@ -313,18 +313,18 @@ xgai_strerror (int ecode)
 {
     static const char *eai_descr[] = {
         "no error",
-        "address family for nodename not supported",   /* EAI_ADDRFAMILY */
-        "temporary failure in name resolution",                /* EAI_AGAIN */
-        "invalid value for ai_flags",                  /* EAI_BADFLAGS */
-        "non-recoverable failure in name resolution",  /* EAI_FAIL */
-        "ai_family not supported",                     /* EAI_FAMILY */
-        "memory allocation failure",                   /* EAI_MEMORY */
-        "no address associated with nodename",         /* EAI_NODATA */
-        "nodename nor servname provided, or not known",        /* EAI_NONAME */
-        "servname not supported for ai_socktype",              /* EAI_SERVICE */
-        "ai_socktype not supported",                   /* EAI_SOCKTYPE */
-        "system error returned in errno",                      /* EAI_SYSTEM */
-        "argument buffer overflow",                    /* EAI_OVERFLOW */
+        "address family for nodename not supported",    /* EAI_ADDRFAMILY */
+        "temporary failure in name resolution",     /* EAI_AGAIN */
+        "invalid value for ai_flags",           /* EAI_BADFLAGS */
+        "non-recoverable failure in name resolution",   /* EAI_FAIL */
+        "ai_family not supported",          /* EAI_FAMILY */
+        "memory allocation failure",            /* EAI_MEMORY */
+        "no address associated with nodename",      /* EAI_NODATA */
+        "nodename nor servname provided, or not known", /* EAI_NONAME */
+        "servname not supported for ai_socktype",       /* EAI_SERVICE */
+        "ai_socktype not supported",            /* EAI_SOCKTYPE */
+        "system error returned in errno",           /* EAI_SYSTEM */
+        "argument buffer overflow",         /* EAI_OVERFLOW */
     };
 
     if (ecode < 0 || ecode > (int) (sizeof eai_descr/ sizeof eai_descr[0]))
@@ -333,3 +333,4 @@ xgai_strerror (int ecode)
 }
 
 #endif /* HAVE_GETADDRINFO */
+
index c2a42deecef5d83fbb308b0934b53a2f6cb2e288..0b5af56bbc10690c6b5880ba0af9df7e618f6f41 100644 (file)
@@ -16,7 +16,7 @@
  * Update/Maintenance History:
  *
  *    15-Aug-2007 : Copied from fetchmail 6.3.8
- *                     - added protection around libray headers
+ *          - added protection around libray headers
  *
  *    16-Aug-2007 : Altered configure checks
  *                  Un-hacked slightly to use system gethostbyname()
@@ -56,14 +56,14 @@ On Windows the following definitions are already available, may be that
 this could be needed on some other platform */
 #if 0
 struct addrinfo {
-    int ai_flags;              /* AI_PASSIVE, AI_CANONNAME, AI_NUMERICHOST */
-    int ai_family;             /* PF_xxx */
-    int ai_socktype;           /* SOCK_xxx */
-    int ai_protocol;           /* 0 or IPPROTO_xxx for IPv4 and IPv6 */
-    socklen_t ai_addrlen;      /* length of ai_addr */
-    char *ai_canonname;                /* canonical name for nodename */
-    struct sockaddr *ai_addr;  /* binary address */
-    struct addrinfo *ai_next;  /* next structure in linked list */
+    int ai_flags;       /* AI_PASSIVE, AI_CANONNAME, AI_NUMERICHOST */
+    int ai_family;      /* PF_xxx */
+    int ai_socktype;        /* SOCK_xxx */
+    int ai_protocol;        /* 0 or IPPROTO_xxx for IPv4 and IPv6 */
+    socklen_t ai_addrlen;   /* length of ai_addr */
+    char *ai_canonname;     /* canonical name for nodename */
+    struct sockaddr *ai_addr;   /* binary address */
+    struct addrinfo *ai_next;   /* next structure in linked list */
 };
 
 /* Supposed to be defined in <netdb.h> */
@@ -100,17 +100,18 @@ struct addrinfo {
 /* RFC 2553 / Posix resolver */
 SQUIDCEXTERN int xgetaddrinfo (const char *nodename, const char *servname,
                                const struct addrinfo *hints, struct addrinfo **res);
-#define getaddrinfo    xgetaddrinfo
+#define getaddrinfo xgetaddrinfo
 
 /* Free addrinfo structure and associated storage */
 SQUIDCEXTERN void xfreeaddrinfo (struct addrinfo *ai);
-#define freeaddrinfo   xfreeaddrinfo
+#define freeaddrinfo    xfreeaddrinfo
 
 /* Convert error return from getaddrinfo() to string */
 SQUIDCEXTERN const char *xgai_strerror (int code);
 #if !defined(gai_strerror)
-#define gai_strerror   xgai_strerror
+#define gai_strerror    xgai_strerror
 #endif
 
 #endif /* HAVE_GETADDRINFO */
 #endif /* _getaddrinfo_h */
+
index a8b7851e4b72d4ad26eb314588796d7c1c387e5d..100354a57d1c8be6bab12c41a436d85c07308d53 100644 (file)
@@ -26,7 +26,7 @@
  */
 #include "squid.h"
 
-/*     KAME: getnameinfo.c,v 1.72 2005/01/13 04:12:03 itojun Exp       */
+/*  KAME: getnameinfo.c,v 1.72 2005/01/13 04:12:03 itojun Exp   */
 
 /*
  * Copyright (C) 1995, 1996, 1997, and 1998 WIDE Project.
@@ -133,13 +133,15 @@ static const struct afd {
     int a_portoff;
 } afdl [] = {
 #if INET6
-    {PF_INET6, sizeof(struct in6_addr), sizeof(struct sockaddr_in6),
+    {   PF_INET6, sizeof(struct in6_addr), sizeof(struct sockaddr_in6),
         offsetof(struct sockaddr_in6, sin6_addr),
-        offsetof(struct sockaddr_in6, sin6_port)},
+        offsetof(struct sockaddr_in6, sin6_port)
+    },
 #endif
-    {PF_INET, sizeof(struct in_addr), sizeof(struct sockaddr_in),
-     offsetof(struct sockaddr_in, sin_addr),
-     offsetof(struct sockaddr_in, sin_port)},
+    {   PF_INET, sizeof(struct in_addr), sizeof(struct sockaddr_in),
+        offsetof(struct sockaddr_in, sin_addr),
+        offsetof(struct sockaddr_in, sin_port)
+    },
     {0, 0, 0, 0, 0},
 };
 
@@ -171,7 +173,7 @@ int flags;
     if (sa == NULL)
         return EAI_FAIL;
 
-#if HAVE_SA_LEN        /*XXX*/
+#if HAVE_SA_LEN /*XXX*/
     if (sa->sa_len != salen)
         return EAI_FAIL;
 #endif
@@ -423,3 +425,4 @@ int flags;
 }
 #endif /* INET6 */
 #endif
+
index e15efc60e031e247f1685c3fa55f83d50436aa85..605f6ca112ab8aa9a1f511521b583c0efbbe8d09 100644 (file)
@@ -20,7 +20,8 @@ SQUIDCEXTERN int xgetnameinfo(const struct sockaddr *sa,
                               char *serv,
                               size_t servlen,
                               int flags );
-#define getnameinfo    xgetnameinfo
+#define getnameinfo xgetnameinfo
 
 #endif /* HAVE_GETNAMEINFO */
 #endif /* _getnameinfo_h */
+
index e14879dbec53949e08b90f03dec3a6f7e395a835..a99ae61ec298fbf3f893f801725066af62bea291 100644 (file)
@@ -14,9 +14,9 @@
  * Update/Maintenance History:
  *
  *    24-Sep-2007 : Copied from bind 9.3.3
- *                     - Added protection around libray headers
- *                     - Altered configure checks
- *                     - Un-hacked slightly to use system gethostbyname()
+ *          - Added protection around libray headers
+ *          - Altered configure checks
+ *          - Un-hacked slightly to use system gethostbyname()
  *
  *    06-Oct-2007 : Various fixes to allow the build on MinGW
  *
@@ -100,11 +100,11 @@ static const char *inet_ntop6 (const u_char *src, char *dst, size_t size);
 
 /* char *
  * inet_ntop(af, src, dst, size)
- *     convert a network format address to presentation format.
+ *  convert a network format address to presentation format.
  * return:
- *     pointer to presentation format address (`dst'), or NULL (see errno).
+ *  pointer to presentation format address (`dst'), or NULL (see errno).
  * author:
- *     Paul Vixie, 1996.
+ *  Paul Vixie, 1996.
  */
 const char *
 xinet_ntop(af, src, dst, size)
@@ -127,14 +127,14 @@ size_t size;
 
 /* const char *
  * inet_ntop4(src, dst, size)
- *     format an IPv4 address
+ *  format an IPv4 address
  * return:
- *     `dst' (as a const)
+ *  `dst' (as a const)
  * notes:
- *     (1) uses no statics
- *     (2) takes a u_char* not an in_addr as input
+ *  (1) uses no statics
+ *  (2) takes a u_char* not an in_addr as input
  * author:
- *     Paul Vixie, 1996.
+ *  Paul Vixie, 1996.
  */
 static const char *
 inet_ntop4(src, dst, size)
@@ -155,9 +155,9 @@ size_t size;
 
 /* const char *
  * inet_ntop6(src, dst, size)
- *     convert IPv6 binary address into presentation (printable) format
+ *  convert IPv6 binary address into presentation (printable) format
  * author:
- *     Paul Vixie, 1996.
+ *  Paul Vixie, 1996.
  */
 static const char *
 inet_ntop6(src, dst, size)
@@ -179,8 +179,8 @@ size_t size;
 
     /*
      * Preprocess:
-     * Copy the input (bytewise) array into a wordwise array.
-     * Find the longest run of 0x00's in src[] for :: shorthanding.
+     *  Copy the input (bytewise) array into a wordwise array.
+     *  Find the longest run of 0x00's in src[] for :: shorthanding.
      */
     memset(words, '\0', sizeof words);
     for (i = 0; i < NS_IN6ADDRSZ; i++)
@@ -254,3 +254,4 @@ size_t size;
 }
 
 #endif /* HAVE_INET_NTOP */
+
index 11aa427d83318074de38caf621b03cf68eac1bc0..454a8a8bd9fe603fb2e7eaabd5e842d6beee6691 100644 (file)
@@ -25,3 +25,4 @@ SQUIDCEXTERN const char * xinet_ntop(int af, const void *src, char *dst, size_t
 
 #endif
 #endif /* _INC_INET_NTOP_H */
+
index 342290c694e9a37a216b2e90873189795b54e737..7e158b805c428c01093b907113d32a0bc9ae6052 100644 (file)
@@ -89,19 +89,19 @@ static const char rcsid[] = "inet_pton.c,v 1.2.206.2 2005/07/28 07:43:18 marka E
  * sizeof(int) < 4.  sizeof(int) > 4 is fine; all the world's not a VAX.
  */
 
-static int     inet_pton4 (const char *src, u_char *dst);
-static int     inet_pton6 (const char *src, u_char *dst);
+static int  inet_pton4 (const char *src, u_char *dst);
+static int  inet_pton6 (const char *src, u_char *dst);
 
 /* int
  * inet_pton(af, src, dst)
- *     convert from presentation format (which usually means ASCII printable)
- *     to network format (which is usually some kind of binary format).
+ *  convert from presentation format (which usually means ASCII printable)
+ *  to network format (which is usually some kind of binary format).
  * return:
- *     1 if the address was valid for the specified address family
- *     0 if the address wasn't valid (`dst' is untouched in this case)
- *     -1 if some other error occurred (`dst' is untouched in this case, too)
+ *  1 if the address was valid for the specified address family
+ *  0 if the address wasn't valid (`dst' is untouched in this case)
+ *  -1 if some other error occurred (`dst' is untouched in this case, too)
  * author:
- *     Paul Vixie, 1996.
+ *  Paul Vixie, 1996.
  */
 int
 xinet_pton(af, src, dst)
@@ -123,13 +123,13 @@ void *dst;
 
 /* int
  * inet_pton4(src, dst)
- *     like inet_aton() but without all the hexadecimal and shorthand.
+ *  like inet_aton() but without all the hexadecimal and shorthand.
  * return:
- *     1 if `src' is a valid dotted quad, else 0.
+ *  1 if `src' is a valid dotted quad, else 0.
  * notice:
- *     does not touch `dst' unless it's returning 1.
+ *  does not touch `dst' unless it's returning 1.
  * author:
- *     Paul Vixie, 1996.
+ *  Paul Vixie, 1996.
  */
 static int
 inet_pton4(src, dst)
@@ -175,16 +175,16 @@ u_char *dst;
 
 /* int
  * inet_pton6(src, dst)
- *     convert presentation level address to network order binary form.
+ *  convert presentation level address to network order binary form.
  * return:
- *     1 if `src' is a valid [RFC1884 2.2] address, else 0.
+ *  1 if `src' is a valid [RFC1884 2.2] address, else 0.
  * notice:
- *     (1) does not touch `dst' unless it's returning 1.
- *     (2) :: in a full address is silently ignored.
+ *  (1) does not touch `dst' unless it's returning 1.
+ *  (2) :: in a full address is silently ignored.
  * credit:
- *     inspired by Mark Andrews.
+ *  inspired by Mark Andrews.
  * author:
- *     Paul Vixie, 1996.
+ *  Paul Vixie, 1996.
  */
 static int
 inet_pton6(src, dst)
@@ -242,7 +242,7 @@ u_char *dst;
                 inet_pton4(curtok, tp) > 0) {
             tp += NS_INADDRSZ;
             seen_xdigits = 0;
-            break;     /* '\0' was seen by inet_pton4(). */
+            break;  /* '\0' was seen by inet_pton4(). */
         }
         return (0);
     }
@@ -275,3 +275,4 @@ u_char *dst;
 }
 
 #endif /* HAVE_INET_PTON */
+
index a6e99dd0a61449184b079a4872725f526dca07d0..d0d46c49c681fafef6412fd024126ad5fc502b1e 100644 (file)
@@ -28,3 +28,4 @@ SQUIDCEXTERN int xinet_pton(int af, const char *src, void *dst);
 
 #endif
 #endif /* _INC_INET_NTOP_H */
+
index 05d10831efc54199099c6fa80910cbe6a2a97128..25eb2464f25abfef86405b1f66d42cc336f31543 100644 (file)
@@ -15,3 +15,4 @@ SQUIDCEXTERN int initgroups(const char *user, gid_t group);
 
 #endif
 #endif /* SQUID_INITGROPS_H */
+
index 491e13b68038e96765c09d9e767a7912d2cc4e21..1715ba0acd7436bc737ae348787e2f148036cc5d 100644 (file)
@@ -38,13 +38,14 @@ memrchr(const void *s, int c, size_t n)
     const unsigned char *cp;
 
     if (n != 0) {
-       cp = (unsigned char *)s + n;
-       do {
-           if (*(--cp) == (unsigned char)c)
-               return((void *)cp);
-       } while (--n != 0);
+        cp = (unsigned char *)s + n;
+        do {
+            if (*(--cp) == (unsigned char)c)
+                return((void *)cp);
+        } while (--n != 0);
     }
     return((void *)0);
 }
 
 #endif
+
index 9b3c1d85663688a0cb230652f3406e76be4241c2..1ad7c7247b19d4ddc920d083b3999e6b17883ed1 100644 (file)
@@ -35,3 +35,4 @@ void *memrchr(const void *s, int c, size_t n);
 
 #endif
 #endif /* SQUID_COMPAT_MEMRCHR_H */
+
index c348e5cbf299d6c332102ef03e22e6d4a18c9228..2aaad223e407f0326a8fb545e1c5fa0538249a91 100644 (file)
@@ -208,8 +208,8 @@ _free_osfhnd(int filehandle)
         _osfhnd(filehandle) = (long) INVALID_HANDLE_VALUE;
         return (0);
     } else {
-        errno = EBADF;         /* bad handle */
-        _doserrno = 0L;                /* not an OS error */
+        errno = EBADF;      /* bad handle */
+        _doserrno = 0L;     /* not an OS error */
         return -1;
     }
 }
@@ -355,3 +355,4 @@ syslog(int priority, const char *fmt, ...)
 
 /* note: this is all MSWindows-specific code; all of it should be conditional */
 #endif /* _SQUID_WINDOWS_ */
+
index 05c64600b590ec847100a4643159fe17f4f979c3..ed90c1393e720e06e9ba15fcc79b957ec11f8c04 100644 (file)
@@ -32,3 +32,4 @@
 
 #endif /* _SQUID_AIX_ */
 #endif /* SQUID_OS_AIX_H */
+
index f0562fa3ab024dbb568ee593cd9add6fa80725a1..ea1cd42e169ee95af417b74498f158755de0f405 100644 (file)
@@ -18,3 +18,4 @@
 
 #endif /* _SQUID_ANDROID_ */
 #endif /* SQUID_OS_ANDROID_H */
+
index 03c329f38555ffd0709a796b676655ace64e50a9..476d6b8ad7148507ea346c19338114f82f3b4522 100644 (file)
@@ -26,3 +26,4 @@
 
 #endif /* _SQUID_DRAGONFLY_ */
 #endif /* SQUID_OS_DRAGONFLY_H */
+
index 22a167f7e7d371fd9cf69fd2d99d8ee260b8f27c..c3534ae006dbb826514a605b733f142edf98967f 100644 (file)
@@ -41,3 +41,4 @@
 
 #endif /* _SQUID_FREEBSD_ */
 #endif /* SQUID_OS_FREEBSD_H */
+
index 6a64febf66cc42356d66f110f4acf087e94a42c7..eaa293c8b80d34b0f179dc3b9b0eaee575ab3059 100644 (file)
@@ -40,3 +40,4 @@
 
 #endif /* _SQUID_HPUX_ */
 #endif /* SQUID_OS_HPUX_H */
+
index d1303eec8827702f79cd690caee8cc536cb9fa63..dcddb5b31e4acdaff04782b31602209bdf9b9bc5 100644 (file)
@@ -72,3 +72,4 @@ typedef uint32_t __u32;
 
 #endif /* _SQUID_LINUX_ */
 #endif /* SQUID_OS_LINUX_H */
+
index a972e1a7da874d44a962623048a7abb3ab81ca46..855f91dedb029b6ea9f7bae757e714147ad8249b 100644 (file)
@@ -35,3 +35,4 @@
 
 #endif /* _SQUID_APPLE_ */
 #endif /* SQUID_OS_MACOSX_H */
+
index e80fd6a124f5566ac23f6354502b2454c95f1225..1d3e6eb2fe08e362d7cf760f866136775973fa5b 100644 (file)
@@ -70,7 +70,7 @@
 #endif
 
 #if defined(_FILE_OFFSET_BITS) && _FILE_OFFSET_BITS == 64
-# define __USE_FILE_OFFSET64   1
+# define __USE_FILE_OFFSET64    1
 #endif
 
 #if defined(_MSC_VER) /* Microsoft C Compiler ONLY */
@@ -179,7 +179,7 @@ SQUIDCEXTERN int WIN32_truncate(const char *pathname, off_t length);
 #define O_RANDOM        _O_RANDOM
 #endif
 #ifndef O_NDELAY
-#define O_NDELAY       0
+#define O_NDELAY    0
 #endif
 
 #ifndef S_IFMT
@@ -226,16 +226,16 @@ SQUIDCEXTERN int WIN32_truncate(const char *pathname, off_t length);
 #endif
 
 #if defined(_MSC_VER)
-#define        S_ISDIR(m) (((m) & _S_IFDIR) == _S_IFDIR)
+#define S_ISDIR(m) (((m) & _S_IFDIR) == _S_IFDIR)
 #endif
 
-#define SIGHUP 1       /* hangup */
-#define SIGKILL        9       /* kill (cannot be caught or ignored) */
-#define SIGBUS 10      /* bus error */
-#define SIGPIPE        13      /* write on a pipe with no one to read it */
-#define SIGCHLD        20      /* to parent on child stop or exit */
-#define SIGUSR1 30     /* user defined signal 1 */
-#define SIGUSR2 31     /* user defined signal 2 */
+#define SIGHUP  1   /* hangup */
+#define SIGKILL 9   /* kill (cannot be caught or ignored) */
+#define SIGBUS  10  /* bus error */
+#define SIGPIPE 13  /* write on a pipe with no one to read it */
+#define SIGCHLD 20  /* to parent on child stop or exit */
+#define SIGUSR1 30  /* user defined signal 1 */
+#define SIGUSR2 31  /* user defined signal 2 */
 
 #if _SQUID_MINGW_
 typedef unsigned char boolean;
@@ -267,8 +267,8 @@ struct group {
 
 #if !HAVE_GETTIMEOFDAY
 struct timezone {
-    int        tz_minuteswest; /* minutes west of Greenwich */
-    int        tz_dsttime;     /* type of dst correction */
+    int tz_minuteswest; /* minutes west of Greenwich */
+    int tz_dsttime; /* type of dst correction */
 };
 #endif
 
@@ -812,27 +812,27 @@ WSASocket(int a, int t, int p, LPWSAPROTOCOL_INFO i, GROUP g, DWORD f)
 
 #else /* #ifdef __cplusplus */
 #define connect(s,n,l) \
-       (SOCKET_ERROR == connect(_get_osfhandle(s),n,l) ? \
-       (WSAEMFILE == (errno = WSAGetLastError()) ? errno = EMFILE : -1, -1) : 0)
+    (SOCKET_ERROR == connect(_get_osfhandle(s),n,l) ? \
+    (WSAEMFILE == (errno = WSAGetLastError()) ? errno = EMFILE : -1, -1) : 0)
 #define gethostbyname(n) \
-       (NULL == ((HOSTENT FAR*)(ws32_result = (int)gethostbyname(n))) ? \
-       (errno = WSAGetLastError()), (HOSTENT FAR*)NULL : (HOSTENT FAR*)ws32_result)
+    (NULL == ((HOSTENT FAR*)(ws32_result = (int)gethostbyname(n))) ? \
+    (errno = WSAGetLastError()), (HOSTENT FAR*)NULL : (HOSTENT FAR*)ws32_result)
 #define gethostname(n,l) \
-       (SOCKET_ERROR == gethostname(n,l) ? \
-       (errno = WSAGetLastError()), -1 : 0)
+    (SOCKET_ERROR == gethostname(n,l) ? \
+    (errno = WSAGetLastError()), -1 : 0)
 #define recv(s,b,l,f) \
-       (SOCKET_ERROR == (ws32_result = recv(_get_osfhandle(s),b,l,f)) ? \
-       (errno = WSAGetLastError()), -1 : ws32_result)
+    (SOCKET_ERROR == (ws32_result = recv(_get_osfhandle(s),b,l,f)) ? \
+    (errno = WSAGetLastError()), -1 : ws32_result)
 #define sendto(s,b,l,f,t,tl) \
-       (SOCKET_ERROR == (ws32_result = sendto(_get_osfhandle(s),b,l,f,t,tl)) ? \
-       (errno = WSAGetLastError()), -1 : ws32_result)
+    (SOCKET_ERROR == (ws32_result = sendto(_get_osfhandle(s),b,l,f,t,tl)) ? \
+    (errno = WSAGetLastError()), -1 : ws32_result)
 #define select(n,r,w,e,t) \
-       (SOCKET_ERROR == (ws32_result = select(n,r,w,e,t)) ? \
-       (errno = WSAGetLastError()), -1 : ws32_result)
+    (SOCKET_ERROR == (ws32_result = select(n,r,w,e,t)) ? \
+    (errno = WSAGetLastError()), -1 : ws32_result)
 #define socket(f,t,p) \
-       (INVALID_SOCKET == ((SOCKET)(ws32_result = (int)socket(f,t,p))) ? \
-       ((WSAEMFILE == (errno = WSAGetLastError()) ? errno = EMFILE : -1), -1) : \
-       (SOCKET)_open_osfhandle(ws32_result,0))
+    (INVALID_SOCKET == ((SOCKET)(ws32_result = (int)socket(f,t,p))) ? \
+    ((WSAEMFILE == (errno = WSAGetLastError()) ? errno = EMFILE : -1), -1) : \
+    (SOCKET)_open_osfhandle(ws32_result,0))
 #define write      _write /* Needed in util.c */
 #define open       _open /* Needed in win32lib.c */
 #endif /* #ifdef __cplusplus */
@@ -845,26 +845,26 @@ WSASocket(int a, int t, int p, LPWSAPROTOCOL_INFO i, GROUP g, DWORD f)
 #if HAVE_SYS_RESOURCE_H
 #include <sys/resource.h>
 #else
-#define        RUSAGE_SELF     0               /* calling process */
-#define        RUSAGE_CHILDREN -1              /* terminated child processes */
+#define RUSAGE_SELF 0       /* calling process */
+#define RUSAGE_CHILDREN -1      /* terminated child processes */
 
 struct rusage {
-    struct timeval ru_utime;   /* user time used */
-    struct timeval ru_stime;   /* system time used */
-    long ru_maxrss;                    /* integral max resident set size */
-    long ru_ixrss;                     /* integral shared text memory size */
-    long ru_idrss;                     /* integral unshared data size */
-    long ru_isrss;                     /* integral unshared stack size */
-    long ru_minflt;                    /* page reclaims */
-    long ru_majflt;                    /* page faults */
-    long ru_nswap;                     /* swaps */
-    long ru_inblock;           /* block input operations */
-    long ru_oublock;           /* block output operations */
-    long ru_msgsnd;                    /* messages sent */
-    long ru_msgrcv;                    /* messages received */
-    long ru_nsignals;          /* signals received */
-    long ru_nvcsw;                     /* voluntary context switches */
-    long ru_nivcsw;                    /* involuntary context switches */
+    struct timeval ru_utime;    /* user time used */
+    struct timeval ru_stime;    /* system time used */
+    long ru_maxrss;         /* integral max resident set size */
+    long ru_ixrss;          /* integral shared text memory size */
+    long ru_idrss;          /* integral unshared data size */
+    long ru_isrss;          /* integral unshared stack size */
+    long ru_minflt;         /* page reclaims */
+    long ru_majflt;         /* page faults */
+    long ru_nswap;          /* swaps */
+    long ru_inblock;        /* block input operations */
+    long ru_oublock;        /* block output operations */
+    long ru_msgsnd;         /* messages sent */
+    long ru_msgrcv;         /* messages received */
+    long ru_nsignals;       /* signals received */
+    long ru_nvcsw;          /* voluntary context switches */
+    long ru_nivcsw;         /* involuntary context switches */
 };
 #endif /* HAVE_SYS_RESOURCE_H */
 
@@ -996,3 +996,4 @@ void WIN32_maperror(unsigned long WIN32_oserrno);
 
 #endif /* _SQUID_WINDOWS_ */
 #endif /* SQUID_OS_MSWINDOWS_H */
+
index 2f144b7fb962329b039b1a95ac0288716b1d38b6..7f1e094b9bdc56f41233979e368b67ffeeb0d459 100644 (file)
@@ -31,3 +31,4 @@
 
 #endif /* _SQUID_NETBSD_ */
 #endif /* SQUID_OS_NETBSD_H */
+
index 08d342e3e08933f6a89e46675f5203f1b5035f14..830636706ac2f43f0b0fc5caffe0dcc134e7d344 100644 (file)
@@ -55,3 +55,4 @@
 
 #endif /* _SQUID_NEXT_ */
 #endif /* SQUID_OS_NEXT_H */
+
index d8f6c23f95159250fb1a05aebe47114a2ab42225..2b1782961a2aefe414233e8fceaf122c40e56fc2 100644 (file)
@@ -48,3 +48,4 @@
 
 #endif /* _SQUID_OPENBSD_ */
 #endif /* SQUID_OS_OPENBSD_H */
+
index 4011d04fc8674a8916e9c91b2d80f4901e670bff..2387d34aeb506377de95c6537de0697971e51086 100644 (file)
  * Use is subject to license terms.
  */
 
-/*     Copyright (c) 1983, 1984, 1985, 1986, 1987, 1988, 1989 AT&T     */
-/*       All Rights Reserved   */
+/*  Copyright (c) 1983, 1984, 1985, 1986, 1987, 1988, 1989 AT&T */
+/*    All Rights Reserved   */
 
 /*
  * BIND 4.9.3:
  *
  * Copyright (c) 1980, 1983, 1988, 1993
- *     The Regents of the University of California.  All rights reserved.
+ *  The Regents of the University of California.  All rights reserved.
  *
  * Redistribution and use in source and binary forms, with or without
  * modification, are permitted provided that the following conditions
@@ -34,8 +34,8 @@
  *    documentation and/or other materials provided with the distribution.
  * 3. All advertising materials mentioning features or use of this software
  *    must display the following acknowledgement:
- *     This product includes software developed by the University of
- *     California, Berkeley and its contributors.
+ *  This product includes software developed by the University of
+ *  California, Berkeley and its contributors.
  * 4. Neither the name of the University nor the names of its contributors
  *    may be used to endorse or promote products derived from this software
  *    without specific prior written permission.
@@ -81,7 +81,7 @@
  */
 
 #ifndef _NETDB_H
-#define        _NETDB_H
+#define _NETDB_H
 
 #include <sys/types.h>
 #include <netinet/in.h>
 #endif /* !defined(_XPG4_2) || defined(_XPG6) || defined(__EXTENSIONS__) */
 #include <sys/feature_tests.h>
 
-#ifdef __cplusplus
+#ifdef  __cplusplus
 extern "C" {
 #endif
 
-#define        _PATH_HEQUIV    "/etc/hosts.equiv"
-#define        _PATH_HOSTS     "/etc/hosts"
-#define        _PATH_IPNODES   "/etc/inet/ipnodes"
-#define        _PATH_IPSECALGS "/etc/inet/ipsecalgs"
-#define        _PATH_NETMASKS  "/etc/netmasks"
-#define        _PATH_NETWORKS  "/etc/networks"
-#define        _PATH_PROTOCOLS "/etc/protocols"
-#define        _PATH_SERVICES  "/etc/services"
-
-    struct     hostent {
-        char   *h_name;        /* official name of host */
-        char   **h_aliases;    /* alias list */
-        int    h_addrtype;     /* host address type */
-        int    h_length;       /* length of address */
-        char   **h_addr_list;  /* list of addresses from name server */
-#define        h_addr  h_addr_list[0]  /* address, for backward compatiblity */
-    };
-
-    /*
    * addrinfo introduced with IPv6 for Protocol-Independent Hostname
    * and Service Name Translation.
    */
+#define _PATH_HEQUIV    "/etc/hosts.equiv"
+#define _PATH_HOSTS "/etc/hosts"
+#define _PATH_IPNODES   "/etc/inet/ipnodes"
+#define _PATH_IPSECALGS "/etc/inet/ipsecalgs"
+#define _PATH_NETMASKS  "/etc/netmasks"
+#define _PATH_NETWORKS  "/etc/networks"
+#define _PATH_PROTOCOLS "/etc/protocols"
+#define _PATH_SERVICES  "/etc/services"
+
+struct  hostent {
+    char    *h_name;    /* official name of host */
+    char    **h_aliases;    /* alias list */
+    int h_addrtype; /* host address type */
+    int h_length;   /* length of address */
+    char    **h_addr_list;  /* list of addresses from name server */
+#define h_addr  h_addr_list[0]  /* address, for backward compatiblity */
+};
+
+/*
+ * addrinfo introduced with IPv6 for Protocol-Independent Hostname
+ * and Service Name Translation.
+ */
 
 #if !defined(_XPG4_2) || defined(_XPG6) || defined(__EXTENSIONS__)
-    struct addrinfo {
-        int ai_flags;          /* AI_PASSIVE, AI_CANONNAME, ... */
-        int ai_family;         /* PF_xxx */
-        int ai_socktype;       /* SOCK_xxx */
-        int ai_protocol;       /* 0 or IPPROTO_xxx for IPv4 and IPv6 */
+struct addrinfo {
+    int ai_flags;       /* AI_PASSIVE, AI_CANONNAME, ... */
+    int ai_family;      /* PF_xxx */
+    int ai_socktype;    /* SOCK_xxx */
+    int ai_protocol;    /* 0 or IPPROTO_xxx for IPv4 and IPv6 */
 #ifdef __sparcv9
-        int _ai_pad;           /* for backwards compat with old size_t */
+    int _ai_pad;        /* for backwards compat with old size_t */
 #endif /* __sparcv9 */
-        socklen_t ai_addrlen;
-        char *ai_canonname;    /* canonical name for hostname */
-        struct sockaddr *ai_addr;      /* binary address */
-        struct addrinfo *ai_next;      /* next structure in linked list */
-    };
-
-    /* addrinfo flags */
-#define        AI_PASSIVE      0x0008  /* intended for bind() + listen() */
-#define        AI_CANONNAME    0x0010  /* return canonical version of host */
-#define        AI_NUMERICHOST  0x0020  /* use numeric node address string */
-#define        AI_NUMERICSERV  0x0040  /* servname is assumed numeric */
-
-    /* getipnodebyname() flags */
-#define        AI_V4MAPPED     0x0001  /* IPv4 mapped addresses if no IPv6 */
-#define        AI_ALL          0x0002  /* IPv6 and IPv4 mapped addresses */
-#define        AI_ADDRCONFIG   0x0004  /* AAAA or A records only if IPv6/IPv4 cnfg'd */
-
-    /*
    * These were defined in RFC 2553 but not SUSv3
    * or RFC 3493 which obsoleted 2553.
    */
+    socklen_t ai_addrlen;
+    char *ai_canonname; /* canonical name for hostname */
+    struct sockaddr *ai_addr;   /* binary address */
+    struct addrinfo *ai_next;   /* next structure in linked list */
+};
+
+/* addrinfo flags */
+#define AI_PASSIVE  0x0008  /* intended for bind() + listen() */
+#define AI_CANONNAME    0x0010  /* return canonical version of host */
+#define AI_NUMERICHOST  0x0020  /* use numeric node address string */
+#define AI_NUMERICSERV  0x0040  /* servname is assumed numeric */
+
+/* getipnodebyname() flags */
+#define AI_V4MAPPED 0x0001  /* IPv4 mapped addresses if no IPv6 */
+#define AI_ALL      0x0002  /* IPv6 and IPv4 mapped addresses */
+#define AI_ADDRCONFIG   0x0004  /* AAAA or A records only if IPv6/IPv4 cnfg'd */
+
+/*
+ * These were defined in RFC 2553 but not SUSv3
+ * or RFC 3493 which obsoleted 2553.
+ */
 #if !defined(_XPG6) || defined(__EXTENSIONS__)
-#define        AI_DEFAULT      (AI_V4MAPPED | AI_ADDRCONFIG)
+#define AI_DEFAULT  (AI_V4MAPPED | AI_ADDRCONFIG)
 
-    /* addrinfo errors */
-#define        EAI_ADDRFAMILY  1       /* address family not supported */
-#define        EAI_NODATA      7       /* no address */
+/* addrinfo errors */
+#define EAI_ADDRFAMILY  1   /* address family not supported */
+#define EAI_NODATA  7   /* no address */
 #endif /* !defined(_XPG6) || defined(__EXTENSIONS__) */
-#define        EAI_AGAIN       2       /* DNS temporary failure */
-#define        EAI_BADFLAGS    3       /* invalid ai_flags */
-#define        EAI_FAIL        4       /* DNS non-recoverable failure */
-#define        EAI_FAMILY      5       /* ai_family not supported */
-#define        EAI_MEMORY      6       /* memory allocation failure */
-#define        EAI_NONAME      8       /* host/servname not known */
-#define        EAI_SERVICE     9       /* servname not supported for ai_socktype */
-#define        EAI_SOCKTYPE    10      /* ai_socktype not supported */
-#define        EAI_SYSTEM      11      /* system error in errno */
-#define        EAI_OVERFLOW    12      /* argument buffer overflow */
-#define        EAI_PROTOCOL    13
-#define        EAI_MAX         14
-
-    /* getnameinfo flags */
-#define        NI_NOFQDN       0x0001
-#define        NI_NUMERICHOST  0x0002  /* return numeric form of address */
-#define        NI_NAMEREQD     0x0004  /* request DNS name */
-#define        NI_NUMERICSERV  0x0008
-#define        NI_DGRAM        0x0010
+#define EAI_AGAIN   2   /* DNS temporary failure */
+#define EAI_BADFLAGS    3   /* invalid ai_flags */
+#define EAI_FAIL    4   /* DNS non-recoverable failure */
+#define EAI_FAMILY  5   /* ai_family not supported */
+#define EAI_MEMORY  6   /* memory allocation failure */
+#define EAI_NONAME  8   /* host/servname not known */
+#define EAI_SERVICE 9   /* servname not supported for ai_socktype */
+#define EAI_SOCKTYPE    10  /* ai_socktype not supported */
+#define EAI_SYSTEM  11  /* system error in errno */
+#define EAI_OVERFLOW    12  /* argument buffer overflow */
+#define EAI_PROTOCOL    13
+#define EAI_MAX     14
+
+/* getnameinfo flags */
+#define NI_NOFQDN   0x0001
+#define NI_NUMERICHOST  0x0002  /* return numeric form of address */
+#define NI_NAMEREQD 0x0004  /* request DNS name */
+#define NI_NUMERICSERV  0x0008
+#define NI_DGRAM    0x0010
 
 #if !defined(_XPG6) || defined(__EXTENSIONS__)
-    /* Not listed in any standards document */
-#define        NI_WITHSCOPEID  0x0020
-#define        NI_NUMERICSCOPE 0x0040
+/* Not listed in any standards document */
+#define NI_WITHSCOPEID  0x0020
+#define NI_NUMERICSCOPE 0x0040
 
-    /* getnameinfo max sizes as defined in RFC 2553 obsoleted in RFC 3493 */
-#define        NI_MAXHOST      1025
-#define        NI_MAXSERV      32
+/* getnameinfo max sizes as defined in RFC 2553 obsoleted in RFC 3493 */
+#define NI_MAXHOST  1025
+#define NI_MAXSERV  32
 #endif /* !defined(_XPG6) || defined(__EXTENSIONS__) */
 #endif /* !defined(_XPG4_2) || defined(_XPG6) || defined(__EXTENSIONS__) */
 
-    /*
    * Scope delimit character
    */
-#define        SCOPE_DELIMITER '%'
+/*
+ * Scope delimit character
+ */
+#define SCOPE_DELIMITER '%'
 
-    /*
    * Algorithm entry for /etc/inet/ipsecalgs which defines IPsec protocols
    * and algorithms.
    */
+/*
+ * Algorithm entry for /etc/inet/ipsecalgs which defines IPsec protocols
+ * and algorithms.
+ */
 #if !defined(_XPG4_2) || defined(__EXTENSIONS__)
-    typedef struct ipsecalgent {
-        char **a_names;                /* algorithm names */
-        int a_proto_num;       /* protocol number */
-        int a_alg_num;         /* algorithm number */
-        char *a_mech_name;     /* encryption framework mechanism name */
-        int *a_block_sizes;    /* supported block sizes */
-        int *a_key_sizes;      /* supported key sizes */
-        int a_key_increment;   /* key size increment */
-        int *a_mech_params;    /* mechanism specific parameters */
-        int a_alg_flags;       /* algorithm flags */
-    } ipsecalgent_t;
-
-    /* well-known IPsec protocol numbers */
-
-#define        IPSEC_PROTO_AH          2
-#define        IPSEC_PROTO_ESP         3
+typedef struct ipsecalgent {
+    char **a_names;     /* algorithm names */
+    int a_proto_num;    /* protocol number */
+    int a_alg_num;      /* algorithm number */
+    char *a_mech_name;  /* encryption framework mechanism name */
+    int *a_block_sizes; /* supported block sizes */
+    int *a_key_sizes;   /* supported key sizes */
+    int a_key_increment;    /* key size increment */
+    int *a_mech_params; /* mechanism specific parameters */
+    int a_alg_flags;    /* algorithm flags */
+} ipsecalgent_t;
+
+/* well-known IPsec protocol numbers */
+
+#define IPSEC_PROTO_AH      2
+#define IPSEC_PROTO_ESP     3
 #endif /* !defined(_XPG4_2) || defined(__EXTENSIONS__) */
 
-    /*
    * Assumption here is that a network number
    * fits in 32 bits -- probably a poor one.
    */
-    struct     netent {
-        char           *n_name;        /* official name of net */
-        char           **n_aliases;    /* alias list */
-        int            n_addrtype;     /* net address type */
-        in_addr_t      n_net;          /* network # */
-    };
-
-    struct     protoent {
-        char   *p_name;        /* official protocol name */
-        char   **p_aliases;    /* alias list */
-        int    p_proto;        /* protocol # */
-    };
-
-    struct     servent {
-        char   *s_name;        /* official service name */
-        char   **s_aliases;    /* alias list */
-        int    s_port;         /* port # */
-        char   *s_proto;       /* protocol to use */
-    };
-
-#ifdef __STDC__
+/*
+ * Assumption here is that a network number
+ * fits in 32 bits -- probably a poor one.
+ */
+struct  netent {
+    char        *n_name;    /* official name of net */
+    char        **n_aliases;    /* alias list */
+    int     n_addrtype; /* net address type */
+    in_addr_t   n_net;      /* network # */
+};
+
+struct  protoent {
+    char    *p_name;    /* official protocol name */
+    char    **p_aliases;    /* alias list */
+    int p_proto;    /* protocol # */
+};
+
+struct  servent {
+    char    *s_name;    /* official service name */
+    char    **s_aliases;    /* alias list */
+    int s_port;     /* port # */
+    char    *s_proto;   /* protocol to use */
+};
+
+#ifdef  __STDC__
 #if !defined(_XPG4_2) || defined(__EXTENSIONS__)
-    struct hostent     *gethostbyname_r
-    (const char *, struct hostent *, char *, int, int *h_errnop);
-    struct hostent     *gethostbyaddr_r
-    (const char *, int, int, struct hostent *, char *, int, int *h_errnop);
-    struct hostent     *getipnodebyname(const char *, int, int, int *);
-    struct hostent     *getipnodebyaddr(const void *, size_t, int, int *);
-    void               freehostent(struct hostent *);
-    struct hostent     *gethostent_r(struct hostent *, char *, int, int *h_errnop);
-
-    struct servent     *getservbyname_r
-    (const char *name, const char *, struct servent *, char *, int);
-    struct servent     *getservbyport_r
-    (int port, const char *, struct servent *, char *, int);
-    struct servent     *getservent_r(struct    servent *, char *, int);
-
-    struct netent      *getnetbyname_r
-    (const char *, struct netent *, char *, int);
-    struct netent      *getnetbyaddr_r(long, int, struct netent *, char *, int);
-    struct netent      *getnetent_r(struct netent *, char *, int);
-
-    struct protoent    *getprotobyname_r
-    (const char *, struct protoent *, char *, int);
-    struct protoent    *getprotobynumber_r
-    (int, struct protoent *, char *, int);
-    struct protoent    *getprotoent_r(struct protoent *, char *, int);
-
-    int getnetgrent_r(char **, char **, char **, char *, int);
-    int innetgr(const char *, const char *, const char *, const char *);
+struct hostent  *gethostbyname_r
+(const char *, struct hostent *, char *, int, int *h_errnop);
+struct hostent  *gethostbyaddr_r
+(const char *, int, int, struct hostent *, char *, int, int *h_errnop);
+struct hostent  *getipnodebyname(const char *, int, int, int *);
+struct hostent  *getipnodebyaddr(const void *, size_t, int, int *);
+void        freehostent(struct hostent *);
+struct hostent  *gethostent_r(struct hostent *, char *, int, int *h_errnop);
+
+struct servent  *getservbyname_r
+(const char *name, const char *, struct servent *, char *, int);
+struct servent  *getservbyport_r
+(int port, const char *, struct servent *, char *, int);
+struct servent  *getservent_r(struct    servent *, char *, int);
+
+struct netent   *getnetbyname_r
+(const char *, struct netent *, char *, int);
+struct netent   *getnetbyaddr_r(long, int, struct netent *, char *, int);
+struct netent   *getnetent_r(struct netent *, char *, int);
+
+struct protoent *getprotobyname_r
+(const char *, struct protoent *, char *, int);
+struct protoent *getprotobynumber_r
+(int, struct protoent *, char *, int);
+struct protoent *getprotoent_r(struct protoent *, char *, int);
+
+int getnetgrent_r(char **, char **, char **, char *, int);
+int innetgr(const char *, const char *, const char *, const char *);
 #endif /* !defined(_XPG4_2) || defined(__EXTENSIONS__) */
 
-    /* Old interfaces that return a pointer to a static area;  MT-unsafe */
-    struct hostent     *gethostbyname(const char *);
-    struct hostent     *gethostent(void);
-    struct netent      *getnetbyaddr(in_addr_t, int);
-    struct netent      *getnetbyname(const char *);
-    struct netent      *getnetent(void);
-    struct protoent    *getprotobyname(const char *);
-    struct protoent    *getprotobynumber(int);
-    struct protoent    *getprotoent(void);
-    struct servent     *getservbyname(const char *, const char *);
-    struct servent     *getservbyport(int, const char *);
-    struct servent     *getservent(void);
-
-    /* gethostbyaddr() second argument is a size_t only in unix95/unix98 */
+/* Old interfaces that return a pointer to a static area;  MT-unsafe */
+struct hostent  *gethostbyname(const char *);
+struct hostent  *gethostent(void);
+struct netent   *getnetbyaddr(in_addr_t, int);
+struct netent   *getnetbyname(const char *);
+struct netent   *getnetent(void);
+struct protoent *getprotobyname(const char *);
+struct protoent *getprotobynumber(int);
+struct protoent *getprotoent(void);
+struct servent  *getservbyname(const char *, const char *);
+struct servent  *getservbyport(int, const char *);
+struct servent  *getservent(void);
+
+/* gethostbyaddr() second argument is a size_t only in unix95/unix98 */
 #if !defined(_XPG4_2) || defined(_XPG6) || defined(__EXTENSIONS__)
-    struct hostent     *gethostbyaddr(const void *, socklen_t, int);
+struct hostent  *gethostbyaddr(const void *, socklen_t, int);
 #else
-    struct hostent     *gethostbyaddr(const void *, size_t, int);
+struct hostent  *gethostbyaddr(const void *, size_t, int);
 #endif /* !defined(_XPG4_2) || defined(_XPG6) || defined(__EXTENSIONS__) */
 
 #if !defined(_XPG4_2) || defined(__EXTENSIONS__)
-    int endhostent(void);
-    int endnetent(void);
-    int endprotoent(void);
-    int endservent(void);
-    int sethostent(int);
-    int setnetent(int);
-    int setprotoent(int);
-    int setservent(int);
+int endhostent(void);
+int endnetent(void);
+int endprotoent(void);
+int endservent(void);
+int sethostent(int);
+int setnetent(int);
+int setprotoent(int);
+int setservent(int);
 #else
-    void endhostent(void);
-    void endnetent(void);
-    void endprotoent(void);
-    void endservent(void);
-    void sethostent(int);
-    void setnetent(int);
-    void setprotoent(int);
-    void setservent(int);
+void endhostent(void);
+void endnetent(void);
+void endprotoent(void);
+void endservent(void);
+void sethostent(int);
+void setnetent(int);
+void setprotoent(int);
+void setservent(int);
 #endif /* !defined(_XPG4_2) || defined(__EXTENSIONS__) */
 
 #if !defined(_XPG4_2) || defined(_XPG6) || defined(__EXTENSIONS__)
 
-#ifdef _XPG6
-#ifdef __PRAGMA_REDEFINE_EXTNAME
+#ifdef  _XPG6
+#ifdef  __PRAGMA_REDEFINE_EXTNAME
 #pragma redefine_extname getaddrinfo __xnet_getaddrinfo
-#else  /* __PRAGMA_REDEFINE_EXTNAME */
-#define        getaddrinfo __xnet_getaddrinfo
-#endif /* __PRAGMA_REDEFINE_EXTNAME */
-#endif /* _XPG6 */
-
-    int                getaddrinfo(const char *_RESTRICT_KYWD1,
-                     const char *_RESTRICT_KYWD2,
-                     const struct addrinfo *_RESTRICT_KYWD3,
-                     struct addrinfo **_RESTRICT_KYWD4);
-    void               freeaddrinfo(struct addrinfo *);
-    const char *gai_strerror(int);
-    int                getnameinfo(const struct sockaddr *_RESTRICT_KYWD1,
-                     socklen_t, char *_RESTRICT_KYWD2, socklen_t,
-                     char *_RESTRICT_KYWD3, socklen_t, int);
+#else   /* __PRAGMA_REDEFINE_EXTNAME */
+#define getaddrinfo __xnet_getaddrinfo
+#endif  /* __PRAGMA_REDEFINE_EXTNAME */
+#endif  /* _XPG6 */
+
+int     getaddrinfo(const char *_RESTRICT_KYWD1,
+                    const char *_RESTRICT_KYWD2,
+                    const struct addrinfo *_RESTRICT_KYWD3,
+                    struct addrinfo **_RESTRICT_KYWD4);
+void        freeaddrinfo(struct addrinfo *);
+const char  *gai_strerror(int);
+int     getnameinfo(const struct sockaddr *_RESTRICT_KYWD1,
+                    socklen_t, char *_RESTRICT_KYWD2, socklen_t,
+                    char *_RESTRICT_KYWD3, socklen_t, int);
 #endif /* !defined(_XPG4_2) || defined(_XPG6) || defined(__EXTENSIONS__) */
 
 #if !defined(_XPG4_2) || defined(__EXTENSIONS__)
-    int getnetgrent(char **, char **, char **);
-    int setnetgrent(const char *);
-    int endnetgrent(void);
-    int rcmd(char **, unsigned short,
-             const char *, const char *, const char *, int *);
-    int rcmd_af(char **, unsigned short,
-                const char *, const char *, const char *, int *, int);
-    int rresvport_af(int *, int);
-    int rresvport_addr(int *, struct sockaddr_storage *);
-    int rexec(char **, unsigned short,
-              const char *, const char *, const char *, int *);
-    int rexec_af(char **, unsigned short,
-                 const char *, const char *, const char *, int *, int);
-    int rresvport(int *);
-    int ruserok(const char *, int, const char *, const char *);
-    /* BIND */
-    struct hostent     *gethostbyname2(const char *, int);
-    void               herror(const char *);
-    const char *hstrerror(int);
-    /* End BIND */
-
-    /* IPsec algorithm prototype definitions */
-    struct ipsecalgent *getipsecalgbyname(const char *, int, int *);
-    struct ipsecalgent *getipsecalgbynum(int, int, int *);
-    int getipsecprotobyname(const char *doi_name);
-    char *getipsecprotobynum(int doi_domain);
-    void freeipsecalgent(struct ipsecalgent *ptr);
-    /* END IPsec algorithm prototype definitions */
+int getnetgrent(char **, char **, char **);
+int setnetgrent(const char *);
+int endnetgrent(void);
+int rcmd(char **, unsigned short,
+         const char *, const char *, const char *, int *);
+int rcmd_af(char **, unsigned short,
+            const char *, const char *, const char *, int *, int);
+int rresvport_af(int *, int);
+int rresvport_addr(int *, struct sockaddr_storage *);
+int rexec(char **, unsigned short,
+          const char *, const char *, const char *, int *);
+int rexec_af(char **, unsigned short,
+             const char *, const char *, const char *, int *, int);
+int rresvport(int *);
+int ruserok(const char *, int, const char *, const char *);
+/* BIND */
+struct hostent  *gethostbyname2(const char *, int);
+void        herror(const char *);
+const char  *hstrerror(int);
+/* End BIND */
+
+/* IPsec algorithm prototype definitions */
+struct ipsecalgent *getipsecalgbyname(const char *, int, int *);
+struct ipsecalgent *getipsecalgbynum(int, int, int *);
+int getipsecprotobyname(const char *doi_name);
+char *getipsecprotobynum(int doi_domain);
+void freeipsecalgent(struct ipsecalgent *ptr);
+/* END IPsec algorithm prototype definitions */
 
 #endif /* !defined(_XPG4_2) || defined(__EXTENSIONS__) */
-#else  /* __STDC__ */
-    struct hostent     *gethostbyname_r();
-    struct hostent     *gethostbyaddr_r();
-    struct hostent     *getipnodebyname();
-    struct hostent     *getipnodebyaddr();
-    void                freehostent();
-    struct hostent     *gethostent_r();
-    struct servent     *getservbyname_r();
-    struct servent     *getservbyport_r();
-    struct servent     *getservent_r();
-    struct netent      *getnetbyname_r();
-    struct netent      *getnetbyaddr_r();
-    struct netent      *getnetent_r();
-    struct protoent    *getprotobyname_r();
-    struct protoent    *getprotobynumber_r();
-    struct protoent    *getprotoent_r();
-    int                 getnetgrent_r();
-    int                 innetgr();
-
-    /* Old interfaces that return a pointer to a static area;  MT-unsafe */
-    struct hostent     *gethostbyname();
-    struct hostent     *gethostbyaddr();
-    struct hostent     *gethostent();
-    struct netent      *getnetbyname();
-    struct netent      *getnetbyaddr();
-    struct netent      *getnetent();
-    struct servent     *getservbyname();
-    struct servent     *getservbyport();
-    struct servent     *getservent();
-    struct protoent    *getprotobyname();
-    struct protoent    *getprotobynumber();
-    struct protoent    *getprotoent();
-    int                 getnetgrent();
-
-    int sethostent();
-    int endhostent();
-    int setnetent();
-    int endnetent();
-    int setservent();
-    int endservent();
-    int setprotoent();
-    int endprotoent();
-    int setnetgrent();
-    int endnetgrent();
-    int rcmd();
-    int rcmd_af();
-    int rexec();
-    int rexec_af();
-    int rresvport();
-    int rresvport_af();
-    int rresvport_addr();
-    int ruserok();
-    /* BIND */
-    struct hostent     *gethostbyname2();
-    void               herror();
-    char               *hstrerror();
-    /* IPv6 prototype definitons */
-    int                getaddrinfo();
-    void               freeaddrinfo();
-    const char *gai_strerror();
-    int                getnameinfo();
-    /* END IPv6 prototype definitions */
-    /* End BIND */
+#else   /* __STDC__ */
+struct hostent  *gethostbyname_r();
+struct hostent  *gethostbyaddr_r();
+struct hostent  *getipnodebyname();
+struct hostent  *getipnodebyaddr();
+void         freehostent();
+struct hostent  *gethostent_r();
+struct servent  *getservbyname_r();
+struct servent  *getservbyport_r();
+struct servent  *getservent_r();
+struct netent   *getnetbyname_r();
+struct netent   *getnetbyaddr_r();
+struct netent   *getnetent_r();
+struct protoent *getprotobyname_r();
+struct protoent *getprotobynumber_r();
+struct protoent *getprotoent_r();
+int      getnetgrent_r();
+int      innetgr();
+
+/* Old interfaces that return a pointer to a static area;  MT-unsafe */
+struct hostent  *gethostbyname();
+struct hostent  *gethostbyaddr();
+struct hostent  *gethostent();
+struct netent   *getnetbyname();
+struct netent   *getnetbyaddr();
+struct netent   *getnetent();
+struct servent  *getservbyname();
+struct servent  *getservbyport();
+struct servent  *getservent();
+struct protoent *getprotobyname();
+struct protoent *getprotobynumber();
+struct protoent *getprotoent();
+int      getnetgrent();
+
+int sethostent();
+int endhostent();
+int setnetent();
+int endnetent();
+int setservent();
+int endservent();
+int setprotoent();
+int endprotoent();
+int setnetgrent();
+int endnetgrent();
+int rcmd();
+int rcmd_af();
+int rexec();
+int rexec_af();
+int rresvport();
+int rresvport_af();
+int rresvport_addr();
+int ruserok();
+/* BIND */
+struct hostent  *gethostbyname2();
+void        herror();
+char        *hstrerror();
+/* IPv6 prototype definitons */
+int     getaddrinfo();
+void        freeaddrinfo();
+const char  *gai_strerror();
+int     getnameinfo();
+/* END IPv6 prototype definitions */
+/* End BIND */
 
 #if !defined(_XPG4_2) || defined(__EXTENSIONS__)
-    /* IPsec algorithm prototype definitions */
-    struct ipsecalgent *getalgbyname();
-    struct ipsecalgent *getalgbydoi();
-    int getdoidomainbyname();
-    const char *getdoidomainbynum();
-    void freealgent();
-    /* END IPsec algorithm prototype definitions */
+/* IPsec algorithm prototype definitions */
+struct ipsecalgent *getalgbyname();
+struct ipsecalgent *getalgbydoi();
+int getdoidomainbyname();
+const char *getdoidomainbynum();
+void freealgent();
+/* END IPsec algorithm prototype definitions */
 #endif /* !defined(_XPG4_2) || defined(__EXTENSIONS__) */
 
-#endif /* __STDC__ */
+#endif  /* __STDC__ */
 
-    /*
    * Error return codes from gethostbyname() and gethostbyaddr()
    * (when using the resolver)
    */
+/*
+ * Error return codes from gethostbyname() and gethostbyaddr()
+ * (when using the resolver)
+ */
 
-    extern  int h_errno;
+extern  int h_errno;
 
-#ifdef _REENTRANT
-#ifdef __STDC__
-    extern int *__h_errno(void);
+#ifdef  _REENTRANT
+#ifdef  __STDC__
+extern int  *__h_errno(void);
 #else
-    extern int *__h_errno();
-#endif /* __STDC__ */
-
-    /* Only #define h_errno if there is no conflict with other use */
-#ifdef H_ERRNO_IS_FUNCTION
-#define        h_errno (*__h_errno())
-#endif /* NO_H_ERRNO_DEFINE */
-#endif /* _REENTRANT */
-
-    /*
    * Error return codes from gethostbyname() and gethostbyaddr()
    * (left in extern int h_errno).
    */
-#define        HOST_NOT_FOUND  1 /* Authoritive Answer Host not found */
-#define        TRY_AGAIN       2 /* Non-Authoritive Host not found, or SERVERFAIL */
-#define        NO_RECOVERY     3 /* Non recoverable errors, FORMERR, REFUSED, NOTIMP */
-#define        NO_DATA         4 /* Valid name, no data record of requested type */
+extern int  *__h_errno();
+#endif  /* __STDC__ */
+
+/* Only #define h_errno if there is no conflict with other use */
+#ifdef  H_ERRNO_IS_FUNCTION
+#define h_errno (*__h_errno())
+#endif  /* NO_H_ERRNO_DEFINE */
+#endif  /* _REENTRANT */
+
+/*
+ * Error return codes from gethostbyname() and gethostbyaddr()
+ * (left in extern int h_errno).
+ */
+#define HOST_NOT_FOUND  1 /* Authoritive Answer Host not found */
+#define TRY_AGAIN   2 /* Non-Authoritive Host not found, or SERVERFAIL */
+#define NO_RECOVERY 3 /* Non recoverable errors, FORMERR, REFUSED, NOTIMP */
+#define NO_DATA     4 /* Valid name, no data record of requested type */
 
 #if !defined(_XPG4_2) || defined(__EXTENSIONS__)
-#define        NO_ADDRESS      NO_DATA         /* no address, look for MX record */
+#define NO_ADDRESS  NO_DATA     /* no address, look for MX record */
 
-    /* BIND */
-#define        NETDB_INTERNAL  -1      /* see errno */
-#define        NETDB_SUCCESS   0       /* no problem */
-    /* End BIND */
+/* BIND */
+#define NETDB_INTERNAL  -1  /* see errno */
+#define NETDB_SUCCESS   0   /* no problem */
+/* End BIND */
 
-#define        MAXHOSTNAMELEN  256
+#define MAXHOSTNAMELEN  256
 
-#define        MAXALIASES      35
-#define        MAXADDRS        35
+#define MAXALIASES  35
+#define MAXADDRS    35
 #endif /* !defined(_XPG4_2) || defined(__EXTENSIONS__) */
 
-#ifdef __cplusplus
+#ifdef  __cplusplus
 }
 #endif
 
-#endif /* _NETDB_H */
+#endif  /* _NETDB_H */
+
index 83f9b359975031d533cc397b92d8b35110417784..c35c7d1fc0d17211cc724084a307ae928e99bb81 100644 (file)
@@ -25,3 +25,4 @@
 
 #endif /* _SQUID_OS2_ */
 #endif /* SQUID_OS_OS2_H */
+
index ee77fb24b848cd01d02d1a3b7d7d86ef1e91414a..f8706022d68b890bcb06b46d2365c6a2ca68a2cd 100644 (file)
@@ -24,3 +24,4 @@
 
 #endif /* _SQUID_QNX_ */
 #endif /* SQUID_OS_QNX_H */
+
index cc6ab1d0abfc7321a4c003698a6dfcad1e2b6bf9..a58e1ca4d5cad297bb8e1f6245b42265d8eedb13 100644 (file)
@@ -18,7 +18,7 @@
  ****************************************************************************/
 
 #if !defined(_SVR4_SOURCE)
-#define _SVR4_SOURCE           /* for tempnam(3) */
+#define _SVR4_SOURCE        /* for tempnam(3) */
 #endif
 
 #if USE_ASYNC_IO
@@ -36,3 +36,4 @@
 
 #endif /* _SQUID_SGI_ */
 #endif /* SQUID_OS_SGI_H */
+
index 25ed114153f5a9e9100310cdbab9905235fea2e7..ce19adf72ec5e93d35c48440fb5d9f29e0b0e9a4 100644 (file)
 #if defined(i386) || defined(__i386)
 #if !HAVE_PAD128_T
 typedef union {
-    long double        _q;
-    int32_t            _l[4];
+    long double _q;
+    int32_t     _l[4];
 } pad128_t;
 #endif
 #if !HAVE_UPAD128_T
 typedef union {
-    long double        _q;
-    uint32_t   _l[4];
+    long double _q;
+    uint32_t    _l[4];
 } upad128_t;
 #endif
 #endif
@@ -105,3 +105,4 @@ SQUIDCEXTERN int gethostname(char *, int);
 
 #endif /* _SQUID_SOLARIS_ */
 #endif /* SQUID_OS_SOALRIS_H */
+
index b5bd2a035b85ce87bd55c858dba814ffec25bc36..c5bed8678ac90b565bac0f8535d04d22c26a3f06 100644 (file)
@@ -29,3 +29,4 @@
 
 #endif /* _SQUID_SUNOS_ */
 #endif /* SQUID_OS_SUNOS_H */
+
index 25b114f6aa26da4e328836b42946686707c0b1f4..2eae264cdf6beb2bc6dd4bb2bcd182020608645f 100644 (file)
 #define _SQUID_SUNOS_ 1
 #endif /* __SVR4 */
 
-#elif defined(__hpux)          /* HP-UX - SysV-like? */
+#elif defined(__hpux)       /* HP-UX - SysV-like? */
 #define _SQUID_HPUX_ 1
 
-#elif defined(__osf__)         /* OSF/1 */
+#elif defined(__osf__)      /* OSF/1 */
 #define _SQUID_OSF_ 1
 
-#elif defined(_AIX)            /* AIX */
+#elif defined(_AIX)     /* AIX */
 #define _SQUID_AIX_ 1
 
-#elif defined(__linux__)       /* Linux. WARNING: solaris-x86 also sets this */
+#elif defined(__linux__)    /* Linux. WARNING: solaris-x86 also sets this */
 #define _SQUID_LINUX_ 1
 
-#elif defined(__FreeBSD__)     /* FreeBSD */
+#elif defined(__FreeBSD__)  /* FreeBSD */
 #define _SQUID_FREEBSD_ 1
 
 #elif defined(__FreeBSD_kernel__)      /* GNU/kFreeBSD */
 #define _SQUID_KFREEBSD_ 1
 
-#elif defined(__sgi__) || defined(sgi) || defined(__sgi)       /* SGI */
+#elif defined(__sgi__)  || defined(sgi) || defined(__sgi)   /* SGI */
 #define _SQUID_SGI_ 1
 
 #elif defined(__NeXT__)
@@ -90,3 +90,4 @@
 #endif /* OS automatic detection */
 
 #endif /* SQUID_COMPAT_OSDETECT_H */
+
index bcb6321ad15f8e8bc2c3b1e8b659bc9a1b192e51..4d77c5264ad29212ca1d2f1d2da0ec404bc656c4 100644 (file)
@@ -27,3 +27,4 @@ psignal( int sig, const char* msg )
     else
         fputs( "(unknown)\n", stderr );
 }
+
index 4b55d3dd54deb61b8b49810001848a3d0f443201..34fde97cc0c9e3b38e24146a040b5b6ea13e95d4 100644 (file)
@@ -16,3 +16,4 @@
 extern void psignal(int sig, const char* msg);
 
 #endif /* __SQUID_PSIGNAL_H */
+
index 3029e06bb1574031669e96bb0924670c45a19e61..4a2de0e9ce24a7222d0d9a93f6cac2f374c04bf6 100644 (file)
@@ -33,3 +33,4 @@ shm_portable_segment_name_is_path()
     return false;
 #endif
 }
+
index a3b249acd15b886edd8856b3d59a6647fd2c3f9f..f3db8ff9a574d039774e2f662f0f0a46525cf4f8 100644 (file)
@@ -51,3 +51,4 @@ extern "C" {
 bool shm_portable_segment_name_is_path();
 
 #endif /* SQUID_COMPAT_CPU_H */
+
index d95f3934845036bbe6536eb0d3c880b9c2ace404..6089433aec53582b0f9323dcaf325f0a06ffa737 100644 (file)
@@ -82,3 +82,4 @@ xstatvfs(const char *path, struct statvfs *sfs)
 }
 
 #endif /* HAVE_STATVFS */
+
index 66d0a8f225b3f8c41a8656008907abbed5e1afaf..3b3d51ef27bbd76ddcfe1bfbfbd780a654c703bf 100644 (file)
@@ -32,7 +32,6 @@
 #endif
 #endif /* !HAVE_STATVFS */
 
-
 #if HAVE_STATVFS
 #define xstatvfs statvfs
 
@@ -63,3 +62,4 @@ int xstatvfs(const char *path, struct statvfs *buf);
 #endif
 
 #endif /* _SQUID_COMPAT_XSTATVFS_H */
+
index e0d2d482583a48b649db11f26d193597d5425b93..b1807518527eeae86f0ddaf0ac4be565d68e6f86 100644 (file)
@@ -63,3 +63,4 @@ inline FILE * tmpfile(void) { return tmpfile64(); }
 #endif
 
 #endif /* _SQUID_COMPAT_STDIO_H */
+
index 3d8b7181017633c408e59fe8a7195e2db43312e4..337edc88fb3747a13b80dd8738ce77fcfb203ed2 100644 (file)
@@ -47,3 +47,4 @@
 #endif
 
 #endif /* _SQUID_STDVARARGS_H */
+
index ef0d39186f2ae7f4b1db5251b084f557f090a384..1aca01a4ad44fbf028c9aca052f4f5925b1e4829 100644 (file)
@@ -23,3 +23,4 @@ strerror(int ern)
 {
     return sys_errlist[ern];
 }
+
index 6a46af4a95f8be85b6694826102172f1ede254ad..def4d7a6bf91900de17b11abe20ae00a6d103594 100644 (file)
@@ -22,3 +22,4 @@ strnrchr(const char *s, size_t count, int c)
     }
     return rv;
 }
+
index 466d7411789449c769f48b18d7ee257d11779c4a..d7af85c66b71a8ed2cb548441c03129dd6e0c6c9 100644 (file)
@@ -22,3 +22,4 @@
 SQUIDCEXTERN const char *strnrchr(const char *s, size_t count, int c);
 
 #endif /* COMPAT_STRNRCHR_H_ */
+
index 700f5a3151e0b8ad5e49bab961e9986bafad6955..2fbab7ef866d66e79e6a45e11970b9d9f18c7b4e 100644 (file)
@@ -16,9 +16,9 @@
  * Update/Maintenance History:
  *
  *    26-Apr-2008 : Copied from FreeBSD via OpenGrok
- *                     - added protection around libray headers
- *                     - added squid_ prefix for uniqueness
- *                       so we can use it where OS copy is broken.
+ *          - added protection around libray headers
+ *          - added squid_ prefix for uniqueness
+ *            so we can use it where OS copy is broken.
  *
  *  Original License and code follows.
  */
@@ -30,7 +30,7 @@
 /*-
  * Copyright (c) 2001 Mike Barcroft <mike@FreeBSD.org>
  * Copyright (c) 1990, 1993
- *     The Regents of the University of California.  All rights reserved.
+ *  The Regents of the University of California.  All rights reserved.
  *
  * This code is derived from software contributed to Berkeley by
  * Chris Torek.
@@ -59,7 +59,7 @@
  * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
  * SUCH DAMAGE.
  *
- * @(#)strstr.c        8.1 (Berkeley) 6/4/93
+ * @(#)strstr.c 8.1 (Berkeley) 6/4/93
  * $FreeBSD: src/lib/libc/string/strnstr.c,v 1.2.2.1 2001/12/09 06:50:03 mike Exp $
  * $DragonFly: src/lib/libc/string/strnstr.c,v 1.4 2006/03/20 17:24:20 dillon Exp $
  */
@@ -98,3 +98,4 @@ squid_strnstr(const char *s, const char *find, size_t slen)
 
 #endif /* !HAVE_STRNSTR */
 #endif /* SQUID_COMPAT_STRNSTR_CC_ */
+
index 07493a989435193095abc3c513ab98115015574c..701c5931ce41d38dbd600bd5d36fe2171b56f038 100644 (file)
@@ -20,8 +20,8 @@
  *    documentation and/or other materials provided with the distribution.
  * 3. All advertising materials mentioning features or use of this software
  *    must display the following acknowledgement:
- *     This product includes software developed by the University of
- *     California, Berkeley and its contributors.
+ *  This product includes software developed by the University of
+ *  California, Berkeley and its contributors.
  * 4. Neither the name of the University nor the names of its contributors
  *    may be used to endorse or promote products derived from this software
  *    without specific prior written permission.
index fce15a8d23bfa103858627ee30309fbc639674cb..af57d4d72293e12d1cb676a9350bd1a79d9e339f 100644 (file)
@@ -23,3 +23,4 @@ SQUIDCEXTERN int64_t strtoll(const char *nptr, char **endptr, int base);
 
 #endif /* !HAVE_STRTOLL */
 #endif /* _SQUID_COMPAT_STRTOLL_H */
+
index 8077781b1f0872589db376fd2ba69f0acbd2f7a8..e4f39a19a57cf9829926dcb0acfce534018dd3db 100644 (file)
 
 #undef TMP_MAX
 
-#define _tmp           "/tmp/"
-#define lengthof_tmp   5
+#define _tmp        "/tmp/"
+#define lengthof_tmp    5
 
 #ifndef LONG_BIT
-#define LONG_BIT       (CHAR_BIT * 4)  /* assume sizeof(long) == 4 */
+#define LONG_BIT    (CHAR_BIT * 4)  /* assume sizeof(long) == 4 */
 #endif
 
-#define L_tmpmin       (lengthof_tmp + 5)      /* 5 chars for pid. */
+#define L_tmpmin    (lengthof_tmp + 5)  /* 5 chars for pid. */
 
 #if (L_tmpnam > L_tmpmin)
-#if (L_tmpnam > L_tmpmin + LONG_BIT / 6)       /* base 64 */
-#define TMP_MAX        ULONG_MAX
+#if (L_tmpnam > L_tmpmin + LONG_BIT / 6)    /* base 64 */
+#define TMP_MAX ULONG_MAX
 #else
-#define TMP_MAX        ((1L << (6 * (L_tmpnam - L_tmpmin))) - 1)
+#define TMP_MAX ((1L << (6 * (L_tmpnam - L_tmpmin))) - 1)
 #endif
 #else
 #ifndef L_tmpnam
@@ -60,10 +60,10 @@ _tmpnam(void)
     static const char digits[] =
 #if (L_tmpnam >= L_tmpmin + LONG_BIT / 4)
         "0123456789abcdef";
-#define TMP_BASE       16
+#define TMP_BASE    16
 #else
         "0123456789abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ_-";
-#define TMP_BASE       64
+#define TMP_BASE    64
 #endif
     static unsigned long lastcount = 0;
     static char buffer[L_tmpnam + 1];
@@ -72,7 +72,7 @@ _tmpnam(void)
     pid_t pid = getpid();
 
     if (sizeof(_tmp) - 1 != lengthof_tmp)
-        abort();               /* Consistency error. */
+        abort();        /* Consistency error. */
 
     for (;;) {
         register int i = L_tmpnam;
@@ -135,3 +135,4 @@ main()
     return 1;
 }
 #endif
+
index dfcdf7fdd831f9d4cd6df9f7b0bc7fe74815dbc3..fbb4d03f9f372eea43b522e584c4bbdebf20353a 100644 (file)
@@ -31,3 +31,4 @@
 extern char *tempnam(const char *, const char *);
 
 #endif /* SQUID_TEMPNAM_H */
+
index 7898e25796a4810a2de435fa74e57207a5a9b21c..c623b6ac484b2fa375115e673d6200203781aee9 100644 (file)
@@ -30,3 +30,4 @@ protected:
 };
 
 #endif /* SQUID_COMPAT_TESTS_TESTPRECOMPILER_H */
+
index 125860122c3b32c9cb35416221fcbcae925c5779..be85b0aa822be190e49faf5cfaa2942a89e49d1e 100644 (file)
@@ -124,3 +124,4 @@ typedef long mtyp_t;
 #endif
 
 #endif /* SQUID_TYPES_H */
+
index b6f6ad658394ca227b469ac50cc19750e8757e0c..1adde2720448dfeb4a8ff1a32a598c80924356e8 100644 (file)
@@ -43,3 +43,4 @@
 #endif /* WITH_VALGRIND */
 
 #endif /* SQUID_CONFIG_H */
+
index 3c3bc559dd7031066249b18c3780857f4cafb041..a9215d64ac4031f7087f2e960e7700bd3bc26650 100644 (file)
@@ -176,3 +176,4 @@ free_const(const void *s_const)
     PROF_stop(free);
     PROF_stop(free_const);
 }
+
index 2e7f3f924cc11794f1695bca842ee738f8b0c531..9cea431d5433784faac4ed87b2046f705c26ff32 100644 (file)
 extern "C" {
 #endif
 
-    /**
    * xcalloc() - same as calloc(3).  Used for portability.
    * Never returns NULL; fatal on error.
    *
    * Define failure_notify to receive error message.
    * otherwise perror() is used to display it.
    */
-    void *xcalloc(size_t n, size_t sz);
+/**
+ * xcalloc() - same as calloc(3).  Used for portability.
+ * Never returns NULL; fatal on error.
+ *
+ * Define failure_notify to receive error message.
+ * otherwise perror() is used to display it.
+ */
+void *xcalloc(size_t n, size_t sz);
 
-    /**
    * xmalloc() - same as malloc(3).  Used for portability.
    * Never returns NULL; fatal on error.
    *
    * Define failure_notify to receive error message.
    * otherwise perror() is used to display it.
    */
-    void *xmalloc(size_t sz);
+/**
+ * xmalloc() - same as malloc(3).  Used for portability.
+ * Never returns NULL; fatal on error.
+ *
+ * Define failure_notify to receive error message.
+ * otherwise perror() is used to display it.
+ */
+void *xmalloc(size_t sz);
 
-    /**
    * xrealloc() - same as realloc(3). Used for portability.
    * Never returns NULL; fatal on error.
    */
-    void *xrealloc(void *s, size_t sz);
+/**
+ * xrealloc() - same as realloc(3). Used for portability.
+ * Never returns NULL; fatal on error.
+ */
+void *xrealloc(void *s, size_t sz);
 
-    /**
    * free_const() - Same as free(3).  Used for portability.
    * Accepts pointers to dynamically allocated const data.
    *
    * Define failure_notify to receive error message.
    * otherwise perror() is used to display it.
    */
-    void free_const(const void *s);
+/**
+ * free_const() - Same as free(3).  Used for portability.
+ * Accepts pointers to dynamically allocated const data.
+ *
+ * Define failure_notify to receive error message.
+ * otherwise perror() is used to display it.
+ */
+void free_const(const void *s);
 
-    /**
    *  xfree() - same as free(3).  Used for portability.
    * Accepts pointers to dynamically allocated const data.
    * Will not call free(3) if the pointer is NULL.
    *
    * Pointer is left with a value on completion.
    * Use safe_free() if the pointer needs to be set to NULL afterward.
    *
    * Define failure_notify to receive error message.
    * otherwise perror() is used to display it.
    */
-    static inline void xfree(const void *p) { if (p) free_const(p); }
+/**
+ *  xfree() - same as free(3).  Used for portability.
+ * Accepts pointers to dynamically allocated const data.
+ * Will not call free(3) if the pointer is NULL.
+ *
+ * Pointer is left with a value on completion.
+ * Use safe_free() if the pointer needs to be set to NULL afterward.
+ *
+ * Define failure_notify to receive error message.
+ * otherwise perror() is used to display it.
+ */
+static inline void xfree(const void *p) { if (p) free_const(p); }
 
-    /**
    *  safe_free() - same as free(3).  Used for portability.
    * Accepts pointers to dynamically allocated const data.
    * Will not call free(3) if the pointer is NULL.
    * Sets the pointer to NULL on completion.
    *
    * Use xfree() if the pointer does not need to be set afterward.
    *
    * Define failure_notify to receive error message.
    * otherwise perror() is used to display it.
    */
+/**
+ *  safe_free() - same as free(3).  Used for portability.
+ * Accepts pointers to dynamically allocated const data.
+ * Will not call free(3) if the pointer is NULL.
+ * Sets the pointer to NULL on completion.
+ *
+ * Use xfree() if the pointer does not need to be set afterward.
+ *
+ * Define failure_notify to receive error message.
+ * otherwise perror() is used to display it.
+ */
 #define safe_free(x)    while ((x)) { free_const((x)); (x) = NULL; }
 
 #ifdef __cplusplus
@@ -81,3 +81,4 @@ extern void malloc_statistics(void (*func) (int, int, int, void *), void *data);
 #endif
 
 #endif /* _SQUID_COMPAT_XALLOC_H */
+
index 0f4b08d95ca522f67effd5d1a8398617ce799006..500fdb3b1e94e4b2f46860311dcf2566a49a7161 100644 (file)
@@ -28,3 +28,4 @@
 #define xisgraph(x) isgraph((unsigned char)x)
 
 #endif /* _SQUID_COMPAT_XIS_H */
+
index 74cebb3f569570dc3a45f59f55e36ab3d6b2d70c..b0e61f3a792721c9888bf42e02fb659be3a3e269 100644 (file)
@@ -107,3 +107,4 @@ xstrerr(int error)
 
     return xstrerror_buf;
 }
+
index e488034947e3af2337f7659a729846b814717cf3..0b69e9f1b1788567bad3502afac9becf006843a3 100644 (file)
@@ -27,3 +27,4 @@
 extern const char * xstrerr(int error);
 
 #endif /* _SQUID_COMPAT_XSTRERROR_H */
+
index 7958456db60da2913c2902d79cb72bc23b436921..49077644a4c01f65c2565ac4c0d97566314b17ca 100644 (file)
@@ -79,3 +79,4 @@ xstrndup(const char *s, size_t n)
     p = xstrncpy((char *)xmalloc(sz), s, sz);
     return p;
 }
+
index a7625bd991d3c820c2aae502b2176fd5b365cd7f..8d3124d7985abf169cfd377318328b5265ce25e1 100644 (file)
 extern "C" {
 #endif
 
-    /**
    * xstrdup() - same as strdup(3).  Used for portability.
    * Never returns NULL; fatal on error.
    *
    * Sets errno to EINVAL if a NULL pointer is passed.
    *
    * Define failure_notify to receive error message.
    * otherwise perror() is used to display it.
    */
-    char *xstrdup(const char *s);
+/**
+ * xstrdup() - same as strdup(3).  Used for portability.
+ * Never returns NULL; fatal on error.
+ *
+ * Sets errno to EINVAL if a NULL pointer is passed.
+ *
+ * Define failure_notify to receive error message.
+ * otherwise perror() is used to display it.
+ */
+char *xstrdup(const char *s);
 
 #ifdef strdup
 #undef strdup
 #endif
 #define strdup(X) xstrdup((X))
 
-    /*
    *  xstrncpy() - similar to strncpy(3) but terminates string
    *  always with '\0' if (n != 0 and dst != NULL),
    *  and doesn't do padding
    */
-    char *xstrncpy(char *dst, const char *src, size_t n);
+/*
+ *  xstrncpy() - similar to strncpy(3) but terminates string
+ *  always with '\0' if (n != 0 and dst != NULL),
+ *  and doesn't do padding
+ */
+char *xstrncpy(char *dst, const char *src, size_t n);
 
-    /**
    * xstrndup() - same as strndup(3).  Used for portability.
    * Never returns NULL; fatal on error.
    *
    * Sets errno to EINVAL if a NULL pointer or negative
    * length is passed.
    *
    * Define failure_notify to receive error message.
    * otherwise perror() is used to display it.
    */
-    char *xstrndup(const char *s, size_t n);
+/**
+ * xstrndup() - same as strndup(3).  Used for portability.
+ * Never returns NULL; fatal on error.
+ *
+ * Sets errno to EINVAL if a NULL pointer or negative
+ * length is passed.
+ *
+ * Define failure_notify to receive error message.
+ * otherwise perror() is used to display it.
+ */
+char *xstrndup(const char *s, size_t n);
 
 #ifdef strndup
 #undef strndup
@@ -62,3 +62,4 @@ extern "C" {
 #endif
 
 #endif /* SQUID_COMPAT_XSTRING_H */
+
index c4b59c0a7f9b51426b8a422b130fe3a2208b94f6..7e5bbd8f32c7e74d5f29ae5ac28ecad83a66babe 100644 (file)
@@ -28,8 +28,8 @@
  * Update/Maintenance History:
  *
  *    12-Sep-2010 : Copied from iptables xtables.c
- *                     - xtables_strtoui renamed to xstrtoui
- *                     - xtables_strtoul renamed to xstrtoul
+ *          - xtables_strtoui renamed to xstrtoui
+ *          - xtables_strtoul renamed to xstrtoul
  *
  *  Original License and code follows.
  */
@@ -100,3 +100,4 @@ xstrtoui(const char *s, char **end, unsigned int *value,
 }
 
 #endif /* SQUID_XSTRTO_C_ */
+
index 597546f0b295978ca3b4ec558c9ce82587b7378a..9cd52e3501753b286dd33f6807150c021166e691 100644 (file)
@@ -40,3 +40,4 @@ bool xstrtoui(const char *s, char **end, unsigned int *value,
 
 #endif /* __cplusplus */
 #endif /* _SQUID_XSTRTO_H */
+
index ad38f214528c5ad1b885ab3e4eb1e3f82c901b0a..42310442fafbf3e9d0dca6ffed14258dfdeb59e1 100644 (file)
@@ -6,6 +6,7 @@
  * Please see the COPYING and CONTRIBUTORS files for details.
  */
 
+
 section 00    Announcement Server
 section 00    Client Database
 section 00    Debug Routines
index cd0fe59f2b1f109c1592bd9f2960c8a3337f5f6d..6587e6d508b94e0958c5519143f798bfa0fb6934 100644 (file)
@@ -388,7 +388,7 @@ main(int argc, char **argv)
             fprintf(stderr, "ERROR: Your LDAP library does not have URI support\n");
             exit(1);
 #endif
-            /* Fall thru to -h */
+        /* Fall thru to -h */
         case 'h':
             if (ldapServer) {
                 int len = strlen(ldapServer) + 1 + strlen(value) + 1;
@@ -796,3 +796,4 @@ readSecret(const char *filename)
 
     return 0;
 }
+
index d5963ec8de08fd742379716d775374aa264aee06..2c78d800b2fc601d1d3c068d878657676e13f5f6 100644 (file)
@@ -30,7 +30,7 @@ static usersfile AllowUsers;
 static int init = 0;
 
 /* shared */
-char Allowuserpath[MAXPATHLEN];        /* MAXPATHLEN defined in param.h */
+char Allowuserpath[MAXPATHLEN]; /* MAXPATHLEN defined in param.h */
 
 int
 Read_allowusers(void)
@@ -56,3 +56,4 @@ Check_forallowchange(void)
 {
     Check_forfilechange(&AllowUsers);
 }
+
index 5bbff43e4f00eab04efbee99a4767e19bf86ace2..3096e97aff9936270f97665b10a14b36eb953168 100644 (file)
@@ -41,7 +41,7 @@
 #define MAXSERVERS 5
 #define NTHOSTLEN 65
 
-extern char Denyuserpath[MAXPATHLEN];  /* MAXPATHLEN defined in param.h */
+extern char Denyuserpath[MAXPATHLEN];   /* MAXPATHLEN defined in param.h */
 extern char Allowuserpath[MAXPATHLEN];
 
 typedef struct _ServerTuple {
@@ -50,8 +50,8 @@ typedef struct _ServerTuple {
     char domain[NTHOSTLEN];
 } ServerTuple;
 
-ServerTuple ServerArray[MAXSERVERS];   /* Array of servers to query */
-int Serversqueried = 0;                /* Number of servers queried */
+ServerTuple ServerArray[MAXSERVERS];    /* Array of servers to query */
+int Serversqueried = 0;     /* Number of servers queried */
 
 /* Declarations */
 
@@ -68,7 +68,7 @@ int
 OpenConfigFile(void)
 {
     FILE *ConfigFile;
-    char Confbuf[2049];                /* Line reading buffer */
+    char Confbuf[2049];     /* Line reading buffer */
 
     /* Initialise defaults */
 
@@ -244,7 +244,7 @@ QueryServerForUser(int x, char *username, char *password)
     result = Valid_User(username, password, ServerArray[x].pdc,
                         ServerArray[x].bdc, ServerArray[x].domain);
 
-    switch (result) {          /* Write any helpful syslog messages */
+    switch (result) {       /* Write any helpful syslog messages */
     case 0:
         break;
     case 1:
@@ -271,3 +271,4 @@ QueryServerForUser(int x, char *username, char *password)
  * 2 - Protocol error.
  * 3 - Logon error; Incorrect password or username given.
  */
+
index 3d33b368e234f74a138b5fb560bf2fbe7887e9fd..67da05ab2821e9e72372c7a4bc8489730d9bff2f 100644 (file)
@@ -31,7 +31,7 @@ static usersfile DenyUsers;
 static int init = 0;
 
 /* shared */
-char Denyuserpath[MAXPATHLEN]; /* MAXPATHLEN defined in param.h */
+char Denyuserpath[MAXPATHLEN];  /* MAXPATHLEN defined in param.h */
 
 int
 Read_denyusers(void)
@@ -111,8 +111,8 @@ Check_forchange(int signal)
 void
 Checktimer()
 {
-    static time_t Lasttime;    /* The last time the timer was checked */
-    static time_t Currenttime; /* The current time */
+    static time_t Lasttime; /* The last time the timer was checked */
+    static time_t Currenttime;  /* The current time */
 
     Currenttime = time(NULL);
 
@@ -124,3 +124,4 @@ Checktimer()
         Lasttime = Currenttime;
     }
 }
+
index 9390fd340c6b627077a700afc4eaba9ed26a42cf..dd77ad3879021bb824679644c5c759554fbcf29a 100644 (file)
@@ -128,7 +128,7 @@ main(int argc, char **argv)
             puts("ERR");
             continue;
         }
-        Checktimer();          /* Check if the user lists have changed */
+        Checktimer();       /* Check if the user lists have changed */
 
         rfc1738_unescape(username);
         rfc1738_unescape(password);
@@ -151,3 +151,4 @@ main(int argc, char **argv)
 
     return 0;
 }
+
index b18f24428c30414e1e64bbdaf4d2e3d5a16367fd..1ba18b5f95be6d99cd12d4e03c740ee760be7c38 100644 (file)
@@ -21,3 +21,4 @@ extern int Check_ifuserallowed(char *ConnectingUser);
 extern void Check_forallowchange(void);
 
 #endif /* _SQUID_HELPERS_BASIC_AUTH_MSNT_MSNTAUTH_H */
+
index 8b3af5b089dc9f9c04004328744e25c52aa2cf3a..63001e864b98a04170ee31027393230f4c8fbf34 100644 (file)
@@ -31,7 +31,7 @@
 
 #include "usersfile.h"
 
-#define NAMELEN     50         /* Maximum username length */
+#define NAMELEN     50      /* Maximum username length */
 
 static int
 name_cmp(const void *a, const void *b)
@@ -177,7 +177,7 @@ Check_userlist(usersfile * uf, char *User)
 void
 Check_forfilechange(usersfile * uf)
 {
-    struct stat ChkBuf;                /* Stat data buffer */
+    struct stat ChkBuf;     /* Stat data buffer */
 
     /* Stat the allowed users file. If it cannot be accessed, return. */
 
@@ -188,7 +188,7 @@ Check_forfilechange(usersfile * uf)
         if (errno == ENOENT) {
             uf->LMT = 0;
             free_names(uf);
-        } else {               /* Report error when accessing file */
+        } else {        /* Report error when accessing file */
             syslog(LOG_ERR, "%s: %s", uf->path, strerror(errno));
         }
         return;
@@ -203,3 +203,4 @@ Check_forfilechange(usersfile * uf)
     syslog(LOG_INFO, "Check_forfilechange: Reloading user list '%s'.", uf->path);
     Read_usersfile(NULL, uf);
 }
+
index 300217e619c004280d51f95d9d8c91b2660fa009..816dc3a09e7595400c640b85845cf8f2be037e22 100644 (file)
@@ -17,3 +17,4 @@ typedef struct {
 int Read_usersfile(const char *path, usersfile * uf);
 int Check_userlist(usersfile * uf, char *User);
 void Check_forfilechange(usersfile * uf);
+
index e5b124a9f773f32c5fd80fd2120b2a84f1f6bc10..31704493ea5bb6d331fbb6d458fc657bf1452bec 100644 (file)
@@ -36,13 +36,13 @@ Valid_User(char *USERNAME, char *PASSWORD, char *SERVER, char *BACKUP, char *DOM
 
     SMB_Init();
     con = SMB_Connect_Server(NULL, SERVER, DOMAIN);
-    if (con == NULL) {         /* Error ... */
+    if (con == NULL) {      /* Error ... */
         con = SMB_Connect_Server(NULL, BACKUP, DOMAIN);
         if (con == NULL) {
             return (NTV_SERVER_ERROR);
         }
     }
-    if (SMB_Negotiate(con, supportedDialects) < 0) {   /* An error */
+    if (SMB_Negotiate(con, supportedDialects) < 0) {    /* An error */
         SMB_Discon(con, 0);
         return (NTV_PROTOCOL_ERROR);
     }
@@ -53,3 +53,4 @@ Valid_User(char *USERNAME, char *PASSWORD, char *SERVER, char *BACKUP, char *DOM
     SMB_Discon(con, 0);
     return (NTV_NO_ERROR);
 }
+
index 07539277d91b349dfcb5b6b759d4a95e77fe0948..73dca1c67603108349b08326b20284ae0132497b 100644 (file)
@@ -18,3 +18,4 @@
 int Valid_User(char *USERNAME, char *PASSWORD, char *SERVER, char *BACKUP, char *DOMAIN);
 
 #endif
+
index 216b6213a624e703fc6b2c844c427b58ed7ef6af..4895a4f0a49cb0e796e499ae0b3bd34ef63cb029 100644 (file)
@@ -127,7 +127,7 @@ main(int argc, char **argv)
     }
     while (fgets(buf, HELPER_INPUT_BUFFER, stdin) != NULL) {
         if ((p = strchr(buf, '\n')) != NULL)
-            *p = '\0';         /* strip \n */
+            *p = '\0';      /* strip \n */
         if (stat(argv[1], &sb) == 0) {
             if (sb.st_mtime != change_time) {
                 read_passwd_file(argv[1]);
@@ -187,3 +187,4 @@ main(int argc, char **argv)
     }
     exit(0);
 }
+
index 8cfad8ccfd1d746659e4a29ee532ba07432dd5d4..6c0ad146b105be488c9950bcb532288194fe12b3 100644 (file)
@@ -29,7 +29,7 @@
 
 #include <cstring>
 
-static unsigned char itoa64[] =        /* 0 ... 63 => ascii - 64 */
+static unsigned char itoa64[] = /* 0 ... 63 => ascii - 64 */
     "./0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz";
 
 static void md5to64(char *s, unsigned long v, int n)
index 0e1dfe9d003788d9a8dc41a6eb12a4b4f335e643..2fa9ab4eb1bd753429495388354cf7591dae6b4e 100644 (file)
@@ -29,3 +29,4 @@ char *crypt_md5(const char *pw, const char *salt);
 char *md5sum(const char *s);
 
 #endif /* _CRYPT_MD5_H */
+
index 7527722a1307a706131b24a298e61c5e903477ae..367ae9a6894aafe487ea1fdd280be1c4c6738129 100644 (file)
@@ -54,7 +54,7 @@ main(int argc, char **argv)
 
     while (fgets(buf, 256, stdin) != NULL) {
         if ((p = strchr(buf, '\n')) != NULL)
-            *p = '\0';         /* strip \n */
+            *p = '\0';      /* strip \n */
 
         if ((user = strtok(buf, " ")) == NULL) {
             printf("ERR\n");
@@ -90,3 +90,4 @@ main(int argc, char **argv)
     }
     exit(0);
 }
+
index 0c3c73734b524755d356d8eb6677d069315800d6..0e57ee5235e4d8fc49c656d5ad41048aca4b308f 100644 (file)
@@ -37,7 +37,7 @@
 
 #include "nis_support.h"
 
-#define NO_YPERR 0             /* There is no error */
+#define NO_YPERR 0      /* There is no error */
 
 char *
 get_nis_password(char *user, char *nisdomain, char *nismap)
@@ -69,9 +69,10 @@ get_nis_password(char *user, char *nisdomain, char *nismap)
     case YPERR_YPBIND:
         syslog(LOG_ERR, "Squid Authentication through ypbind failure: can't communicate with ypbind");
         return NULL;
-    case YPERR_KEY:            /* No such key in map */
+    case YPERR_KEY:     /* No such key in map */
         return NULL;
     default:
         return NULL;
     }
 }
+
index 9679887717234249c06bfbc644980fa09ffb3582..b12047fcb4dd4e819d24b569f402b46b31e033eb 100644 (file)
@@ -1,9 +1,10 @@
-/*\r
- * Copyright (C) 1996-2014 The Squid Software Foundation and contributors\r
- *\r
- * Squid software is distributed under GPLv2+ license and includes\r
- * contributions from numerous individuals and organizations.\r
- * Please see the COPYING and CONTRIBUTORS files for details.\r
- */\r
-\r
-extern char * get_nis_password(char *user, char *nisdomain, char *nismap);\r
+/*
+ * Copyright (C) 1996-2014 The Squid Software Foundation and contributors
+ *
+ * Squid software is distributed under GPLv2+ license and includes
+ * contributions from numerous individuals and organizations.
+ * Please see the COPYING and CONTRIBUTORS files for details.
+ */
+
+extern char * get_nis_password(char *user, char *nisdomain, char *nismap);
+
index 6cda25a2026b2e2b4a81c9dd04fd9cc621bd8d45..e47af7459876fb8e011c33005e658771c6e307e3 100644 (file)
  *
  *   Version 2.0, 2002-01-07
  *      One shot mode, command line options
- *     man page
+ *  man page
  *
  *   Version 1.3, 1999-12-10
- *     Bugfix release 1.3 to work around Solaris 2.6
+ *      Bugfix release 1.3 to work around Solaris 2.6
  *      brokenness (not sending arguments to conversation
  *      functions)
  *
  *   Version 1.2, internal release
  *
  *   Version 1.1, 1999-05-11
- *     Initial version
+ *  Initial version
  */
 #include "squid.h"
 #include "helpers/defines.h"
@@ -97,7 +97,7 @@
 #endif
 
 #if _SQUID_SOLARIS_
-static char *password = NULL;  /* Workaround for Solaris 2.6 brokenness */
+static char *password = NULL;   /* Workaround for Solaris 2.6 brokenness */
 #endif
 
 extern "C" int password_conversation(int num_msg, PAM_CONV_FUNC_CONST_PARM struct pam_message **msg,
@@ -224,7 +224,7 @@ start:
         ++password_buf;
         rfc1738_unescape(user);
         rfc1738_unescape(password_buf);
-        conv.appdata_ptr = (char *) password_buf;      /* from buf above. not allocated */
+        conv.appdata_ptr = (char *) password_buf;   /* from buf above. not allocated */
 
         if (no_realm) {
             /* Remove DOMAIN\.. and ...@domain from the user name in case the user
@@ -310,3 +310,4 @@ error:
     }
     return 0;
 }
+
index b7bd2bc910364f8c55baced57db2a64a407eac35..a7b82b4ac3e7ef08d4833163c6f105866ac1cbfc 100644 (file)
@@ -92,9 +92,9 @@
 #endif
 
 /* AYJ: helper input buffer may be a lot larger than this used to expect... */
-#define MAXPWNAM       254
-#define MAXPASS                254
-#define MAXLINE                254
+#define MAXPWNAM    254
+#define MAXPASS     254
+#define MAXLINE     254
 
 static void md5_calc(uint8_t out[16], void *in, size_t len);
 
@@ -440,7 +440,7 @@ authenticate(int socket_fd, const char *username, const char *passwd)
             }
             FD_ZERO(&readfds);
             FD_SET(socket_fd, &readfds);
-            if (select(socket_fd + 1, &readfds, NULL, NULL, &tv) == 0) /* Select timeout */
+            if (select(socket_fd + 1, &readfds, NULL, NULL, &tv) == 0)  /* Select timeout */
                 break;
             salen = sizeof(saremote);
             len = recvfrom(socket_fd, recv_buffer, sizeof(i_recv_buffer),
@@ -617,3 +617,4 @@ main(int argc, char **argv)
     close(sockfd);
     exit(1);
 }
+
index 36e37b726eaa0f874317050ee5920e59cd7f53e1..5fcd5ae54096a1f60e1f326d03269cbfaa65dea7 100644 (file)
@@ -9,34 +9,34 @@
 // 2008-05-14: rename to radius-util.* to avoid name clashes with squid util.*
 /*
  *
- *     RADIUS
- *     Remote Authentication Dial In User Service
+ *  RADIUS
+ *  Remote Authentication Dial In User Service
  *
  *
- *     Livingston Enterprises, Inc.
- *     6920 Koll Center Parkway
- *     Pleasanton, CA   94566
+ *  Livingston Enterprises, Inc.
+ *  6920 Koll Center Parkway
+ *  Pleasanton, CA   94566
  *
- *     Copyright 1992 Livingston Enterprises, Inc.
- *     Copyright 1997 Cistron Internet Services B.V.
+ *  Copyright 1992 Livingston Enterprises, Inc.
+ *  Copyright 1997 Cistron Internet Services B.V.
  *
- *     Permission to use, copy, modify, and distribute this software for any
- *     purpose and without fee is hereby granted, provided that this
- *     copyright and permission notice appear on all copies and supporting
- *     documentation, the name of Livingston Enterprises, Inc. not be used
- *     in advertising or publicity pertaining to distribution of the
- *     program without specific prior permission, and notice be given
- *     in supporting documentation that copying and distribution is by
- *     permission of Livingston Enterprises, Inc.
+ *  Permission to use, copy, modify, and distribute this software for any
+ *  purpose and without fee is hereby granted, provided that this
+ *  copyright and permission notice appear on all copies and supporting
+ *  documentation, the name of Livingston Enterprises, Inc. not be used
+ *  in advertising or publicity pertaining to distribution of the
+ *  program without specific prior permission, and notice be given
+ *  in supporting documentation that copying and distribution is by
+ *  permission of Livingston Enterprises, Inc.
  *
- *     Livingston Enterprises, Inc. makes no representations about
- *     the suitability of this software for any purpose.  It is
- *     provided "as is" without express or implied warranty.
+ *  Livingston Enterprises, Inc. makes no representations about
+ *  the suitability of this software for any purpose.  It is
+ *  provided "as is" without express or implied warranty.
  *
  */
 
 /*
- * util.c      Miscellanous generic functions.
+ * util.c   Miscellanous generic functions.
  *
  */
 
@@ -65,12 +65,12 @@ char util_sccsid[] =
 #endif
 
 /*
- *     Check for valid IP address in standard dot notation.
+ *  Check for valid IP address in standard dot notation.
  */
 static int good_ipaddr(char *addr)
 {
-    int        dot_count;
-    int        digit_count;
+    int dot_count;
+    int digit_count;
 
     dot_count = 0;
     digit_count = 0;
@@ -96,17 +96,17 @@ static int good_ipaddr(char *addr)
 }
 
 /*
- *     Return an IP address in host long notation from
- *     one supplied in standard dot notation.
+ *  Return an IP address in host long notation from
+ *  one supplied in standard dot notation.
  */
 static uint32_t ipstr2long(char *ip_str)
 {
-    char       buf[6];
-    char       *ptr;
-    int        i;
-    int        count;
-    uint32_t   ipaddr;
-    int        cur_byte;
+    char    buf[6];
+    char    *ptr;
+    int i;
+    int count;
+    uint32_t    ipaddr;
+    int cur_byte;
 
     ipaddr = (uint32_t)0;
     for (i = 0; i < 4; ++i) {
@@ -137,12 +137,12 @@ static uint32_t ipstr2long(char *ip_str)
 }
 
 /*
- *     Return an IP address in host long notation from a host
- *     name or address in dot notation.
+ *  Return an IP address in host long notation from a host
+ *  name or address in dot notation.
  */
 uint32_t get_ipaddr(char *host)
 {
-    struct hostent     *hp;
+    struct hostent  *hp;
 
     if (good_ipaddr(host) == 0) {
         return(ipstr2long(host));
@@ -151,3 +151,4 @@ uint32_t get_ipaddr(char *host)
     }
     return(ntohl(*(uint32_t *)hp->h_addr));
 }
+
index f5ecb73dff3b1aff47d5ee50c9506443f2407888..fe5b464da2e8be8d8c563de5661a46ad8100ba5b 100644 (file)
@@ -12,4 +12,5 @@
 #include "util.h"
 
 /* util.c */
-uint32_t               get_ipaddr (char *);
+uint32_t        get_ipaddr (char *);
+
index ff7036ab492ce360f203e4c76c421d267a0c03c0..bb6b669cfedd2b3b4262cf98f166c853922712ab 100644 (file)
 
 /*
  *
- *     RADIUS
- *     Remote Authentication Dial In User Service
+ *  RADIUS
+ *  Remote Authentication Dial In User Service
  *
  *
- *     Livingston Enterprises, Inc.
- *     6920 Koll Center Parkway
- *     Pleasanton, CA   94566
+ *  Livingston Enterprises, Inc.
+ *  6920 Koll Center Parkway
+ *  Pleasanton, CA   94566
  *
- *     Copyright 1992 Livingston Enterprises, Inc.
+ *  Copyright 1992 Livingston Enterprises, Inc.
  *
- *     Permission to use, copy, modify, and distribute this software for any
- *     purpose and without fee is hereby granted, provided that this
- *     copyright and permission notice appear on all copies and supporting
- *     documentation, the name of Livingston Enterprises, Inc. not be used
- *     in advertising or publicity pertaining to distribution of the
- *     program without specific prior permission, and notice be given
- *     in supporting documentation that copying and distribution is by
- *     permission of Livingston Enterprises, Inc.
+ *  Permission to use, copy, modify, and distribute this software for any
+ *  purpose and without fee is hereby granted, provided that this
+ *  copyright and permission notice appear on all copies and supporting
+ *  documentation, the name of Livingston Enterprises, Inc. not be used
+ *  in advertising or publicity pertaining to distribution of the
+ *  program without specific prior permission, and notice be given
+ *  in supporting documentation that copying and distribution is by
+ *  permission of Livingston Enterprises, Inc.
  *
- *     Livingston Enterprises, Inc. makes no representations about
- *     the suitability of this software for any purpose.  It is
- *     provided "as is" without express or implied warranty.
+ *  Livingston Enterprises, Inc. makes no representations about
+ *  the suitability of this software for any purpose.  It is
+ *  provided "as is" without express or implied warranty.
  *
  */
 
 /*
- *     @(#)radius.h    2.0  03-Aug-1996
+ *  @(#)radius.h    2.0  03-Aug-1996
  */
 
-#define AUTH_VECTOR_LEN                16
-#define AUTH_PASS_LEN          16
-#define AUTH_STRING_LEN                128     /* maximum of 254 */
+#define AUTH_VECTOR_LEN     16
+#define AUTH_PASS_LEN       16
+#define AUTH_STRING_LEN     128 /* maximum of 254 */
 
 typedef struct pw_auth_hdr {
-    u_char             code;
-    u_char             id;
-    uint16_t           length;
-    u_char             vector[AUTH_VECTOR_LEN];
-    u_char             data[2];
+    u_char      code;
+    u_char      id;
+    uint16_t        length;
+    u_char      vector[AUTH_VECTOR_LEN];
+    u_char      data[2];
 } AUTH_HDR;
 
-#define AUTH_HDR_LEN                   20
-#define CHAP_VALUE_LENGTH              16
-
-#define PW_AUTH_UDP_PORT               1812
-#define PW_ACCT_UDP_PORT               1813
-
-#define VENDORPEC_USR                  429
-
-#define PW_TYPE_STRING                 0
-#define PW_TYPE_INTEGER                        1
-#define PW_TYPE_IPADDR                 2
-#define PW_TYPE_DATE                   3
-
-#define        PW_AUTHENTICATION_REQUEST       1
-#define        PW_AUTHENTICATION_ACK           2
-#define        PW_AUTHENTICATION_REJECT        3
-#define        PW_ACCOUNTING_REQUEST           4
-#define        PW_ACCOUNTING_RESPONSE          5
-#define        PW_ACCOUNTING_STATUS            6
-#define PW_PASSWORD_REQUEST            7
-#define PW_PASSWORD_ACK                        8
-#define PW_PASSWORD_REJECT             9
-#define        PW_ACCOUNTING_MESSAGE           10
-#define PW_ACCESS_CHALLENGE            11
-
-#define        PW_USER_NAME                    1
-#define        PW_PASSWORD                     2
-#define        PW_CHAP_PASSWORD                3
-#define        PW_NAS_IP_ADDRESS               4
-#define        PW_NAS_PORT_ID                  5
-#define        PW_SERVICE_TYPE                 6
-#define        PW_FRAMED_PROTOCOL              7
-#define        PW_FRAMED_IP_ADDRESS            8
-#define        PW_FRAMED_IP_NETMASK            9
-#define        PW_FRAMED_ROUTING               10
-#define        PW_FILTER_ID                    11
-#define        PW_FRAMED_MTU                   12
-#define        PW_FRAMED_COMPRESSION           13
-#define        PW_LOGIN_IP_HOST                14
-#define        PW_LOGIN_SERVICE                15
-#define        PW_LOGIN_TCP_PORT               16
-#define PW_OLD_PASSWORD                        17
-#define PW_REPLY_MESSAGE               18
-#define PW_CALLBACK_NUMBER             19
-#define PW_CALLBACK_ID                 20
-#define PW_EXPIRATION                  21
-#define PW_FRAMED_ROUTE                        22
-#define PW_FRAMED_IPXNET               23
-#define PW_STATE                       24
-#define PW_CLASS                       25
-#define PW_VENDOR_SPECIFIC             26
-#define PW_SESSION_TIMEOUT             27
-#define PW_IDLE_TIMEOUT                        28
-#define PW_CALLED_STATION_ID           30
-#define PW_CALLING_STATION_ID          31
-#define PW_NAS_ID                      32
-#define PW_PROXY_STATE                 33
-
-#define PW_ACCT_STATUS_TYPE            40
-#define PW_ACCT_DELAY_TIME             41
-#define PW_ACCT_INPUT_OCTETS           42
-#define PW_ACCT_OUTPUT_OCTETS          43
-#define PW_ACCT_SESSION_ID             44
-#define PW_ACCT_AUTHENTIC              45
-#define PW_ACCT_SESSION_TIME           46
-#define PW_ACCT_INPUT_PACKETS          47
-#define PW_ACCT_OUTPUT_PACKETS         48
-
-#define PW_CHAP_CHALLENGE              60
-#define PW_NAS_PORT_TYPE               61
-#define PW_PORT_LIMIT                  62
-#define PW_CONNECT_INFO                        77
-
-#define PW_HUNTGROUP_NAME              221
-#define PW_AUTHTYPE                    1000
-#define PW_PREFIX                      1003
-#define PW_SUFFIX                      1004
-#define PW_GROUP                       1005
-#define PW_CRYPT_PASSWORD              1006
-#define PW_CONNECT_RATE                        1007
-#define PW_USER_CATEGORY               1029
-#define PW_GROUP_NAME                  1030
-#define PW_SIMULTANEOUS_USE            1034
-#define PW_STRIP_USERNAME              1035
-#define PW_FALL_THROUGH                        1036
-#define PW_ADD_PORT_TO_IP_ADDRESS      1037
-#define PW_EXEC_PROGRAM                        1038
-#define PW_EXEC_PROGRAM_WAIT           1039
-#define PW_HINT                                1040
-#define PAM_AUTH_ATTR                  1041
-#define PW_LOGIN_TIME                  1042
+#define AUTH_HDR_LEN            20
+#define CHAP_VALUE_LENGTH       16
+
+#define PW_AUTH_UDP_PORT        1812
+#define PW_ACCT_UDP_PORT        1813
+
+#define VENDORPEC_USR           429
+
+#define PW_TYPE_STRING          0
+#define PW_TYPE_INTEGER         1
+#define PW_TYPE_IPADDR          2
+#define PW_TYPE_DATE            3
+
+#define PW_AUTHENTICATION_REQUEST   1
+#define PW_AUTHENTICATION_ACK       2
+#define PW_AUTHENTICATION_REJECT    3
+#define PW_ACCOUNTING_REQUEST       4
+#define PW_ACCOUNTING_RESPONSE      5
+#define PW_ACCOUNTING_STATUS        6
+#define PW_PASSWORD_REQUEST     7
+#define PW_PASSWORD_ACK         8
+#define PW_PASSWORD_REJECT      9
+#define PW_ACCOUNTING_MESSAGE       10
+#define PW_ACCESS_CHALLENGE     11
+
+#define PW_USER_NAME            1
+#define PW_PASSWORD         2
+#define PW_CHAP_PASSWORD        3
+#define PW_NAS_IP_ADDRESS       4
+#define PW_NAS_PORT_ID          5
+#define PW_SERVICE_TYPE         6
+#define PW_FRAMED_PROTOCOL      7
+#define PW_FRAMED_IP_ADDRESS        8
+#define PW_FRAMED_IP_NETMASK        9
+#define PW_FRAMED_ROUTING       10
+#define PW_FILTER_ID            11
+#define PW_FRAMED_MTU           12
+#define PW_FRAMED_COMPRESSION       13
+#define PW_LOGIN_IP_HOST        14
+#define PW_LOGIN_SERVICE        15
+#define PW_LOGIN_TCP_PORT       16
+#define PW_OLD_PASSWORD         17
+#define PW_REPLY_MESSAGE        18
+#define PW_CALLBACK_NUMBER      19
+#define PW_CALLBACK_ID          20
+#define PW_EXPIRATION           21
+#define PW_FRAMED_ROUTE         22
+#define PW_FRAMED_IPXNET        23
+#define PW_STATE            24
+#define PW_CLASS            25
+#define PW_VENDOR_SPECIFIC      26
+#define PW_SESSION_TIMEOUT      27
+#define PW_IDLE_TIMEOUT         28
+#define PW_CALLED_STATION_ID        30
+#define PW_CALLING_STATION_ID       31
+#define PW_NAS_ID           32
+#define PW_PROXY_STATE          33
+
+#define PW_ACCT_STATUS_TYPE     40
+#define PW_ACCT_DELAY_TIME      41
+#define PW_ACCT_INPUT_OCTETS        42
+#define PW_ACCT_OUTPUT_OCTETS       43
+#define PW_ACCT_SESSION_ID      44
+#define PW_ACCT_AUTHENTIC       45
+#define PW_ACCT_SESSION_TIME        46
+#define PW_ACCT_INPUT_PACKETS       47
+#define PW_ACCT_OUTPUT_PACKETS      48
+
+#define PW_CHAP_CHALLENGE       60
+#define PW_NAS_PORT_TYPE        61
+#define PW_PORT_LIMIT           62
+#define PW_CONNECT_INFO         77
+
+#define PW_HUNTGROUP_NAME       221
+#define PW_AUTHTYPE         1000
+#define PW_PREFIX           1003
+#define PW_SUFFIX           1004
+#define PW_GROUP            1005
+#define PW_CRYPT_PASSWORD       1006
+#define PW_CONNECT_RATE         1007
+#define PW_USER_CATEGORY        1029
+#define PW_GROUP_NAME           1030
+#define PW_SIMULTANEOUS_USE     1034
+#define PW_STRIP_USERNAME       1035
+#define PW_FALL_THROUGH         1036
+#define PW_ADD_PORT_TO_IP_ADDRESS   1037
+#define PW_EXEC_PROGRAM         1038
+#define PW_EXEC_PROGRAM_WAIT        1039
+#define PW_HINT             1040
+#define PAM_AUTH_ATTR           1041
+#define PW_LOGIN_TIME           1042
 
 /*
- *     INTEGER TRANSLATIONS
+ *  INTEGER TRANSLATIONS
  */
 
-/*     USER TYPES      */
+/*  USER TYPES  */
 
-#define        PW_LOGIN_USER                   1
-#define        PW_FRAMED_USER                  2
-#define        PW_DIALBACK_LOGIN_USER          3
-#define        PW_DIALBACK_FRAMED_USER         4
+#define PW_LOGIN_USER           1
+#define PW_FRAMED_USER          2
+#define PW_DIALBACK_LOGIN_USER      3
+#define PW_DIALBACK_FRAMED_USER     4
 
-/*     FRAMED PROTOCOLS        */
+/*  FRAMED PROTOCOLS    */
 
-#define        PW_PPP                          1
-#define        PW_SLIP                         2
+#define PW_PPP              1
+#define PW_SLIP             2
 
-/*     FRAMED ROUTING VALUES   */
+/*  FRAMED ROUTING VALUES   */
 
-#define        PW_NONE                         0
-#define        PW_BROADCAST                    1
-#define        PW_LISTEN                       2
-#define        PW_BROADCAST_LISTEN             3
+#define PW_NONE             0
+#define PW_BROADCAST            1
+#define PW_LISTEN           2
+#define PW_BROADCAST_LISTEN     3
 
-/*     FRAMED COMPRESSION TYPES        */
+/*  FRAMED COMPRESSION TYPES    */
 
-#define        PW_VAN_JACOBSEN_TCP_IP          1
+#define PW_VAN_JACOBSEN_TCP_IP      1
 
-/*     LOGIN SERVICES  */
+/*  LOGIN SERVICES  */
 
-#define        PW_TELNET                       0
-#define        PW_RLOGIN                       1
-#define        PW_TCP_CLEAR                    2
-#define        PW_PORTMASTER                   3
+#define PW_TELNET           0
+#define PW_RLOGIN           1
+#define PW_TCP_CLEAR            2
+#define PW_PORTMASTER           3
 
-/*     AUTHENTICATION LEVEL    */
+/*  AUTHENTICATION LEVEL    */
 
-#define PW_AUTHTYPE_LOCAL              0
-#define PW_AUTHTYPE_SYSTEM             1
-#define PW_AUTHTYPE_SECURID            2
-#define PW_AUTHTYPE_CRYPT              3
-#define PW_AUTHTYPE_REJECT             4
-#define PW_AUTHTYPE_PAM                        253
-#define PW_AUTHTYPE_ACCEPT             254
+#define PW_AUTHTYPE_LOCAL       0
+#define PW_AUTHTYPE_SYSTEM      1
+#define PW_AUTHTYPE_SECURID     2
+#define PW_AUTHTYPE_CRYPT       3
+#define PW_AUTHTYPE_REJECT      4
+#define PW_AUTHTYPE_PAM         253
+#define PW_AUTHTYPE_ACCEPT      254
 
-/*     PORT TYPES              */
-#define PW_NAS_PORT_ASYNC              0
-#define PW_NAS_PORT_SYNC               1
-#define PW_NAS_PORT_ISDN               2
-#define PW_NAS_PORT_ISDN_V120          3
-#define PW_NAS_PORT_ISDN_V110          4
+/*  PORT TYPES      */
+#define PW_NAS_PORT_ASYNC       0
+#define PW_NAS_PORT_SYNC        1
+#define PW_NAS_PORT_ISDN        2
+#define PW_NAS_PORT_ISDN_V120       3
+#define PW_NAS_PORT_ISDN_V110       4
 
-/*     STATUS TYPES    */
+/*  STATUS TYPES    */
 
-#define PW_STATUS_START                        1
-#define PW_STATUS_STOP                 2
-#define PW_STATUS_ALIVE                        3
-#define PW_STATUS_ACCOUNTING_ON                7
-#define PW_STATUS_ACCOUNTING_OFF       8
+#define PW_STATUS_START         1
+#define PW_STATUS_STOP          2
+#define PW_STATUS_ALIVE         3
+#define PW_STATUS_ACCOUNTING_ON     7
+#define PW_STATUS_ACCOUNTING_OFF    8
 
index 2c84a2445928cef6c4f1a4a26e3b0090af5d3b7d..1f68c7cf348dfaaed6c0d875284fb3dc7d9036dd 100644 (file)
@@ -46,7 +46,7 @@
 #include <sasl.h>
 #endif
 
-#define APP_NAME_SASL  "basic_sasl_auth"
+#define APP_NAME_SASL   "basic_sasl_auth"
 
 int
 main(int argc, char *argv[])
@@ -128,3 +128,4 @@ main(int argc, char *argv[])
     sasl_done();
     return 0;
 }
+
index 0e86527c42fbffcf6435f95e6c3f910b63208beb..1c4d46c89b89ab54f5100682723fbc7e3ff3e124 100644 (file)
 
 #include <cstring>
 
-#define NMB_UNICAST            1
-#define NMB_BROADCAST  2
+#define NMB_UNICAST     1
+#define NMB_BROADCAST   2
 
 struct SMBDOMAIN {
-    const char *name;          /* domain name */
-    const char *sname;         /* match this with user input */
-    const char *passthrough;   /* pass-through authentication */
-    const char *nmbaddr;       /* name service address */
-    int nmbcast;               /* broadcast or unicast */
-    char *authshare;           /* share name of auth file */
-    const char *authfile;      /* pathname of auth file */
-    struct SMBDOMAIN *next;    /* linked list */
+    const char *name;       /* domain name */
+    const char *sname;      /* match this with user input */
+    const char *passthrough;    /* pass-through authentication */
+    const char *nmbaddr;    /* name service address */
+    int nmbcast;        /* broadcast or unicast */
+    char *authshare;        /* share name of auth file */
+    const char *authfile;   /* pathname of auth file */
+    struct SMBDOMAIN *next; /* linked list */
 };
 
 struct SMBDOMAIN *firstdom = NULL;
@@ -236,6 +236,7 @@ main(int argc, char *argv[])
             SEND_OK("");
         else
             SEND_ERR("");
-    }                          /* while (1) */
+    }               /* while (1) */
     return 0;
 }
+
index 5e9a6c4b43d4efd2b01c245e0d3b7812f3215b80..b6794fba5ec5230ded5ea7d4990c7bb4ea5c5d88 100644 (file)
@@ -100,7 +100,7 @@ process_options(int argc, char *argv[])
             exit(0);
         case '?':
             opt = optopt;
-            /* fall thru to default */
+        /* fall thru to default */
         default:
             fprintf(stderr, "FATAL: Unknown option: -%c\n", opt);
             usage(argv[0]);
@@ -149,13 +149,13 @@ main(int argc, char **argv)
         }
 
         if ((p = strchr(wstr, '\n')) != NULL)
-            *p = '\0';         /* strip \n */
+            *p = '\0';      /* strip \n */
         if ((p = strchr(wstr, '\r')) != NULL)
-            *p = '\0';         /* strip \r */
+            *p = '\0';      /* strip \r */
         /* Clear any current settings */
         username[0] = '\0';
         password[0] = '\0';
-        sscanf(wstr, "%s %s", username, password);     /* Extract parameters */
+        sscanf(wstr, "%s %s", username, password);  /* Extract parameters */
 
         debug("Got %s from Squid\n", wstr);
 
@@ -179,3 +179,4 @@ main(int argc, char **argv)
     }
     return 0;
 }
+
index a0650e1bd1227f13ef64710dd9f961f1c7ee95ab..dc2425dc5fb716f04e8cf2736878ed10a3244825 100644 (file)
@@ -61,8 +61,8 @@ int
 Valid_Group(char *UserName, char *Group)
 {
     int result = FALSE;
-    WCHAR wszUserName[256];    // Unicode user name
-    WCHAR wszGroup[256];       // Unicode Group
+    WCHAR wszUserName[256]; // Unicode user name
+    WCHAR wszGroup[256];    // Unicode Group
 
     LPLOCALGROUP_USERS_INFO_0 pBuf = NULL;
     LPLOCALGROUP_USERS_INFO_0 pTmpBuf;
@@ -186,3 +186,4 @@ Valid_User(char *UserName, char *Password, char *Group)
     }
     return result;
 }
+
index ea78c9fa0c191684169714276b855bb73f8ac68a..b785ffecdd4fe120b19b533c23fd856e116966de 100644 (file)
@@ -68,7 +68,7 @@ extern char Default_NTDomain[DNLEN+1];
 extern const char * errormsg;
 
 /* Debugging stuff */
-#if defined(__GNUC__)                  /* this is really a gcc-ism */
+#if defined(__GNUC__)           /* this is really a gcc-ism */
 #include <unistd.h>
 static char *__foo;
 #define debug(X...) if (debug_enabled) { \
@@ -94,3 +94,4 @@ debug(char *format,...)
 int Valid_User(char *,char *, char *);
 
 #endif
+
index fcf2711eb76b17a7978c06134fee06b541ec37bc..04e24780ff7c45fe1471aee8f9dad4600c8f3bdc 100644 (file)
@@ -105,7 +105,7 @@ main(int argc, char *argv[])
         char *p;
 
         if ((p = strchr(buf, '\n')) != NULL) {
-            *p = '\0';         /* strip \n */
+            *p = '\0';      /* strip \n */
             buflen = p - buf;   /* length is known already */
         } else
             buflen = strlen(buf);   /* keep this so we only scan the buffer for \0 once per loop */
@@ -118,3 +118,4 @@ main(int argc, char *argv[])
     debug("%s build " __DATE__ ", " __TIME__ " shutting down...\n", program_name);
     exit(0);
 }
+
index 176afb08451a7c0a774814e75071e7ff2e7a3f1c..c78fa4f563211fcc5022756e9a5fada9037362b8 100644 (file)
@@ -57,12 +57,12 @@ passwd_auth(char *user, char *passwd)
     struct passwd *pwd;
     pwd = getpwnam(user);
     if (pwd == NULL) {
-        return 0;              /* User does not exist */
+        return 0;       /* User does not exist */
     } else {
         if (strcmp(pwd->pw_passwd, (char *) crypt(passwd, pwd->pw_passwd))) {
-            return 2;          /* Wrong password */
+            return 2;       /* Wrong password */
         } else {
-            return 1;          /* Authentication Sucessful */
+            return 1;       /* Authentication Sucessful */
         }
     }
 }
@@ -74,12 +74,12 @@ shadow_auth(char *user, char *passwd)
     struct spwd *pwd;
     pwd = getspnam(user);
     if (pwd == NULL) {
-        return passwd_auth(user, passwd);      /* Fall back to passwd_auth */
+        return passwd_auth(user, passwd);   /* Fall back to passwd_auth */
     } else {
         if (strcmp(pwd->sp_pwdp, crypt(passwd, pwd->sp_pwdp))) {
-            return 2;          /* Wrong password */
+            return 2;       /* Wrong password */
         } else {
-            return 1;          /* Authentication Sucessful */
+            return 1;       /* Authentication Sucessful */
         }
     }
 }
@@ -96,7 +96,7 @@ main(int argc, char **argv)
     while (fgets(buf, HELPER_INPUT_BUFFER, stdin) != NULL) {
 
         if ((p = strchr(buf, '\n')) != NULL)
-            *p = '\0';         /* strip \n */
+            *p = '\0';      /* strip \n */
 
         if ((user = strtok(buf, " ")) == NULL) {
             SEND_ERR("No Username");
@@ -125,3 +125,4 @@ main(int argc, char **argv)
     }
     return 0;
 }
+
index 89f1841f23c6bb4fff9ab2992539203eae8d3731..648fd8352d428da8910f1cbc19646dd1f04c0e54 100644 (file)
  * useful and shared between helpers.
  */
 
-#define HELPER_INPUT_BUFFER    8196
+#define HELPER_INPUT_BUFFER 8196
 
 /* send OK result to Squid with a string parameter. */
-#define SEND_OK(x)     fprintf(stdout, "OK %s\n",x)
+#define SEND_OK(x)  fprintf(stdout, "OK %s\n",x)
 
 /* send ERR result to Squid with a string parameter. */
-#define SEND_ERR(x)    fprintf(stdout, "ERR %s\n",x)
+#define SEND_ERR(x) fprintf(stdout, "ERR %s\n",x)
 
 /* send ERR result to Squid with a string parameter. */
-#define SEND_BH(x)     fprintf(stdout, "BH %s\n",x)
+#define SEND_BH(x)  fprintf(stdout, "BH %s\n",x)
 
 /* send TT result to Squid with a string parameter. */
-#define SEND_TT(x)     fprintf(stdout, "TT %s\n",x)
+#define SEND_TT(x)  fprintf(stdout, "TT %s\n",x)
 
 #endif /* __SQUID_HELPERS_DEFINES_H */
+
index 3577986333ed42023ae8949581cec26eb7092306..43a524bb0d5ec269fd0f4880b600073ed03d5cd5 100644 (file)
@@ -52,3 +52,4 @@ typedef void HandleArguments(int, char **);
 typedef void HHA1Creator(RequestData *);
 
 #endif /* SQUID_DIGEST_COMMON_H_ */
+
index ab0ff3c00bf5a4a779465916e4a4e35b93a00fd3..050c6c409de8354f52921a5d735a48ea096c2bff 100644 (file)
@@ -55,7 +55,7 @@ ParseBuffer(char *buf, RequestData * requestData)
     char *p;
     requestData->parsed = 0;
     if ((p = strchr(buf, '\n')) != NULL)
-        *p = '\0';             /* strip \n */
+        *p = '\0';      /* strip \n */
 
     p = NULL;
     requestData->channelId = strtoll(buf, &p, 10);
@@ -120,3 +120,4 @@ main(int argc, char **argv)
         DoOneRequest(buf);
     exit(0);
 }
+
index 0d5fd92f06ef89c54690ed0fa384e7d282d21a85..5482d60ffee5206704cb016396464165416dc409 100644 (file)
@@ -430,7 +430,7 @@ LDAPArguments(int argc, char **argv)
             fprintf(stderr, "ERROR: Your LDAP library does not have URI support\n");
             return 1;
 #endif
-            /* Fall thru to -h */
+        /* Fall thru to -h */
         case 'h':
             if (ldapServer) {
                 int len = strlen(ldapServer) + 1 + strlen(value) + 1;
@@ -660,3 +660,4 @@ LDAPHHA1(RequestData * requestData)
     }
 
 }
+
index 51e16fd1be96ac23b426e894e95863d8c659a5fa..b6a8bccc157e76c5bd86914a8d133f579fc9f91f 100644 (file)
@@ -14,3 +14,4 @@
 
 extern int LDAPArguments(int argc, char **argv);
 extern void LDAPHHA1(RequestData * requestData);
+
index d250fbf50f03ee3d9b39d082bff660cadaf0f61c..15a863526b4b3e17980f6b3efd4236842a2384a8 100644 (file)
@@ -55,3 +55,4 @@ typedef void HandleArguments(int, char **);
 typedef void HHA1Creator(RequestData *);
 
 #endif /* SQUID_DIGEST_COMMON_H_ */
+
index 0da947dea263c815a04d59891b21d2fc67a5b464..533794972c30a654bbc1e6d15979c8c14d9e6d41 100644 (file)
@@ -54,7 +54,7 @@ ParseBuffer(char *buf, RequestData * requestData)
     char *p;
     requestData->parsed = 0;
     if ((p = strchr(buf, '\n')) != NULL)
-        *p = '\0';             /* strip \n */
+        *p = '\0';      /* strip \n */
 
     p = NULL;
     requestData->channelId = strtoll(buf, &p, 10);
@@ -119,3 +119,4 @@ main(int argc, char **argv)
         DoOneRequest(buf);
     exit(0);
 }
+
index 82e081d3a58159cd98a5593fe482e69c5d9be465..a1efb8e446dd6d05c23bad2295eb31fe6f061a62 100644 (file)
@@ -13,7 +13,7 @@
  *
  * Original copyright & license follows:
  *
- * Copyright (C) Vince Brimhall                        2004-2005
+ * Copyright (C) Vince Brimhall         2004-2005
  *
  * This program is free software; you can redistribute it and/or modify
  * it under the terms of the GNU General Public License as published by
 
 #include "edir_ldapext.h"
 
-#define NMASLDAP_GET_LOGIN_CONFIG_REQUEST      "2.16.840.1.113719.1.39.42.100.3"
-#define NMASLDAP_GET_LOGIN_CONFIG_RESPONSE     "2.16.840.1.113719.1.39.42.100.4"
-#define NMASLDAP_SET_PASSWORD_REQUEST          "2.16.840.1.113719.1.39.42.100.11"
-#define NMASLDAP_SET_PASSWORD_RESPONSE         "2.16.840.1.113719.1.39.42.100.12"
-#define NMASLDAP_GET_PASSWORD_REQUEST          "2.16.840.1.113719.1.39.42.100.13"
-#define NMASLDAP_GET_PASSWORD_RESPONSE         "2.16.840.1.113719.1.39.42.100.14"
+#define NMASLDAP_GET_LOGIN_CONFIG_REQUEST   "2.16.840.1.113719.1.39.42.100.3"
+#define NMASLDAP_GET_LOGIN_CONFIG_RESPONSE  "2.16.840.1.113719.1.39.42.100.4"
+#define NMASLDAP_SET_PASSWORD_REQUEST       "2.16.840.1.113719.1.39.42.100.11"
+#define NMASLDAP_SET_PASSWORD_RESPONSE      "2.16.840.1.113719.1.39.42.100.12"
+#define NMASLDAP_GET_PASSWORD_REQUEST       "2.16.840.1.113719.1.39.42.100.13"
+#define NMASLDAP_GET_PASSWORD_RESPONSE      "2.16.840.1.113719.1.39.42.100.14"
 
-#define NMAS_LDAP_EXT_VERSION                          1
+#define NMAS_LDAP_EXT_VERSION               1
 
-#define SMB_MALLOC_ARRAY(type, nelem)          calloc(sizeof(type), nelem)
+#define SMB_MALLOC_ARRAY(type, nelem)       calloc(sizeof(type), nelem)
 #define DEBUG(level, args)
 
 /**********************************************************************
@@ -161,7 +161,7 @@ static int berEncodeLoginData(
     unsigned int i;
     unsigned int elemCnt = methodIDLen / sizeof(unsigned int);
 
-    char       *utf8ObjPtr=NULL;
+    char    *utf8ObjPtr=NULL;
     int     utf8ObjSize = 0;
 
     char    *utf8TagPtr = NULL;
@@ -276,7 +276,7 @@ static int berDecodeLoginData(
 **********************************************************************/
 
 static int getLoginConfig(
-    LDAP        *ld,
+    LDAP     *ld,
     char     *objectDN,
     unsigned int  methodIDLen,
     unsigned int *methodID,
@@ -346,9 +346,9 @@ static int getLoginConfig(
 **********************************************************************/
 
 static int nmasldap_get_simple_pwd(
-    LDAP        *ld,
+    LDAP     *ld,
     char     *objectDN,
-    size_t      pwdLen,
+    size_t   pwdLen,
     char     *pwd )
 {
     int err = 0;
@@ -404,9 +404,9 @@ static int nmasldap_get_simple_pwd(
 **********************************************************************/
 
 static int nmasldap_get_password(
-    LDAP        *ld,
+    LDAP     *ld,
     char     *objectDN,
-    size_t   *pwdSize, /* in bytes */
+    size_t   *pwdSize,  /* in bytes */
     unsigned char     *pwd )
 {
     int err = 0;
index 4387d7938ef4cb606e19e3c5d3aaefab78500e03..40e38a725432659589fb07a1cb23c331eb09f468 100644 (file)
@@ -1,9 +1,10 @@
-/*\r
- * Copyright (C) 1996-2014 The Squid Software Foundation and contributors\r
- *\r
- * Squid software is distributed under GPLv2+ license and includes\r
- * contributions from numerous individuals and organizations.\r
- * Please see the COPYING and CONTRIBUTORS files for details.\r
- */\r
-\r
-int nds_get_password(LDAP *ld, char *object_dn, size_t * pwd_len, char *pwd);\r
+/*
+ * Copyright (C) 1996-2014 The Squid Software Foundation and contributors
+ *
+ * Squid software is distributed under GPLv2+ license and includes
+ * contributions from numerous individuals and organizations.
+ * Please see the COPYING and CONTRIBUTORS files for details.
+ */
+
+int nds_get_password(LDAP *ld, char *object_dn, size_t * pwd_len, char *pwd);
+
index ec6b6baa035b24d6dcfe3b26c45ab8d73aa2e0d1..da113c7f2e0f5d79c1d3d4a8132fa24f5735d844 100644 (file)
@@ -457,7 +457,7 @@ LDAPArguments(int argc, char **argv)
             fprintf(stderr, "ERROR: Your LDAP library does not have URI support\n");
             return 1;
 #endif
-            /* Fall thru to -h */
+        /* Fall thru to -h */
         case 'h':
             if (ldapServer) {
                 int len = strlen(ldapServer) + 1 + strlen(value) + 1;
@@ -691,3 +691,4 @@ LDAPHHA1(RequestData * requestData)
     }
 
 }
+
index cfcbf4570e213e5e1d1b6665d7a72f99dd3df98b..e2edbd52faf88393f5686df3cbcc3c5169cf4ce3 100644 (file)
@@ -14,3 +14,4 @@
 #include "digest_common.h"
 extern int LDAPArguments(int argc, char **argv);
 extern void LDAPHHA1(RequestData * requestData);
+
index b30217f844b7d114cbe2ca76272f8b2bffcd5394..6a06dcfb0eb865932e653b492b3938b2e001d47d 100644 (file)
@@ -47,3 +47,4 @@ typedef void HandleArguments(int, char **);
 typedef void HHA1Creator(RequestData *);
 
 #endif /* SQUID_DIGEST_COMMON_H_ */
+
index bfd58c25af371ceda96018a4001a647f4ee61268..b4d24c5197c45a123917972a010b96f063b09318 100644 (file)
@@ -56,7 +56,7 @@ ParseBuffer(char *buf, RequestData * requestData)
     char *p;
     requestData->parsed = 0;
     if ((p = strchr(buf, '\n')) != NULL)
-        *p = '\0';             /* strip \n */
+        *p = '\0';      /* strip \n */
 
     p = NULL;
     requestData->channelId = strtoll(buf, &p, 10);
@@ -118,3 +118,4 @@ main(int argc, char **argv)
         DoOneRequest(buf);
     return 0;
 }
+
index 228c9e9b0a657877590e60a7ae8f6f747502ea7d..053ca4aeada7d1f03ca1c8b685cc445ac2038df0 100644 (file)
@@ -195,3 +195,4 @@ TextHHA1(RequestData * requestData)
         DigestCalcHA1("md5", requestData->user, requestData->realm, u->passwd, NULL, NULL, HA1, requestData->HHA1);
     }
 }
+
index d4efa145c2289e96bed604fef52bc04b894500ed..ef720d1e25e62b9bfa8fdef13a75ca873da6140b 100644 (file)
@@ -10,3 +10,4 @@
 
 extern void TextArguments(int argc, char **argv);
 extern void TextHHA1(RequestData * requestData);
+
index 6b73f8ca93eb38db9908bdfc3cff93b38dbd9581..3b17abe3f70227feac87f35b2153336009e5a58b 100644 (file)
@@ -385,7 +385,7 @@ wccmparray(const wchar_t * str, const wchar_t ** array)
 static int
 wcstrcmparray(const wchar_t * str, const char **array)
 {
-    WCHAR wszGroup[GNLEN + 1]; // Unicode Group
+    WCHAR wszGroup[GNLEN + 1];  // Unicode Group
 
     while (*array) {
         MultiByteToWideChar(CP_ACP, 0, *array,
@@ -525,7 +525,7 @@ Valid_Local_Groups(char *UserName, const char **Groups)
 {
     int result = 0;
     char *Domain_Separator;
-    WCHAR wszUserName[UNLEN + 1];      /* Unicode user name */
+    WCHAR wszUserName[UNLEN + 1];   /* Unicode user name */
 
     LPLOCALGROUP_USERS_INFO_0 pBuf;
     LPLOCALGROUP_USERS_INFO_0 pTmpBuf;
@@ -602,7 +602,7 @@ int
 Valid_Global_Groups(char *UserName, const char **Groups)
 {
     int result = 0;
-    WCHAR wszUser[DNLEN + UNLEN + 2];  /* Unicode user name */
+    WCHAR wszUser[DNLEN + UNLEN + 2];   /* Unicode user name */
     char NTDomain[DNLEN + UNLEN + 2];
 
     char *domain_qualify = NULL;
@@ -756,12 +756,12 @@ process_options(int argc, char *argv[])
             exit(0);
         case '?':
             opt = optopt;
-            /* fall thru to default */
+        /* fall thru to default */
         default:
             fprintf(stderr, "%s: FATAL: Unknown option: -%c. Exiting\n", program_name, opt);
             usage(argv[0]);
             exit(1);
-            break;             /* not reached */
+            break;      /* not reached */
         }
     }
     return;
@@ -777,7 +777,7 @@ main(int argc, char *argv[])
     const char *groups[512];
     int n;
 
-    if (argc > 0) {            /* should always be true */
+    if (argc > 0) {     /* should always be true */
         program_name = strrchr(argv[0], '/');
         if (program_name == NULL)
             program_name = argv[0];
@@ -824,9 +824,9 @@ main(int argc, char *argv[])
             continue;
         }
         if ((p = strchr(buf, '\n')) != NULL)
-            *p = '\0';         /* strip \n */
+            *p = '\0';      /* strip \n */
         if ((p = strchr(buf, '\r')) != NULL)
-            *p = '\0';         /* strip \r */
+            *p = '\0';      /* strip \r */
 
         debug("Got '%s' from Squid (length: %d).\n", buf, strlen(buf));
 
@@ -857,3 +857,4 @@ main(int argc, char *argv[])
     }
     return 0;
 }
+
index 4379f813d23715b9514aeafd2e2fe466d4fe0a8e..aac306a64a9e6c2b207a526a257f138ec7374ba2 100644 (file)
@@ -257,7 +257,7 @@ main(int argc, char **argv)
             fprintf(stderr, "FATAL: Your LDAP library does not have URI support\n");
             exit(1);
 #endif
-            /* Fall thru to -h */
+        /* Fall thru to -h */
         case 'h':
             if (ldapServer) {
                 int len = strlen(ldapServer) + 1 + strlen(value) + 1;
@@ -835,3 +835,4 @@ readSecret(const char *filename)
 
     return 0;
 }
+
index 421aaf80eafc55e041c0e302aea812d4d0877039..6955efdce6aa86ae958d13fa64a1e85898c8fad8 100644 (file)
@@ -219,7 +219,7 @@ GetDomainName(void)
 static int
 wcstrcmparray(const wchar_t * str, const char **array)
 {
-    WCHAR wszGroup[GNLEN + 1]; // Unicode Group
+    WCHAR wszGroup[GNLEN + 1];  // Unicode Group
 
     while (*array) {
         MultiByteToWideChar(CP_ACP, 0, *array,
@@ -238,7 +238,7 @@ Valid_Local_Groups(char *UserName, const char **Groups)
 {
     int result = 0;
     char *Domain_Separator;
-    WCHAR wszUserName[UNLEN + 1];      // Unicode user name
+    WCHAR wszUserName[UNLEN + 1];   // Unicode user name
 
     LPLOCALGROUP_USERS_INFO_0 pBuf = NULL;
     LPLOCALGROUP_USERS_INFO_0 pTmpBuf;
@@ -312,11 +312,11 @@ int
 Valid_Global_Groups(char *UserName, const char **Groups)
 {
     int result = 0;
-    WCHAR wszUserName[UNLEN + 1];      // Unicode user name
+    WCHAR wszUserName[UNLEN + 1];   // Unicode user name
 
-    WCHAR wszLocalDomain[DNLEN + 1];   // Unicode Local Domain
+    WCHAR wszLocalDomain[DNLEN + 1];    // Unicode Local Domain
 
-    WCHAR wszUserDomain[DNLEN + 1];    // Unicode User Domain
+    WCHAR wszUserDomain[DNLEN + 1]; // Unicode User Domain
 
     char NTDomain[DNLEN + UNLEN + 2];
     char *domain_qualify;
@@ -495,12 +495,12 @@ process_options(int argc, char *argv[])
             exit(0);
         case '?':
             opt = optopt;
-            /* fall thru to default */
+        /* fall thru to default */
         default:
             fprintf(stderr, "%s: FATAL: Unknown option: -%c. Exiting\n", program_name, opt);
             usage(argv[0]);
             exit(1);
-            break;             /* not reached */
+            break;      /* not reached */
         }
     }
     return;
@@ -516,7 +516,7 @@ main(int argc, char *argv[])
     const char *groups[512];
     int n;
 
-    if (argc > 0) {            /* should always be true */
+    if (argc > 0) {     /* should always be true */
         program_name = strrchr(argv[0], '/');
         if (program_name == NULL)
             program_name = argv[0];
@@ -566,9 +566,9 @@ main(int argc, char *argv[])
             continue;
         }
         if ((p = strchr(buf, '\n')) != NULL)
-            *p = '\0';         /* strip \n */
+            *p = '\0';      /* strip \n */
         if ((p = strchr(buf, '\r')) != NULL)
-            *p = '\0';         /* strip \r */
+            *p = '\0';      /* strip \r */
 
         debug("Got '%s' from Squid (length: %d).\n", buf, strlen(buf));
 
@@ -597,3 +597,4 @@ main(int argc, char *argv[])
     }
     return 0;
 }
+
index 93df533cef732043cf31a3b299515b0bb54e1b05..58cfb808b7e193818be143fcf3ae9d270f8ffcc9 100644 (file)
@@ -40,8 +40,8 @@
 #include "rfc1738.h"
 #include "util.h"
 
-#define EDUI_PROGRAM_NAME              "ext_edirectory_userip_acl"
-#define EDUI_PROGRAM_VERSION           "2.1"
+#define EDUI_PROGRAM_NAME       "ext_edirectory_userip_acl"
+#define EDUI_PROGRAM_VERSION        "2.1"
 
 /* System includes */
 #ifndef _GNU_SOURCE
@@ -69,9 +69,9 @@
 #endif
 
 #ifdef HELPER_INPUT_BUFFER
-#define EDUI_MAXLEN            HELPER_INPUT_BUFFER
+#define EDUI_MAXLEN     HELPER_INPUT_BUFFER
 #else
-#define EDUI_MAXLEN            4096            /* Modified to improve performance, unless HELPER_INPUT_BUFFER exists */
+#define EDUI_MAXLEN     4096        /* Modified to improve performance, unless HELPER_INPUT_BUFFER exists */
 #endif
 
 /* ldap compile options */
 #endif
 
 /* conf_t - status flags */
-#define EDUI_MODE_INIT         0x01
-#define EDUI_MODE_DEBUG                0x02                            /* Replace with Squid's debug system */
-#define EDUI_MODE_TLS          0x04
-#define EDUI_MODE_IPV4         0x08
-#define EDUI_MODE_IPV6         0x10
-#define EDUI_MODE_GROUP                0x20                            /* Group is REQUIRED */
-#define EDUI_MODE_PERSIST      0x40                            /* Persistent LDAP connections */
-#define EDUI_MODE_KILL         0x80
+#define EDUI_MODE_INIT      0x01
+#define EDUI_MODE_DEBUG     0x02                /* Replace with Squid's debug system */
+#define EDUI_MODE_TLS       0x04
+#define EDUI_MODE_IPV4      0x08
+#define EDUI_MODE_IPV6      0x10
+#define EDUI_MODE_GROUP     0x20                /* Group is REQUIRED */
+#define EDUI_MODE_PERSIST   0x40                /* Persistent LDAP connections */
+#define EDUI_MODE_KILL      0x80
 
 /* conf_t - Program configuration struct typedef */
 typedef struct {
@@ -107,7 +107,7 @@ typedef struct {
     char attrib[EDUI_MAXLEN];
     char dn[EDUI_MAXLEN];
     char passwd[EDUI_MAXLEN];
-    char search_filter[EDUI_MAXLEN];                           /* Base search_filter that gets copied to edui_ldap_t */
+    char search_filter[EDUI_MAXLEN];                /* Base search_filter that gets copied to edui_ldap_t */
     int ver;
     int scope;
     int port;
@@ -157,15 +157,15 @@ typedef struct {
     char host[EDUI_MAXLEN];
     char dn[EDUI_MAXLEN];
     char passwd[EDUI_MAXLEN];
-    char search_filter[EDUI_MAXLEN];                   /* search_group gets appended here by GroupLDAP */
-    char search_ip[EDUI_MAXLEN];                       /* Could be IPv4 or IPv6, set by ConvertIP */
+    char search_filter[EDUI_MAXLEN];                    /* search_group gets appended here by GroupLDAP */
+    char search_ip[EDUI_MAXLEN];                        /* Could be IPv4 or IPv6, set by ConvertIP */
     char userid[EDUI_MAXLEN];                           /* Resulting userid */
     unsigned int status;
     unsigned int port;
-    unsigned long type;                                /* Type of bind */
+    unsigned long type;                             /* Type of bind */
     int ver;
     int scope;
-    int err;                                           /* LDAP error code */
+    int err;                        /* LDAP error code */
     time_t idle_time;
     int num_ent;                                        /* Number of entry's found via search */
     int num_val;                                        /* Number of value's found via getval */
@@ -569,11 +569,11 @@ InitLDAP(edui_ldap_t *l)
     l->port = 0;
     l->scope = -1;
     l->type = 0;
-    l->err = -1;                                       /* Set error to LDAP_SUCCESS by default */
+    l->err = -1;                    /* Set error to LDAP_SUCCESS by default */
     l->ver = 0;
     l->idle_time = 0;
-    l->num_ent = 0;                                    /* Number of entries in l->lm */
-    l->num_val = 0;                                    /* Number of entries in l->val */
+    l->num_ent = 0;                 /* Number of entries in l->lm */
+    l->num_val = 0;                 /* Number of entries in l->val */
 
     /* Set default settings from conf */
     if (edui_conf.basedn[0] != '\0')
@@ -601,19 +601,19 @@ static int
 OpenLDAP(edui_ldap_t *l, char *h, unsigned int p)
 {
     if ((l == NULL) || (h == NULL)) return LDAP_ERR_NULL;
-    if (!(l->status & LDAP_INIT_S)) return LDAP_ERR_INIT;              /* Not initalized, or might be in use */
-    if (l->status & LDAP_OPEN_S) return LDAP_ERR_OPEN;                 /* Already open */
-    if (l->status & LDAP_BIND_S) return LDAP_ERR_BIND;                 /* Already bound */
+    if (!(l->status & LDAP_INIT_S)) return LDAP_ERR_INIT;       /* Not initalized, or might be in use */
+    if (l->status & LDAP_OPEN_S) return LDAP_ERR_OPEN;          /* Already open */
+    if (l->status & LDAP_BIND_S) return LDAP_ERR_BIND;          /* Already bound */
 
     xstrncpy(l->host, h, sizeof(l->host));
     if (p > 0)
         l->port = p;
     else
-        l->port = LDAP_PORT;                                           /* Default is port 389 */
+        l->port = LDAP_PORT;                        /* Default is port 389 */
 
 #ifdef NETSCAPE_SSL
     if (l->port == LDAPS_PORT)
-        l->status |= (LDAP_SSL_S | LDAP_TLS_S);                                /* SSL Port: 636 */
+        l->status |= (LDAP_SSL_S | LDAP_TLS_S);             /* SSL Port: 636 */
 #endif
 
 #ifdef USE_LDAP_INIT
@@ -623,7 +623,7 @@ OpenLDAP(edui_ldap_t *l, char *h, unsigned int p)
 #endif
     if (l->lp == NULL) {
         l->err = LDAP_CONNECT_ERROR;
-        return LDAP_ERR_CONNECT;                                       /* Unable to connect */
+        return LDAP_ERR_CONNECT;                    /* Unable to connect */
     } else {
         /* set status */
 //    l->status &= ~(LDAP_INIT_S);
@@ -644,8 +644,8 @@ CloseLDAP(edui_ldap_t *l)
     int s;
     if (l == NULL) return LDAP_ERR_NULL;
     if (l->lp == NULL) return LDAP_ERR_NULL;
-    if (!(l->status & LDAP_INIT_S)) return LDAP_ERR_INIT;              /* Connection not initalized */
-    if (!(l->status & LDAP_OPEN_S)) return LDAP_ERR_OPEN;              /* Connection not open */
+    if (!(l->status & LDAP_INIT_S)) return LDAP_ERR_INIT;       /* Connection not initalized */
+    if (!(l->status & LDAP_OPEN_S)) return LDAP_ERR_OPEN;       /* Connection not open */
 
     if (l->lm != NULL) {
         ldap_msgfree(l->lm);
@@ -661,10 +661,10 @@ CloseLDAP(edui_ldap_t *l)
     if (s == LDAP_SUCCESS) {
         l->status = LDAP_INIT_S;
         l->idle_time = 0;
-        l->err = s;                                                    /* Set LDAP error code */
+        l->err = s;                         /* Set LDAP error code */
         return LDAP_ERR_SUCCESS;
     } else {
-        l->err = s;                                                    /* Set LDAP error code */
+        l->err = s;                         /* Set LDAP error code */
         return LDAP_ERR_FAILED;
     }
 }
@@ -681,18 +681,18 @@ SetVerLDAP(edui_ldap_t *l, int v)
     if (l == NULL) return LDAP_ERR_NULL;
     if ((v > 3) || (v < 1)) return LDAP_ERR_PARAM;
     if (l->lp == NULL) return LDAP_ERR_POINTER;
-    if (!(l->status & LDAP_INIT_S)) return LDAP_ERR_INIT;              /* Not initalized */
-    if (!(l->status & LDAP_OPEN_S)) return LDAP_ERR_OPEN;              /* Not open */
-    if (l->status & LDAP_BIND_S) return LDAP_ERR_BIND;                 /* Already bound */
+    if (!(l->status & LDAP_INIT_S)) return LDAP_ERR_INIT;       /* Not initalized */
+    if (!(l->status & LDAP_OPEN_S)) return LDAP_ERR_OPEN;       /* Not open */
+    if (l->status & LDAP_BIND_S) return LDAP_ERR_BIND;          /* Already bound */
 
     /* set version */
     x = ldap_set_option(l->lp, LDAP_OPT_PROTOCOL_VERSION, &v);
     if (x == LDAP_SUCCESS) {
         l->ver = v;
-        l->err = x;                                                    /* Set LDAP error code */
+        l->err = x;                         /* Set LDAP error code */
         return LDAP_ERR_SUCCESS;
     } else {
-        l->err = x;                                                    /* Set LDAP error code */
+        l->err = x;                         /* Set LDAP error code */
         return LDAP_ERR_FAILED;
     }
 }
@@ -707,10 +707,10 @@ BindLDAP(edui_ldap_t *l, char *dn, char *pw, unsigned int t)
 {
     int s;
     if (l == NULL) return LDAP_ERR_NULL;
-    if (!(l->status & LDAP_INIT_S)) return LDAP_ERR_INIT;              /* Not initalized */
-    if (!(l->status & LDAP_OPEN_S)) return LDAP_ERR_OPEN;              /* Not open */
-    if (l->status & LDAP_BIND_S) return LDAP_ERR_BIND;                 /* Already bound */
-    if (l->lp == NULL) return LDAP_ERR_POINTER;                                /* Error */
+    if (!(l->status & LDAP_INIT_S)) return LDAP_ERR_INIT;       /* Not initalized */
+    if (!(l->status & LDAP_OPEN_S)) return LDAP_ERR_OPEN;       /* Not open */
+    if (l->status & LDAP_BIND_S) return LDAP_ERR_BIND;          /* Already bound */
+    if (l->lp == NULL) return LDAP_ERR_POINTER;             /* Error */
 
     /* Copy details - dn and pw CAN be NULL for anonymous and/or TLS */
     if (dn != NULL) {
@@ -752,13 +752,13 @@ BindLDAP(edui_ldap_t *l, char *dn, char *pw, unsigned int t)
         break;
 #endif
 #ifdef LDAP_AUTH_TLS
-    case LDAP_AUTH_TLS:                                                /* Added for chicken switch to TLS-enabled without using SSL */
+    case LDAP_AUTH_TLS:                     /* Added for chicken switch to TLS-enabled without using SSL */
         l->type = t;
         break;
 #endif
     default:
         l->type = LDAP_AUTH_NONE;
-        break;                                                 /* Default to anonymous bind */
+        break;                          /* Default to anonymous bind */
     }
 
     /* Bind */
@@ -769,11 +769,11 @@ BindLDAP(edui_ldap_t *l, char *dn, char *pw, unsigned int t)
 #endif
         s = ldap_bind_s(l->lp, l->dn, l->passwd, l->type);
     if (s == LDAP_SUCCESS) {
-        l->status |= LDAP_BIND_S;                              /* Success */
-        l->err = s;                                            /* Set LDAP error code */
+        l->status |= LDAP_BIND_S;               /* Success */
+        l->err = s;                     /* Set LDAP error code */
         return LDAP_ERR_SUCCESS;
     } else {
-        l->err = s;                                            /* Set LDAP error code */
+        l->err = s;                     /* Set LDAP error code */
         return LDAP_ERR_FAILED;
     }
 }
@@ -795,12 +795,12 @@ ConvertIP(edui_ldap_t *l, char *ip)
     void *y, *z;
     size_t s;
     long x;
-    int i, j, t, swi;                                                  /* IPv6 "::" cut over toggle */
+    int i, j, t, swi;                           /* IPv6 "::" cut over toggle */
     if (l == NULL) return LDAP_ERR_NULL;
     if (ip == NULL) return LDAP_ERR_PARAM;
-    if (!(l->status & LDAP_INIT_S)) return LDAP_ERR_INIT;              /* Not initalized */
-    if (!(l->status & LDAP_OPEN_S)) return LDAP_ERR_OPEN;              /* Not open */
-    if (!(l->status & LDAP_BIND_S)) return LDAP_ERR_BIND;              /* Not bound */
+    if (!(l->status & LDAP_INIT_S)) return LDAP_ERR_INIT;       /* Not initalized */
+    if (!(l->status & LDAP_OPEN_S)) return LDAP_ERR_OPEN;       /* Not open */
+    if (!(l->status & LDAP_BIND_S)) return LDAP_ERR_BIND;       /* Not bound */
 
     y = memchr((void *)ip, ':', EDUI_MAXLEN);
     z = memchr((void *)ip, '.', EDUI_MAXLEN);
@@ -837,7 +837,7 @@ ConvertIP(edui_ldap_t *l, char *ip)
     *(obj) = '\0';
     /* StringSplit() will zero out bufa & obj at each call */
     memset(l->search_ip, '\0', sizeof(l->search_ip));
-    xstrncpy(bufa, ip, sizeof(bufa));                                          /* To avoid segfaults, use bufa instead of ip */
+    xstrncpy(bufa, ip, sizeof(bufa));                       /* To avoid segfaults, use bufa instead of ip */
     swi = 0;
     if (l->status & LDAP_IPV6_S) {
         /* Search for :: in string */
@@ -845,13 +845,13 @@ ConvertIP(edui_ldap_t *l, char *ip)
             /* bufa starts with a ::, so just copy and clear */
             xstrncpy(bufb, bufa, sizeof(bufb));
             *(bufa) = '\0';
-            ++swi;                                                             /* Indicates that there is a bufb */
+            ++swi;                              /* Indicates that there is a bufb */
         } else if ((bufa[0] == ':') && (bufa[1] != ':')) {
             /* bufa starts with a :, a typo so just fill in a ':', cat and clear */
             bufb[0] = ':';
             strncat(bufb, bufa, strlen(bufa));
             *(bufa) = '\0';
-            ++swi;                                                             /* Indicates that there is a bufb */
+            ++swi;                              /* Indicates that there is a bufb */
         } else {
             p = strstr(bufa, "::");
             if (p != NULL) {
@@ -861,7 +861,7 @@ ConvertIP(edui_ldap_t *l, char *ip)
                 memcpy(bufb, p, i);
                 *p = '\0';
                 bufb[i] = '\0';
-                ++swi;                                                         /* Indicates that there is a bufb */
+                ++swi;                              /* Indicates that there is a bufb */
             }
         }
     }
@@ -876,39 +876,39 @@ ConvertIP(edui_ldap_t *l, char *ip)
                 errno = 0;
                 x = strtol(obj, (char **)NULL, 10);
                 if (((x < 0) || (x > 255)) || ((errno != 0) && (x == 0)) || ((obj[0] != '0') && (x == 0)))
-                    return LDAP_ERR_OOB;                                               /* Out of bounds -- Invalid address */
+                    return LDAP_ERR_OOB;                        /* Out of bounds -- Invalid address */
                 memset(hexc, '\0', sizeof(hexc));
                 int hlen = snprintf(hexc, sizeof(hexc), "%02X", (int)x);
                 strncat(l->search_ip, hexc, hlen);
             } else
-                break;                                                         /* reached end of octet */
+                break;                              /* reached end of octet */
         } else if (l->status & LDAP_IPV6_S) {
             /* Break down IPv6 address */
             if (swi > 1)
-                t = StringSplit(bufb, ':', obj, sizeof(obj));                  /* After "::" */
+                t = StringSplit(bufb, ':', obj, sizeof(obj));           /* After "::" */
             else
-                t = StringSplit(bufa, ':', obj, sizeof(obj));                  /* Before "::" */
+                t = StringSplit(bufa, ':', obj, sizeof(obj));           /* Before "::" */
             /* Convert octet by size (t) - and fill 0's */
-            switch (t) {                                                       /* IPv6 is already in HEX, copy contents */
+            switch (t) {                            /* IPv6 is already in HEX, copy contents */
             case 4:
                 hexc[0] = (char) toupper((int)obj[0]);
                 i = (int)hexc[0];
                 if (!isxdigit(i))
-                    return LDAP_ERR_OOB;                                       /* Out of bounds */
+                    return LDAP_ERR_OOB;                    /* Out of bounds */
                 hexc[1] = (char) toupper((int)obj[1]);
                 i = (int)hexc[1];
                 if (!isxdigit(i))
-                    return LDAP_ERR_OOB;                                       /* Out of bounds */
+                    return LDAP_ERR_OOB;                    /* Out of bounds */
                 hexc[2] = '\0';
                 strncat(l->search_ip, hexc, 2);
                 hexc[0] = (char) toupper((int)obj[2]);
                 i = (int)hexc[0];
                 if (!isxdigit(i))
-                    return LDAP_ERR_OOB;                                       /* Out of bounds */
+                    return LDAP_ERR_OOB;                    /* Out of bounds */
                 hexc[1] = (char) toupper((int)obj[3]);
                 i = (int)hexc[1];
                 if (!isxdigit(i))
-                    return LDAP_ERR_OOB;                                       /* Out of bounds */
+                    return LDAP_ERR_OOB;                    /* Out of bounds */
                 hexc[2] = '\0';
                 strncat(l->search_ip, hexc, 2);
                 break;
@@ -917,17 +917,17 @@ ConvertIP(edui_ldap_t *l, char *ip)
                 hexc[1] = (char) toupper((int)obj[0]);
                 i = (int)hexc[1];
                 if (!isxdigit(i))
-                    return LDAP_ERR_OOB;                                       /* Out of bounds */
+                    return LDAP_ERR_OOB;                    /* Out of bounds */
                 hexc[2] = '\0';
                 strncat(l->search_ip, hexc, 2);
                 hexc[0] = (char) toupper((int)obj[1]);
                 i = (int)hexc[0];
                 if (!isxdigit(i))
-                    return LDAP_ERR_OOB;                                       /* Out of bounds */
+                    return LDAP_ERR_OOB;                    /* Out of bounds */
                 hexc[1] = (char) toupper((int)obj[2]);
                 i = (int)hexc[1];
                 if (!isxdigit(i))
-                    return LDAP_ERR_OOB;                                       /* Out of bounds */
+                    return LDAP_ERR_OOB;                    /* Out of bounds */
                 hexc[2] = '\0';
                 strncat(l->search_ip, hexc, 2);
                 break;
@@ -936,11 +936,11 @@ ConvertIP(edui_ldap_t *l, char *ip)
                 hexc[0] = (char) toupper((int)obj[0]);
                 i = (int)hexc[0];
                 if (!isxdigit(i))
-                    return LDAP_ERR_OOB;                                       /* Out of bounds */
+                    return LDAP_ERR_OOB;                    /* Out of bounds */
                 hexc[1] = (char) toupper((int)obj[1]);
                 i = (int)hexc[1];
                 if (!isxdigit(i))
-                    return LDAP_ERR_OOB;                                       /* Out of bounds */
+                    return LDAP_ERR_OOB;                    /* Out of bounds */
                 hexc[2] = '\0';
                 strncat(l->search_ip, hexc, 2);
                 break;
@@ -950,7 +950,7 @@ ConvertIP(edui_ldap_t *l, char *ip)
                 hexc[1] = (char) toupper((int)obj[0]);
                 i = (int)hexc[1];
                 if (!isxdigit(i))
-                    return LDAP_ERR_OOB;                                       /* Out of bounds */
+                    return LDAP_ERR_OOB;                    /* Out of bounds */
                 hexc[2] = '\0';
                 strncat(l->search_ip, hexc, 2);
                 break;
@@ -969,8 +969,8 @@ ConvertIP(edui_ldap_t *l, char *ip)
                     if (bufb[i] == ':')
                         ++j;
                 }
-                --j;                                                           /* Preceding "::" doesn't count */
-                t = 8 - (strlen(l->search_ip) / 4) - j;                        /* Remainder */
+                --j;                                /* Preceding "::" doesn't count */
+                t = 8 - (strlen(l->search_ip) / 4) - j;         /* Remainder */
                 if (t > 0) {
                     for (i = 0; i < t; ++i)
                         strncat(l->search_ip, "0000", 4);
@@ -1067,10 +1067,10 @@ SearchFilterLDAP(edui_ldap_t *l, char *group)
     int swi;
     char bufa[EDUI_MAXLEN], bufb[EDUI_MAXLEN], bufc[EDUI_MAXLEN], bufd[EDUI_MAXLEN], bufg[EDUI_MAXLEN];
     if (l == NULL) return LDAP_ERR_NULL;
-    if (!(l->status & LDAP_INIT_S)) return LDAP_ERR_INIT;                      /* Not initalized */
-    if (!(l->status & LDAP_OPEN_S)) return LDAP_ERR_OPEN;                      /* Not open */
-    if (!(l->status & LDAP_BIND_S)) return LDAP_ERR_BIND;                      /* Not Bound */
-    if (l->search_ip[0] == '\0') return LDAP_ERR_DATA;                         /* Search IP is required */
+    if (!(l->status & LDAP_INIT_S)) return LDAP_ERR_INIT;           /* Not initalized */
+    if (!(l->status & LDAP_OPEN_S)) return LDAP_ERR_OPEN;           /* Not open */
+    if (!(l->status & LDAP_BIND_S)) return LDAP_ERR_BIND;           /* Not Bound */
+    if (l->search_ip[0] == '\0') return LDAP_ERR_DATA;              /* Search IP is required */
 
     /* Zero out if not already */
     memset(bufa, '\0', sizeof(bufa));
@@ -1160,15 +1160,15 @@ SearchLDAP(edui_ldap_t *l, int scope, char *filter, char **attrs)
     int s;
     char ft[EDUI_MAXLEN];
     if (l == NULL) return LDAP_ERR_NULL;
-    if ((scope < 0) || (filter == NULL)) return LDAP_ERR_PARAM;                /* If attrs is NULL, then all attrs will return */
+    if ((scope < 0) || (filter == NULL)) return LDAP_ERR_PARAM;     /* If attrs is NULL, then all attrs will return */
     if (l->lp == NULL) return LDAP_ERR_POINTER;
-    if (!(l->status & LDAP_INIT_S)) return LDAP_ERR_INIT;              /* Not initalized */
-    if (!(l->status & LDAP_OPEN_S)) return LDAP_ERR_OPEN;              /* Not open */
-    if (!(l->status & LDAP_BIND_S)) return LDAP_ERR_BIND;              /* Not bound */
-    if (l->status & LDAP_SEARCH_S) return LDAP_ERR_SEARCHED;           /* Already searching */
-    if (l->basedn[0] == '\0') return LDAP_ERR_DATA;                    /* We require a basedn */
+    if (!(l->status & LDAP_INIT_S)) return LDAP_ERR_INIT;       /* Not initalized */
+    if (!(l->status & LDAP_OPEN_S)) return LDAP_ERR_OPEN;       /* Not open */
+    if (!(l->status & LDAP_BIND_S)) return LDAP_ERR_BIND;       /* Not bound */
+    if (l->status & LDAP_SEARCH_S) return LDAP_ERR_SEARCHED;        /* Already searching */
+    if (l->basedn[0] == '\0') return LDAP_ERR_DATA;         /* We require a basedn */
     if (l->lm != NULL)
-        ldap_msgfree(l->lm);                                           /* Make sure l->lm is empty */
+        ldap_msgfree(l->lm);                        /* Make sure l->lm is empty */
 
     xstrncpy(ft, filter, sizeof(ft));
 
@@ -1189,10 +1189,10 @@ SearchLDAP(edui_ldap_t *l, int scope, char *filter, char **attrs)
         break;
     }
     if (s == LDAP_SUCCESS) {
-        l->status |= (LDAP_SEARCH_S);                                  /* Mark as searched */
+        l->status |= (LDAP_SEARCH_S);                   /* Mark as searched */
         l->err = s;
-        l->idle_time = 0;                                              /* Connection in use, reset idle timer */
-        l->num_ent = ldap_count_entries(l->lp, l->lm);                 /* Counted */
+        l->idle_time = 0;                       /* Connection in use, reset idle timer */
+        l->num_ent = ldap_count_entries(l->lp, l->lm);          /* Counted */
         return LDAP_ERR_SUCCESS;
     } else {
         l->err = s;
@@ -1219,29 +1219,29 @@ SearchIPLDAP(edui_ldap_t *l)
     LDAPMessage *ent;
     if (l == NULL) return LDAP_ERR_NULL;
     if (l->lp == NULL) return LDAP_ERR_POINTER;
-    if (!(l->status & LDAP_INIT_S)) return LDAP_ERR_INIT;                              /* Not initalized */
-    if (!(l->status & LDAP_OPEN_S)) return LDAP_ERR_OPEN;                              /* Not open */
-    if (!(l->status & LDAP_BIND_S)) return LDAP_ERR_BIND;                              /* Not bound */
-    if (!(l->status & LDAP_SEARCH_S)) return LDAP_ERR_NOT_SEARCHED;                    /* Not searched */
+    if (!(l->status & LDAP_INIT_S)) return LDAP_ERR_INIT;               /* Not initalized */
+    if (!(l->status & LDAP_OPEN_S)) return LDAP_ERR_OPEN;               /* Not open */
+    if (!(l->status & LDAP_BIND_S)) return LDAP_ERR_BIND;               /* Not bound */
+    if (!(l->status & LDAP_SEARCH_S)) return LDAP_ERR_NOT_SEARCHED;         /* Not searched */
     if (l->num_ent <= 0) {
         debug("l->num_ent: %d\n", l->num_ent);
-        return LDAP_ERR_DATA;                                                          /* No entries found */
+        return LDAP_ERR_DATA;                               /* No entries found */
     }
     if (l->val != NULL)
-        ldap_value_free_len(l->val);                                                   /* Clear data before populating */
+        ldap_value_free_len(l->val);                            /* Clear data before populating */
     l->num_val = 0;
     if (l->status & LDAP_VAL_S)
-        l->status &= ~(LDAP_VAL_S);                                                    /* Clear VAL bit */
+        l->status &= ~(LDAP_VAL_S);                         /* Clear VAL bit */
     if (edui_conf.attrib[0] == '\0')
-        xstrncpy(edui_conf.attrib, "cn", sizeof(edui_conf.attrib));                    /* Make sure edui_conf.attrib is set */
+        xstrncpy(edui_conf.attrib, "cn", sizeof(edui_conf.attrib));         /* Make sure edui_conf.attrib is set */
 
     /* Sift through entries */
     struct berval **ber = NULL;
     for (ent = ldap_first_entry(l->lp, l->lm); ent != NULL; ent = ldap_next_entry(l->lp, ent)) {
         l->val = ldap_get_values_len(l->lp, ent, "networkAddress");
-        ber = ldap_get_values_len(l->lp, ent, edui_conf.attrib);                       /* edui_conf.attrib is the <userid> mapping */
+        ber = ldap_get_values_len(l->lp, ent, edui_conf.attrib);            /* edui_conf.attrib is the <userid> mapping */
         if (l->val != NULL) {
-            x = ldap_count_values_len(l->val);                                         /* We got x values ... */
+            x = ldap_count_values_len(l->val);                      /* We got x values ... */
             l->num_val = x;
             if (x > 0) {
                 /* Display all values */
@@ -1250,21 +1250,21 @@ SearchIPLDAP(edui_ldap_t *l)
                     memcpy(bufa, l->val[i]->bv_val, j);
                     z = BinarySplit(bufa, j, '#', bufb, sizeof(bufb));
                     /* BINARY DEBUGGING *
-                                                 local_printfx("value[%" PRIuSIZE "]: BinarySplit(", (size_t) i);
-                                                 for (k = 0; k < z; ++k) {
-                                                   c = (int) bufb[k];
-                                                   if (c < 0)
-                                                     c = c + 256;
-                                                   local_printfx("%02X", c);
-                                                 }
-                                                 local_printfx(", ");
-                                                 for (k = 0; k < (j - z - 1); ++k) {
-                                                   c = (int) bufa[k];
-                                                   if (c < 0)
-                                                     c = c + 256;
-                                                   local_printfx("%02X", c);
-                                                 }
-                                                 local_printfx("): %" PRIuSIZE "\n", (size_t) z);
+                                              local_printfx("value[%" PRIuSIZE "]: BinarySplit(", (size_t) i);
+                                              for (k = 0; k < z; ++k) {
+                                                c = (int) bufb[k];
+                                                if (c < 0)
+                                                  c = c + 256;
+                                                local_printfx("%02X", c);
+                                              }
+                                              local_printfx(", ");
+                                              for (k = 0; k < (j - z - 1); ++k) {
+                                                c = (int) bufa[k];
+                                                if (c < 0)
+                                                  c = c + 256;
+                                                local_printfx("%02X", c);
+                                              }
+                                              local_printfx("): %" PRIuSIZE "\n", (size_t) z);
                     * BINARY DEBUGGING */
                     z = j - z - 1;
                     j = atoi(bufb);
@@ -1272,7 +1272,7 @@ SearchIPLDAP(edui_ldap_t *l)
                         /* IPv4 address (eDirectory 8.7 and below) */
                         /* bufa is the address, just compare it */
                         if (!(l->status & LDAP_IPV4_S) || (l->status & LDAP_IPV6_S))
-                            break;                                                     /* Not looking for IPv4 */
+                            break;                          /* Not looking for IPv4 */
                         for (k = 0; k < z; ++k) {
                             c = (int) bufa[k];
                             if (c < 0)
@@ -1300,14 +1300,14 @@ SearchIPLDAP(edui_ldap_t *l)
                             l->num_val = 0;
                             l->err = LDAP_SUCCESS;
                             l->status &= ~(LDAP_SEARCH_S);
-                            return LDAP_ERR_SUCCESS;                           /* We got our userid */
+                            return LDAP_ERR_SUCCESS;                /* We got our userid */
                         }
                         /* Not matched, continue */
                     } else if ((j == 8) || (j == 9)) {
                         /* IPv4 (UDP/TCP) address (eDirectory 8.8 and higher) */
                         /* bufa + 2 is the address (skip 2 digit port) */
                         if (!(l->status & LDAP_IPV4_S) || (l->status & LDAP_IPV6_S))
-                            break;                                                     /* Not looking for IPv4 */
+                            break;                          /* Not looking for IPv4 */
                         for (k = 2; k < z; ++k) {
                             c = (int) bufa[k];
                             if (c < 0)
@@ -1335,14 +1335,14 @@ SearchIPLDAP(edui_ldap_t *l)
                             l->num_val = 0;
                             l->err = LDAP_SUCCESS;
                             l->status &= ~(LDAP_SEARCH_S);
-                            return LDAP_ERR_SUCCESS;                           /* We got our userid */
+                            return LDAP_ERR_SUCCESS;                /* We got our userid */
                         }
                         /* Not matched, continue */
                     } else if ((j == 10) || (j == 11)) {
                         /* IPv6 (UDP/TCP) address (eDirectory 8.8 and higher) */
                         /* bufa + 2 is the address (skip 2 digit port) */
                         if (!(l->status & LDAP_IPV6_S))
-                            break;                                                     /* Not looking for IPv6 */
+                            break;                          /* Not looking for IPv6 */
                         for (k = 2; k < z; ++k) {
                             c = (int) bufa[k];
                             if (c < 0)
@@ -1370,11 +1370,11 @@ SearchIPLDAP(edui_ldap_t *l)
                             l->num_val = 0;
                             l->err = LDAP_SUCCESS;
                             l->status &= ~(LDAP_SEARCH_S);
-                            return LDAP_ERR_SUCCESS;                           /* We got our userid */
+                            return LDAP_ERR_SUCCESS;                /* We got our userid */
                         }
                         /* Not matched, continue */
                     }
-//                 else {
+//          else {
                     /* Others are unsupported */
 //                    }
                 }
@@ -1405,7 +1405,7 @@ SearchIPLDAP(edui_ldap_t *l)
     l->num_val = 0;
     l->err = LDAP_NO_SUCH_OBJECT;
     l->status &= ~(LDAP_SEARCH_S);
-    return LDAP_ERR_NOTFOUND;                                          /* Not found ... Sorry :) */
+    return LDAP_ERR_NOTFOUND;                       /* Not found ... Sorry :) */
 }
 
 /*
@@ -1531,27 +1531,27 @@ MainSafe(int argc, char **argv)
                         return 1;
                     case 'd':
                         if (!(edui_conf.mode & EDUI_MODE_DEBUG))
-                            edui_conf.mode |= EDUI_MODE_DEBUG;         /* Don't set mode more than once */
-                        debug_enabled = 1;                             /* Official Squid-3 Debug Mode */
+                            edui_conf.mode |= EDUI_MODE_DEBUG;      /* Don't set mode more than once */
+                        debug_enabled = 1;              /* Official Squid-3 Debug Mode */
                         break;
                     case '4':
                         if (!(edui_conf.mode & EDUI_MODE_IPV4) || !(edui_conf.mode & EDUI_MODE_IPV6))
-                            edui_conf.mode |= EDUI_MODE_IPV4;          /* Don't set mode more than once */
+                            edui_conf.mode |= EDUI_MODE_IPV4;       /* Don't set mode more than once */
                         break;
                     case '6':
                         if (!(edui_conf.mode & EDUI_MODE_IPV4) || !(edui_conf.mode & EDUI_MODE_IPV6))
-                            edui_conf.mode |= EDUI_MODE_IPV6;          /* Don't set mode more than once */
+                            edui_conf.mode |= EDUI_MODE_IPV6;       /* Don't set mode more than once */
                         break;
                     case 'Z':
                         if (!(edui_conf.mode & EDUI_MODE_TLS))
-                            edui_conf.mode |= EDUI_MODE_TLS;           /* Don't set mode more than once */
+                            edui_conf.mode |= EDUI_MODE_TLS;        /* Don't set mode more than once */
                         break;
                     case 'P':
                         if (!(edui_conf.mode & EDUI_MODE_PERSIST))
-                            edui_conf.mode |= EDUI_MODE_PERSIST;       /* Don't set mode more than once */
+                            edui_conf.mode |= EDUI_MODE_PERSIST;    /* Don't set mode more than once */
                         break;
                     case 'v':
-                        ++i;                                           /* Set LDAP version */
+                        ++i;                        /* Set LDAP version */
                         if (argv[i] != NULL) {
                             edui_conf.ver = atoi(argv[i]);
                             if (edui_conf.ver < 1)
@@ -1565,7 +1565,7 @@ MainSafe(int argc, char **argv)
                         }
                         break;
                     case 't':
-                        ++i;                                           /* Set Persistent timeout */
+                        ++i;                        /* Set Persistent timeout */
                         if (argv[i] != NULL) {
                             edui_conf.persist_timeout = atoi(argv[i]);
                             if (edui_conf.persist_timeout < 0)
@@ -1577,7 +1577,7 @@ MainSafe(int argc, char **argv)
                         }
                         break;
                     case 'b':
-                        ++i;                                           /* Set Base DN */
+                        ++i;                        /* Set Base DN */
                         if (argv[i] != NULL)
                             xstrncpy(edui_conf.basedn, argv[i], sizeof(edui_conf.basedn));
                         else {
@@ -1587,7 +1587,7 @@ MainSafe(int argc, char **argv)
                         }
                         break;
                     case 'H':
-                        ++i;                                           /* Set Hostname */
+                        ++i;                        /* Set Hostname */
                         if (argv[i] != NULL)
                             xstrncpy(edui_conf.host, argv[i], sizeof(edui_conf.host));
                         else {
@@ -1597,7 +1597,7 @@ MainSafe(int argc, char **argv)
                         }
                         break;
                     case 'p':
-                        ++i;                                           /* Set port */
+                        ++i;                        /* Set port */
                         if (argv[i] != NULL)
                             edui_conf.port = atoi(argv[i]);
                         else {
@@ -1607,7 +1607,7 @@ MainSafe(int argc, char **argv)
                         }
                         break;
                     case 'D':
-                        ++i;                                           /* Set Bind DN */
+                        ++i;                        /* Set Bind DN */
                         if (argv[i] != NULL)
                             xstrncpy(edui_conf.dn, argv[i], sizeof(edui_conf.dn));
                         else {
@@ -1617,7 +1617,7 @@ MainSafe(int argc, char **argv)
                         }
                         break;
                     case 'W':
-                        ++i;                                           /* Set Bind PWD */
+                        ++i;                        /* Set Bind PWD */
                         if (argv[i] != NULL)
                             xstrncpy(edui_conf.passwd, argv[i], sizeof(edui_conf.passwd));
                         else {
@@ -1627,7 +1627,7 @@ MainSafe(int argc, char **argv)
                         }
                         break;
                     case 'F':
-                        ++i;                                           /* Set Search Filter */
+                        ++i;                        /* Set Search Filter */
                         if (argv[i] != NULL)
                             xstrncpy(edui_conf.search_filter, argv[i], sizeof(edui_conf.search_filter));
                         else {
@@ -1638,10 +1638,10 @@ MainSafe(int argc, char **argv)
                         break;
                     case 'G':
                         if (!(edui_conf.mode & EDUI_MODE_GROUP))
-                            edui_conf.mode |= EDUI_MODE_GROUP;         /* Don't set mode more than once */
+                            edui_conf.mode |= EDUI_MODE_GROUP;      /* Don't set mode more than once */
                         break;
                     case 's':
-                        ++i;                                           /* Set Scope Level */
+                        ++i;                        /* Set Scope Level */
                         if (argv[i] != NULL) {
                             if (!strncmp(argv[i], "base", 4))
                                 edui_conf.scope = 0;
@@ -1650,7 +1650,7 @@ MainSafe(int argc, char **argv)
                             else if (!strncmp(argv[i], "sub", 4))
                                 edui_conf.scope = 2;
                             else
-                                edui_conf.scope = 1;                   /* Default is 'one' */
+                                edui_conf.scope = 1;            /* Default is 'one' */
                         } else {
                             local_printfx("No parameters given for 's'.\n");
                             DisplayUsage();
@@ -1658,7 +1658,7 @@ MainSafe(int argc, char **argv)
                         }
                         break;
                     case 'u':
-                        ++i;                                           /* Set Search Attribute */
+                        ++i;                        /* Set Search Attribute */
                         if (argv[i] != NULL) {
                             xstrncpy(edui_conf.attrib, argv[i], sizeof(edui_conf.attrib));
                         } else {
@@ -1667,7 +1667,7 @@ MainSafe(int argc, char **argv)
                             return 1;
                         }
                         break;
-                    case '-':                                          /* We got a second '-' ... ignore */
+                    case '-':                       /* We got a second '-' ... ignore */
                         break;
                     default:
                         local_printfx("Invalid parameter - '%c'.\n", argv[i][j]);
@@ -1683,22 +1683,22 @@ MainSafe(int argc, char **argv)
     }
 
     /* Set predefined required paremeters if none are given, localhost:LDAP_PORT, etc */
-    if (edui_conf.host[0] == '\0')                             /* Default to localhost */
+    if (edui_conf.host[0] == '\0')              /* Default to localhost */
         xstrncpy(edui_conf.host, "localhost", sizeof(edui_conf.host));
     if (edui_conf.port < 0)
-        edui_conf.port = LDAP_PORT;                            /* Default: LDAP_PORT */
+        edui_conf.port = LDAP_PORT;             /* Default: LDAP_PORT */
     if ((edui_conf.mode & EDUI_MODE_IPV4) && (edui_conf.mode & EDUI_MODE_IPV6))
-        edui_conf.mode &= ~(EDUI_MODE_IPV6);                   /* Default to IPv4 */
+        edui_conf.mode &= ~(EDUI_MODE_IPV6);            /* Default to IPv4 */
     if (edui_conf.ver < 0)
         edui_conf.ver = 2;
     if (!(edui_conf.mode & EDUI_MODE_TLS))
-        edui_conf.mode |= EDUI_MODE_TLS;                       /* eDirectory requires TLS mode */
+        edui_conf.mode |= EDUI_MODE_TLS;            /* eDirectory requires TLS mode */
     if ((edui_conf.mode & EDUI_MODE_TLS) && (edui_conf.ver < 3))
-        edui_conf.ver = 3;                                     /* TLS requires version 3 */
+        edui_conf.ver = 3;                  /* TLS requires version 3 */
     if (edui_conf.persist_timeout < 0)
-        edui_conf.persist_timeout = 600;                       /* Default: 600 seconds (10 minutes) */
+        edui_conf.persist_timeout = 600;            /* Default: 600 seconds (10 minutes) */
     if (edui_conf.scope < 0)
-        edui_conf.scope = 1;                                   /* Default: one */
+        edui_conf.scope = 1;                    /* Default: one */
     if (edui_conf.search_filter[0] == '\0')
         xstrncpy(edui_conf.search_filter, "(&(objectclass=User)(networkAddress=*))", sizeof(edui_conf.search_filter));
     if (edui_conf.attrib[0] == '\0')
@@ -1766,7 +1766,7 @@ MainSafe(int argc, char **argv)
         if (!(edui_ldap.status & LDAP_INIT_S)) {
             InitLDAP(&edui_ldap);
             debug("InitLDAP() -> %s\n", ErrLDAP(LDAP_ERR_SUCCESS));
-            if (edui_conf.mode & EDUI_MODE_PERSIST)                                    /* Setup persistant mode */
+            if (edui_conf.mode & EDUI_MODE_PERSIST)                 /* Setup persistant mode */
                 edui_ldap.status |= LDAP_PERSIST_S;
         }
         if ((edui_ldap.status & LDAP_IDLE_S) && (edui_elap > 0)) {
@@ -1880,7 +1880,7 @@ MainSafe(int argc, char **argv)
                                 local_printfx("ERR message=\"(SearchIPLDAP: %s)\"\n", ErrLDAP(x));
                             } else {
                                 debug("SearchIPLDAP(-, %s) -> %s\n", edui_ldap.userid, ErrLDAP(x));
-                                local_printfx("OK user=%s\n", edui_ldap.userid);                       /* Got userid --> OK user=<userid> */
+                                local_printfx("OK user=%s\n", edui_ldap.userid);            /* Got userid --> OK user=<userid> */
                             }
                         }
                         /* Clear for next query */
@@ -1920,7 +1920,7 @@ MainSafe(int argc, char **argv)
                             local_printfx("ERR message=\"(SearchIPLDAP: %s)\"\n", ErrLDAP(x));
                         } else {
                             debug("SearchIPLDAP(-, %s) -> %s\n", edui_ldap.userid, ErrLDAP(x));
-                            local_printfx("OK user=%s\n", edui_ldap.userid);                           /* Got a userid --> OK user=<userid> */
+                            local_printfx("OK user=%s\n", edui_ldap.userid);                /* Got a userid --> OK user=<userid> */
                         }
                     }
                 }
@@ -1950,3 +1950,4 @@ main(int argc, char **argv)
     x = MainSafe(argc, argv);
     return x;
 }
+
index 2f54152a7051604963b4d443646ceafaec9223a3..e5cc1b7572ea042994a1d38303391d8705cfb2b7 100644 (file)
@@ -59,7 +59,7 @@ struct ip_user_dict *load_dict(FILE *);
 int dict_lookup(struct ip_user_dict *, char *, char *);
 
 /** Size of lines read from the dictionary file */
-#define DICT_BUFFER_SIZE       8196
+#define DICT_BUFFER_SIZE    8196
 
 /** This function parses the dictionary file and loads it
  * in memory. All IP addresses are processed with a bitwise AND
@@ -70,14 +70,14 @@ int dict_lookup(struct ip_user_dict *, char *, char *);
  */
 struct ip_user_dict *
 load_dict(FILE * FH) {
-    struct ip_user_dict *current_entry;        /* the structure used to
-                                          store data */
-    struct ip_user_dict *first_entry = NULL;   /* the head of the
-                                                  linked list */
+    struct ip_user_dict *current_entry; /* the structure used to
+                       store data */
+    struct ip_user_dict *first_entry = NULL;    /* the head of the
+                           linked list */
     char line[DICT_BUFFER_SIZE]; /* the buffer for the lines read
-                                  from the dict file */
-    char *tmpbuf;                      /* for the address before the
-                                  bitwise AND */
+                   from the dict file */
+    char *tmpbuf;           /* for the address before the
+                   bitwise AND */
 
     /* the pointer to the first entry in the linked list */
     first_entry = (struct ip_user_dict*)malloc(sizeof(struct ip_user_dict));
@@ -184,15 +184,15 @@ match_user(char *dict_username, char *username)
         }
     }
     return 0;
-}                              /* match_user */
+}               /* match_user */
 
 int
 match_group(char *dict_group, char *username)
 {
-    struct group *g;           /* a struct to hold group entries */
-    ++dict_group;                      /* the @ should be the first char
-                                  so we rip it off by incrementing
-                                  * the pointer by one */
+    struct group *g;        /* a struct to hold group entries */
+    ++dict_group;           /* the @ should be the first char
+                   so we rip it off by incrementing
+                   * the pointer by one */
 
     if ((g = getgrnam(dict_group)) == NULL) {
         debug("Group does not exist '%s'\n", dict_group);
@@ -290,3 +290,4 @@ main (int argc, char *argv[])
     fclose (FH);
     return 0;
 }
+
index 37b7841b766d32743b1d597c435b59ed007a3d95..8ae4359af61fce40ebc6fcd12f4bbd2f2c345975 100644 (file)
@@ -346,7 +346,7 @@ main(int argc, char *const argv[])
 #if HAVE_KRB5
                 krb5_cleanup();
 #endif
-                exit(1);       /* BIIG buffer */
+                exit(1);    /* BIIG buffer */
             }
             SEND_BH("fgets NULL");
             clean_args(&margs);
@@ -483,3 +483,4 @@ main(int argc, char *const argv[])
     }
 }
 #endif
+
index e762e1df4d354905705ebb3658db6bf8694cf370..0fd9479754810b69b81fe8deac11b7782af3730b 100644 (file)
@@ -184,3 +184,4 @@ void krb5_cleanup(void);
 #endif
 
 #define PROGRAM "kerberos_ldap_group"
+
index 137bde529db140dddd00e515f3dca9069c4d13c1..2057a12e1b5bfdf853c915e0a19df0e4d51551b7 100644 (file)
@@ -387,13 +387,13 @@ create_gd(struct main_args *margs)
         cleanup();
         return (1);
     }
-    while (*p) {               /* loop over group list */
-        if (*p == '\n' || *p == '\r') {                /* Ignore CR and LF if exist */
+    while (*p) {        /* loop over group list */
+        if (*p == '\n' || *p == '\r') {     /* Ignore CR and LF if exist */
             ++p;
             continue;
         }
-        if (*p == '@') {       /* end of group name - start of domain name */
-            if (p == gp) {     /* empty group name not allowed */
+        if (*p == '@') {    /* end of group name - start of domain name */
+            if (p == gp) {  /* empty group name not allowed */
                 debug((char *) "%s| %s: ERROR: No group defined for domain %s\n", LogTime(), PROGRAM, p);
                 cleanup();
                 return (1);
@@ -408,40 +408,40 @@ create_gd(struct main_args *margs)
             gdsp = init_gd();
             gdsp->group = xstrdup(gp);
             gdsp->next = gdspn;
-            dp = p;            /* after @ starts new domain name */
-        } else if (*p == ':') {        /* end of group name or end of domain name */
-            if (p == gp) {     /* empty group name not allowed */
+            dp = p;     /* after @ starts new domain name */
+        } else if (*p == ':') { /* end of group name or end of domain name */
+            if (p == gp) {  /* empty group name not allowed */
                 debug((char *) "%s| %s: ERROR: No group defined for domain %s\n", LogTime(), PROGRAM, p);
                 cleanup();
                 return (1);
             }
             *p = '\0';
             ++p;
-            if (dp) {          /* end of domain name */
+            if (dp) {       /* end of domain name */
                 gdsp->domain = xstrdup(dp);
                 dp = NULL;
-            } else {           /* end of group name and no domain name */
+            } else {        /* end of group name and no domain name */
                 gdsp = init_gd();
                 gdsp->group = xstrdup(gp);
                 gdsp->next = gdspn;
             }
             gdspn = gdsp;
-            gp = p;            /* after : starts new group name */
+            gp = p;     /* after : starts new group name */
             debug((char *) "%s| %s: INFO: Group %s  Domain %s\n", LogTime(), PROGRAM, gdsp->group, gdsp->domain ? gdsp->domain : "NULL");
         } else
             ++p;
     }
-    if (p == gp) {             /* empty group name not allowed */
+    if (p == gp) {      /* empty group name not allowed */
         debug((char *) "%s| %s: ERROR: No group defined for domain %s\n", LogTime(), PROGRAM, p);
         cleanup();
         return (1);
     }
-    if (dp) {                  /* end of domain name */
+    if (dp) {           /* end of domain name */
         gdsp->domain = xstrdup(dp);
-    } else {                   /* end of group name and no domain name */
+    } else {            /* end of group name and no domain name */
         gdsp = init_gd();
         gdsp->group = xstrdup(gp);
-        if (gdspn)             /* Have already an existing structure */
+        if (gdspn)      /* Have already an existing structure */
             gdsp->next = gdspn;
     }
     debug((char *) "%s| %s: INFO: Group %s  Domain %s\n", LogTime(), PROGRAM, gdsp->group, gdsp->domain ? gdsp->domain : "NULL");
@@ -452,3 +452,4 @@ create_gd(struct main_args *margs)
     return (0);
 }
 #endif
+
index 240cbd00c6fd02df467433842cf2458185d55245..4f2db6b200543542d0d04c43e28de1eb4e95379d 100644 (file)
@@ -226,9 +226,9 @@ krb5_create_cache(char *domain)
 
         debug((char *) "%s| %s: DEBUG: Get default keytab file name\n", LogTime(), PROGRAM);
         krb5_kt_default_name(kparam.context, buf, KT_PATH_MAX);
-        p = strchr(buf, ':');  /* Find the end if "FILE:" */
+        p = strchr(buf, ':');   /* Find the end if "FILE:" */
         if (p)
-            ++p;                       /* step past : */
+            ++p;            /* step past : */
         keytab_name = xstrdup(p ? p : buf);
         debug((char *) "%s| %s: DEBUG: Got default keytab file name %s\n", LogTime(), PROGRAM, keytab_name);
 
@@ -487,3 +487,4 @@ cleanup:
     return (retval);
 }
 #endif
+
index 3afe03cbcd2c615aa2543fea2760f9823fee5eac..c57687e4871dc3799d47a1c6c5828d0012e6b4fa 100644 (file)
@@ -1389,3 +1389,4 @@ cleanup:
     return (retval);
 }
 #endif
+
index f0683ed3ea7d0060e3f893d4a7939aad5ee8f9e6..e4cda8931bdcd0a4e05617b768d4f0401ff178be 100644 (file)
@@ -91,3 +91,4 @@ warn(char *format,...)
 
 #endif /* __GNUC__ */
 #endif
+
index a0f1163636b7fb39242868e36117764453395adb..6d0427883a928dfcbab4c8ff69a52d41857bdf26 100644 (file)
@@ -86,13 +86,13 @@ create_ls(struct main_args *margs)
         debug((char *) "%s| %s: DEBUG: No ldap servers defined.\n", LogTime(), PROGRAM);
         return (0);
     }
-    while (*p) {               /* loop over group list */
-        if (*p == '\n' || *p == '\r') {                /* Ignore CR and LF if exist */
+    while (*p) {        /* loop over group list */
+        if (*p == '\n' || *p == '\r') {     /* Ignore CR and LF if exist */
             ++p;
             continue;
         }
-        if (*p == '@') {       /* end of group name - start of domain name */
-            if (p == np) {     /* empty group name not allowed */
+        if (*p == '@') {    /* end of group name - start of domain name */
+            if (p == np) {  /* empty group name not allowed */
                 debug((char *) "%s| %s: DEBUG: No ldap servers defined for domain %s\n", LogTime(), PROGRAM, p);
                 free_ls(lssp);
                 return (1);
@@ -107,40 +107,40 @@ create_ls(struct main_args *margs)
             lssp = init_ls();
             lssp->lserver = xstrdup(np);
             lssp->next = lsspn;
-            dp = p;            /* after @ starts new domain name */
-        } else if (*p == ':') {        /* end of group name or end of domain name */
-            if (p == np) {     /* empty group name not allowed */
+            dp = p;     /* after @ starts new domain name */
+        } else if (*p == ':') { /* end of group name or end of domain name */
+            if (p == np) {  /* empty group name not allowed */
                 debug((char *) "%s| %s: DEBUG: No ldap servers defined for domain %s\n", LogTime(), PROGRAM, p);
                 free_ls(lssp);
                 return (1);
             }
             *p = '\0';
             ++p;
-            if (dp) {          /* end of domain name */
+            if (dp) {       /* end of domain name */
                 lssp->domain = xstrdup(dp);
                 dp = NULL;
-            } else {           /* end of group name and no domain name */
+            } else {        /* end of group name and no domain name */
                 lssp = init_ls();
                 lssp->lserver = xstrdup(np);
                 lssp->next = lsspn;
             }
             lsspn = lssp;
-            np = p;            /* after : starts new group name */
+            np = p;     /* after : starts new group name */
             debug((char *) "%s| %s: DEBUG: ldap server %s Domain %s\n", LogTime(), PROGRAM, lssp->lserver, lssp->domain?lssp->domain:"NULL");
         } else
             ++p;
     }
-    if (p == np) {             /* empty group name not allowed */
+    if (p == np) {      /* empty group name not allowed */
         debug((char *) "%s| %s: DEBUG: No ldap servers defined for domain %s\n", LogTime(), PROGRAM, p);
         free_ls(lssp);
         return (1);
     }
-    if (dp) {                  /* end of domain name */
+    if (dp) {           /* end of domain name */
         lssp->domain = xstrdup(dp);
-    } else {                   /* end of group name and no domain name */
+    } else {            /* end of group name and no domain name */
         lssp = init_ls();
         lssp->lserver = xstrdup(np);
-        if (lsspn)             /* Have already an existing structure */
+        if (lsspn)      /* Have already an existing structure */
             lssp->next = lsspn;
     }
     debug((char *) "%s| %s: DEBUG: ldap server %s Domain %s\n", LogTime(), PROGRAM, lssp->lserver, lssp->domain?lssp->domain:"NULL");
@@ -149,3 +149,4 @@ create_ls(struct main_args *margs)
     return (0);
 }
 #endif
+
index 569be0b40e74ed0ca7d533bb7a78f14056336cd0..7b1d9c6ed971e0e1ecfe08779e4d101bbcbe07d8 100644 (file)
@@ -143,3 +143,4 @@ check_memberof(struct main_args *margs, char *user, char *domain)
     return (0);
 }
 #endif
+
index 428cdd27f467e018eb6462175443ab133e6c29e8..80c45aeb018bb1fcf35c62c5ee724f6b0bbda2cc 100644 (file)
@@ -87,13 +87,13 @@ create_nd(struct main_args *margs)
         debug((char *) "%s| %s: DEBUG: No netbios names defined.\n", LogTime(), PROGRAM);
         return (0);
     }
-    while (*p) {               /* loop over group list */
-        if (*p == '\n' || *p == '\r') {                /* Ignore CR and LF if exist */
+    while (*p) {        /* loop over group list */
+        if (*p == '\n' || *p == '\r') {     /* Ignore CR and LF if exist */
             ++p;
             continue;
         }
-        if (*p == '@') {       /* end of group name - start of domain name */
-            if (p == np) {     /* empty group name not allowed */
+        if (*p == '@') {    /* end of group name - start of domain name */
+            if (p == np) {  /* empty group name not allowed */
                 debug((char *) "%s| %s: DEBUG: No netbios name defined for domain %s\n", LogTime(), PROGRAM, p);
                 free_nd(ndsp);
                 return (1);
@@ -108,25 +108,25 @@ create_nd(struct main_args *margs)
             ndsp = init_nd();
             ndsp->netbios = xstrdup(np);
             ndsp->next = ndspn;
-            dp = p;            /* after @ starts new domain name */
-        } else if (*p == ':') {        /* end of group name or end of domain name */
-            if (p == np) {     /* empty group name not allowed */
+            dp = p;     /* after @ starts new domain name */
+        } else if (*p == ':') { /* end of group name or end of domain name */
+            if (p == np) {  /* empty group name not allowed */
                 debug((char *) "%s| %s: DEBUG: No netbios name defined for domain %s\n", LogTime(), PROGRAM, p);
                 free_nd(ndsp);
                 return (1);
             }
             *p = '\0';
             ++p;
-            if (dp) {          /* end of domain name */
+            if (dp) {       /* end of domain name */
                 ndsp->domain = xstrdup(dp);
                 dp = NULL;
-            } else {           /* end of group name and no domain name */
+            } else {        /* end of group name and no domain name */
                 ndsp = init_nd();
                 ndsp->netbios = xstrdup(np);
                 ndsp->next = ndspn;
             }
             ndspn = ndsp;
-            np = p;            /* after : starts new group name */
+            np = p;     /* after : starts new group name */
             if (!ndsp->domain || !strcmp(ndsp->domain, "")) {
                 debug((char *) "%s| %s: DEBUG: No domain defined for netbios name %s\n", LogTime(), PROGRAM, ndsp->netbios);
                 free_nd(ndsp);
@@ -136,14 +136,14 @@ create_nd(struct main_args *margs)
         } else
             ++p;
     }
-    if (p == np) {             /* empty group name not allowed */
+    if (p == np) {      /* empty group name not allowed */
         debug((char *) "%s| %s: DEBUG: No netbios name defined for domain %s\n", LogTime(), PROGRAM, p);
         free_nd(ndsp);
         return (1);
     }
-    if (dp) {                  /* end of domain name */
+    if (dp) {           /* end of domain name */
         ndsp->domain = xstrdup(dp);
-    } else {                   /* end of group name and no domain name */
+    } else {            /* end of group name and no domain name */
         ndsp = init_nd();
         ndsp->netbios = xstrdup(np);
         ndsp->next = ndspn;
@@ -177,3 +177,4 @@ get_netbios_name(struct main_args *margs, char *netbios)
     return NULL;
 }
 #endif
+
index e6387261c723ffaa44e039ec24a98d60fac36e93..cc6f2b7c260910070d992f19650f7d6e790f8a66 100644 (file)
@@ -316,7 +316,7 @@ get_ldap_hostname_list(struct main_args *margs, struct hstruct **hlist, size_t n
         }
     }
     p = buffer;
-    p += 6 * NS_INT16SZ;       /* Header(6*16bit) = id + flags + 4*section count */
+    p += 6 * NS_INT16SZ;    /* Header(6*16bit) = id + flags + 4*section count */
     if (p > buffer + len) {
         error((char *) "%s| %s: ERROR: Message to small: %d < header size\n", LogTime(), PROGRAM, len);
         goto finalise;
@@ -325,8 +325,8 @@ get_ldap_hostname_list(struct main_args *margs, struct hstruct **hlist, size_t n
         error((char *) "%s| %s: ERROR: Error while expanding query name with dn_expand:  %s\n", LogTime(), PROGRAM, strerror(errno));
         goto finalise;
     }
-    p += size;                 /* Query name */
-    p += 2 * NS_INT16SZ;       /* Query type + class (2*16bit) */
+    p += size;          /* Query name */
+    p += 2 * NS_INT16SZ;    /* Query type + class (2*16bit) */
     if (p > buffer + len) {
         error((char *) "%s| %s: ERROR: Message to small: %d < header + query name,type,class \n", LogTime(), PROGRAM, len);
         goto finalise;
@@ -337,37 +337,37 @@ get_ldap_hostname_list(struct main_args *margs, struct hstruct **hlist, size_t n
             error((char *) "%s| %s: ERROR: Error while expanding answer name with dn_expand:  %s\n", LogTime(), PROGRAM, strerror(errno));
             goto finalise;
         }
-        p += size;             /* Resource Record name */
+        p += size;      /* Resource Record name */
         if (p > buffer + len) {
             error((char *) "%s| %s: ERROR: Message to small: %d < header + query name,type,class + answer name\n", LogTime(), PROGRAM, len);
             goto finalise;
         }
-        NS_GET16(type, p);     /* RR type (16bit) */
-        p += NS_INT16SZ + NS_INT32SZ;  /* RR class + ttl (16bit+32bit) */
+        NS_GET16(type, p);  /* RR type (16bit) */
+        p += NS_INT16SZ + NS_INT32SZ;   /* RR class + ttl (16bit+32bit) */
         if (p > buffer + len) {
             error((char *) "%s| %s: ERROR: Message to small: %d < header + query name,type,class + answer name + RR type,class,ttl\n", LogTime(), PROGRAM, len);
             goto finalise;
         }
-        NS_GET16(rdlength, p); /* RR data length (16bit) */
+        NS_GET16(rdlength, p);  /* RR data length (16bit) */
 
-        if (type == ns_t_srv) {        /* SRV record */
+        if (type == ns_t_srv) { /* SRV record */
             int priority, weight, port;
             char host[NS_MAXDNAME];
             if (p > buffer + len) {
                 error((char *) "%s| %s: ERROR: Message to small: %d < header + query name,type,class + answer name + RR type,class,ttl + RR data length\n", LogTime(), PROGRAM, len);
                 goto finalise;
             }
-            NS_GET16(priority, p);     /* Priority (16bit) */
+            NS_GET16(priority, p);  /* Priority (16bit) */
             if (p > buffer + len) {
                 error((char *) "%s| %s: ERROR: Message to small: %d <  SRV RR + priority\n", LogTime(), PROGRAM, len);
                 goto finalise;
             }
-            NS_GET16(weight, p);       /* Weight (16bit) */
+            NS_GET16(weight, p);    /* Weight (16bit) */
             if (p > buffer + len) {
                 error((char *) "%s| %s: ERROR: Message to small: %d <  SRV RR + priority + weight\n", LogTime(), PROGRAM, len);
                 goto finalise;
             }
-            NS_GET16(port, p); /* Port (16bit) */
+            NS_GET16(port, p);  /* Port (16bit) */
             if (p > buffer + len) {
                 error((char *) "%s| %s: ERROR: Message to small: %d <  SRV RR + priority + weight + port\n", LogTime(), PROGRAM, len);
                 goto finalise;
@@ -451,3 +451,4 @@ cleanup:
     return (nhosts);
 }
 #endif
+
index e481260a8095bb6f39bf5c1776857fbc2cfb6cd3..e502360419d60d5ba72084935befac8a10063c1b 100644 (file)
 #include <sasl/sasl.h>
 #elif HAVE_SASL_DARWIN
 typedef struct sasl_interact {
-    unsigned long id;          /* same as client/user callback ID */
-    const char *challenge;     /* presented to user (e.g. OTP challenge) */
-    const char *prompt;                /* presented to user (e.g. "Username: ") */
-    const char *defresult;     /* default result string */
-    const void *result;                /* set to point to result */
-    unsigned len;              /* set to length of result */
+    unsigned long id;       /* same as client/user callback ID */
+    const char *challenge;  /* presented to user (e.g. OTP challenge) */
+    const char *prompt;     /* presented to user (e.g. "Username: ") */
+    const char *defresult;  /* default result string */
+    const void *result;     /* set to point to result */
+    unsigned len;       /* set to length of result */
 } sasl_interact_t;
 
-#define SASL_CB_USER         0x4001    /* client user identity to login as */
-#define SASL_CB_AUTHNAME     0x4002    /* client authentication name */
-#define SASL_CB_PASS         0x4004    /* client passphrase-based secret */
-#define SASL_CB_ECHOPROMPT   0x4005    /* challenge and client enterred result */
-#define SASL_CB_NOECHOPROMPT 0x4006    /* challenge and client enterred result */
-#define SASL_CB_GETREALM     0x4008    /* realm to attempt authentication in */
-#define SASL_CB_LIST_END   0   /* end of list */
+#define SASL_CB_USER         0x4001 /* client user identity to login as */
+#define SASL_CB_AUTHNAME     0x4002 /* client authentication name */
+#define SASL_CB_PASS         0x4004 /* client passphrase-based secret */
+#define SASL_CB_ECHOPROMPT   0x4005 /* challenge and client enterred result */
+#define SASL_CB_NOECHOPROMPT 0x4006 /* challenge and client enterred result */
+#define SASL_CB_GETREALM     0x4008 /* realm to attempt authentication in */
+#define SASL_CB_LIST_END   0    /* end of list */
 #endif
 
 #if HAVE_SASL_H || HAVE_SASL_SASL_H || HAVE_SASL_DARWIN
@@ -287,3 +287,4 @@ dummy(void)
 
 #endif
 #endif
+
index 18fee814ba2b2be5c0150f2ccb9b55e723b16dff..c65d78e1dc993e3c2a7920d544da7cf5a36af690 100644 (file)
@@ -233,3 +233,4 @@ int main(int argc, char **argv)
     shutdown_db();
     return 0;
 }
+
index ab9fcbe411b847f8e8342b17d1b7c8b89533277a..102c212ca9d4565cf21f594501ec8698d7306dd4 100644 (file)
@@ -253,10 +253,10 @@ static void parseTime(const char *s, time_t *secs, time_t *start)
 static void readConfig(const char *filename)
 {
     char line[TQ_BUFFERSIZE];        /* the buffer for the lines read
-                                  from the dict file */
-    char *cp;                  /* a char pointer used to parse
-                                  each line */
-    char *username;            /* for the username */
+                   from the dict file */
+    char *cp;           /* a char pointer used to parse
+                   each line */
+    char *username;     /* for the username */
     char *budget;
     char *period;
     FILE *FH;
@@ -461,3 +461,4 @@ int main(int argc, char **argv)
     shutdown_db();
     return 0;
 }
+
index ccd63395b68eced85a4f67915c0e8f4b0ba67e97..a221a9acd481b26c3155d4783ed73b6a1bb64f3c 100644 (file)
@@ -176,7 +176,7 @@ main(int argc, char *argv[])
             } else {
                 fprintf(stderr, "Unknown option character `\\x%x'.\n", optopt);
             }
-            // fall through to display help texts.
+        // fall through to display help texts.
 
         default:
             usage(argv[0]);
@@ -238,3 +238,4 @@ main(int argc, char *argv[])
     }
     return 0;
 }
+
index e6445e63888c86e65e7d9d2f93cdb632ddefc51b..36e3b16f5986de391fbc6cf23f50de938e5def0f 100644 (file)
@@ -31,7 +31,7 @@
 #include "defines.h"
 
 /* parse buffer - ie, length of longest expected line */
-#define        LOGFILE_BUF_LEN         65536
+#define LOGFILE_BUF_LEN     65536
 
 static void
 rotate(const char *path, int rotate_count)
@@ -176,3 +176,4 @@ main(int argc, char *argv[])
     fp = NULL;
     exit(0);
 }
+
index 6ec38082e46368625f6dd09909dbfbdefa5e2c06..b92d8ad6e3aab1728434f84c65e2901e6f2d73d0 100644 (file)
@@ -115,7 +115,7 @@ process_options(int argc, char *argv[])
             exit(0);
         case '?':
             opt = optopt;
-            /* fall thru to default */
+        /* fall thru to default */
         default:
             fprintf(stderr, "ERROR: unknown option: -%c. Exiting\n", opt);
             usage();
@@ -166,10 +166,10 @@ try_again:
     } else
         debug("Got '%s' from Squid\n", buf);
 
-    if (memcmp(buf, "YR ", 3) == 0) {  /* refresh-request */
+    if (memcmp(buf, "YR ", 3) == 0) {   /* refresh-request */
         /* figure out what we got */
         decodedLen = base64_decode(decoded, sizeof(decoded), buf + 3);
-        if ((size_t)decodedLen < sizeof(ntlmhdr)) {            /* decoding failure, return error */
+        if ((size_t)decodedLen < sizeof(ntlmhdr)) {     /* decoding failure, return error */
             SEND("NA * Packet format error, couldn't base64-decode");
             return 1;
         }
@@ -178,7 +178,7 @@ try_again:
 
         if (status == SSP_OK) {
             if (Done) {
-                lc(cred);      /* let's lowercase them for our convenience */
+                lc(cred);   /* let's lowercase them for our convenience */
                 have_serverblob = 0;
                 Done = FALSE;
                 if (Negotiate_packet_debug_enabled) {
@@ -206,14 +206,14 @@ try_again:
             SEND("BH can't obtain server blob");
         return 1;
     }
-    if (memcmp(buf, "KK ", 3) == 0) {  /* authenticate-request */
+    if (memcmp(buf, "KK ", 3) == 0) {   /* authenticate-request */
         if (!have_serverblob) {
             SEND("BH invalid server blob");
             return 1;
         }
         /* figure out what we got */
         decodedLen = base64_decode(decoded, sizeof(decoded), buf+3);
-        if ((size_t)decodedLen < sizeof(ntlmhdr)) {            /* decoding failure, return error */
+        if ((size_t)decodedLen < sizeof(ntlmhdr)) {     /* decoding failure, return error */
             SEND("NA * Packet format error, couldn't base64-decode");
             return 1;
         }
@@ -225,7 +225,7 @@ try_again:
                           FORMAT_MESSAGE_IGNORE_INSERTS,
                           NULL,
                           GetLastError(),
-                          MAKELANGID(LANG_NEUTRAL, SUBLANG_DEFAULT),   /* Default language */
+                          MAKELANGID(LANG_NEUTRAL, SUBLANG_DEFAULT),    /* Default language */
                           (LPTSTR) & ErrorMessage,
                           0,
                           NULL);
@@ -238,7 +238,7 @@ try_again:
             return 1;
         }
         if (Done) {
-            lc(cred);          /* let's lowercase them for our convenience */
+            lc(cred);       /* let's lowercase them for our convenience */
             have_serverblob = 0;
             Done = FALSE;
             if (Negotiate_packet_debug_enabled) {
@@ -264,7 +264,7 @@ try_again:
             return 1;
         }
 
-    } else {                   /* not an auth-request */
+    } else {            /* not an auth-request */
         SEND("BH illegal request received");
         fprintf(stderr, "Illegal request received: '%s'\n", buf);
         return 1;
@@ -300,3 +300,4 @@ main(int argc, char *argv[])
     }
     exit(0);
 }
+
index 85208cdcc06247b914fe131114cb78d7c93b02a8..14d070543371331e9a2e433c27b963314c56fb43 100644 (file)
@@ -161,3 +161,4 @@ char *get_ad_groups(char *ad_groups, krb5_context context, krb5_pac pac);
 #else
 #define HAVE_PAC_SUPPORT 0
 #endif
+
index e3f836d0163b9d9d96b4007190d20ab18453643d..58bd591cd382d08531b185a211d22783e05a85e2 100644 (file)
@@ -392,12 +392,12 @@ main(int argc, char *const argv[])
             struct stat fstat;
             char *ktp;
 #endif
-           if (optarg)
+            if (optarg)
                 keytab_name = xstrdup(optarg);
-           else {
+            else {
                 fprintf(stderr, "ERROR: keytab file not given\n");
-               exit(1);
-           }
+                exit(1);
+            }
             /*
              * Some sanity checks
              */
@@ -428,12 +428,12 @@ main(int argc, char *const argv[])
 #if HAVE_SYS_STAT_H
             struct stat dstat;
 #endif
-           if (optarg)
+            if (optarg)
                 rcache_dir = xstrdup(optarg);
-           else {
+            else {
                 fprintf(stderr, "ERROR: replay cache directory not given\n");
-               exit(1);
-           }
+                exit(1);
+            }
             /*
              * Some sanity checks
              */
@@ -457,20 +457,20 @@ main(int argc, char *const argv[])
 #endif
             break;
         case 't':
-           if (optarg)
+            if (optarg)
                 rcache_type = xstrdup(optarg);
-           else {
+            else {
                 fprintf(stderr, "ERROR: replay cache type not given\n");
-               exit(1);
-           }
+                exit(1);
+            }
             break;
         case 's':
-           if (optarg)
+            if (optarg)
                 service_principal = xstrdup(optarg);
-           else {
+            else {
                 fprintf(stderr, "ERROR: service principal not given\n");
-               exit(1);
-           }
+                exit(1);
+            }
             break;
         default:
             fprintf(stderr, "Usage: \n");
@@ -589,7 +589,7 @@ main(int argc, char *const argv[])
                       strerror(ferror(stdin)));
 
                 fprintf(stdout, "BH input error\n");
-                exit(1);       /* BIIG buffer */
+                exit(1);    /* BIIG buffer */
             }
             fprintf(stdout, "BH input error\n");
             exit(0);
@@ -871,3 +871,4 @@ main(int argc, char *const argv[])
     }
 }
 #endif /* HAVE_GSSAPI */
+
index 455edf71b15fbd02af9da0d16ec2373d35236aa2..c5031ceb2aea7cab491be6d627bf1d6d06db7cd3 100644 (file)
@@ -251,3 +251,4 @@ main(int argc, char *argv[])
 }
 
 #endif /* HAVE_GSSAPI */
+
index 3b8ebc4fcbd5f1b0ba2838d46745b013a0063a13..d084ee4a18ea5e1679f33926d28ec644444a5023 100644 (file)
@@ -462,3 +462,4 @@ k5clean:
     return NULL;
 }
 #endif
+
index ccb1fcf3d7a9eea4e0bfae7a2a0ab24073473d4d..ef6a5487a4254d2aa6d88b17392aa6702bf1bb62 100644 (file)
@@ -401,3 +401,4 @@ main(int argc, char *const argv[])
 
     return 1;
 }
+
index 36dda7d8433a82e61c827eface624609016e6333..fc17f25345af9282102cec331eecb86cb7f70e34 100644 (file)
@@ -107,8 +107,8 @@ int
 Valid_Group(char *UserName, char *Group)
 {
     int result = FALSE;
-    WCHAR wszUserName[UNLEN+1];        // Unicode user name
-    WCHAR wszGroup[GNLEN+1];   // Unicode Group
+    WCHAR wszUserName[UNLEN+1]; // Unicode user name
+    WCHAR wszGroup[GNLEN+1];    // Unicode Group
 
     LPLOCALGROUP_USERS_INFO_0 pBuf = NULL;
     LPLOCALGROUP_USERS_INFO_0 pTmpBuf;
@@ -290,7 +290,7 @@ ntlm_check_auth(ntlm_authenticate * auth, char *user, char *domain, int auth_len
 {
     int x;
     int rv;
-    char credentials[DNLEN+UNLEN+2];   /* we can afford to waste */
+    char credentials[DNLEN+UNLEN+2];    /* we can afford to waste */
 
     if (!NTLM_LocalCall) {
 
@@ -320,7 +320,7 @@ ntlm_check_auth(ntlm_authenticate * auth, char *user, char *domain, int auth_len
 
     debug("Login attempt had result %d\n", rv);
 
-    if (!rv) {                 /* failed */
+    if (!rv) {          /* failed */
         return NTLM_SSPI_ERROR;
     }
 
@@ -402,7 +402,7 @@ process_options(int argc, char *argv[])
             exit(0);
         case '?':
             opt = optopt;
-            /* fall thru to default */
+        /* fall thru to default */
         default:
             fprintf(stderr, "unknown option: -%c. Exiting\n", opt);
             usage();
@@ -430,7 +430,7 @@ manage_request()
     /* NP: for some reason this helper sometimes needs to accept
      * from clients that send no negotiate packet. */
     if (memcpy(local_nego.hdr.signature, "NTLMSSP", 8) != 0) {
-        memset(&local_nego, 0, sizeof(ntlm_negotiate));        /* reset */
+        memset(&local_nego, 0, sizeof(ntlm_negotiate)); /* reset */
         memcpy(local_nego.hdr.signature, "NTLMSSP", 8);     /* set the signature */
         local_nego.hdr.type = le32toh(NTLM_NEGOTIATE);      /* this is a challenge */
         local_nego.flags = le32toh(NTLM_NEGOTIATE_ALWAYS_SIGN |
@@ -465,7 +465,7 @@ manage_request()
         hex_dump(reinterpret_cast<unsigned char*>(decoded), decodedLen);
     } else
         debug("Got '%s' from Squid\n", buf);
-    if (memcmp(buf, "YR", 2) == 0) {   /* refresh-request */
+    if (memcmp(buf, "YR", 2) == 0) {    /* refresh-request */
         /* figure out what we got */
         if (strlen(buf) > 3)
             decodedLen = base64_decode(decoded, sizeof(decoded), buf+3);
@@ -474,7 +474,7 @@ manage_request()
             memcpy(decoded, &local_nego, sizeof(local_nego));
             decodedLen = sizeof(local_nego);
         }
-        if ((size_t)decodedLen < sizeof(ntlmhdr)) {            /* decoding failure, return error */
+        if ((size_t)decodedLen < sizeof(ntlmhdr)) {     /* decoding failure, return error */
             SEND_ERR("message=\"Packet format error, couldn't base64-decode\"");
             return 1;
         }
@@ -511,18 +511,18 @@ manage_request()
         case NTLM_CHALLENGE:
             SEND_ERR("message=\"Got a challenge. We refuse to have our authority disputed\"");
             return 1;
-            /* notreached */
+        /* notreached */
         case NTLM_AUTHENTICATE:
             SEND_ERR("message=\"Got authentication request instead of negotiate request\"");
             return 1;
-            /* notreached */
+        /* notreached */
         default:
             helperfail("message=\"unknown refresh-request packet type\"");
             return 1;
         }
         return 1;
     }
-    if (memcmp(buf, "KK ", 3) == 0) {  /* authenticate-request */
+    if (memcmp(buf, "KK ", 3) == 0) {   /* authenticate-request */
         if (!have_challenge) {
             helperfail("message=\"invalid challenge\"");
             return 1;
@@ -530,7 +530,7 @@ manage_request()
         /* figure out what we got */
         decodedLen = base64_decode(decoded, sizeof(decoded), buf+3);
 
-        if ((size_t)decodedLen < sizeof(ntlmhdr)) {            /* decoding failure, return error */
+        if ((size_t)decodedLen < sizeof(ntlmhdr)) {     /* decoding failure, return error */
             SEND_ERR("message=\"Packet format error, couldn't base64-decode\"");
             return 1;
         }
@@ -546,11 +546,11 @@ manage_request()
         case NTLM_NEGOTIATE:
             SEND_ERR("message=\"Invalid negotiation request received\"");
             return 1;
-            /* notreached */
+        /* notreached */
         case NTLM_CHALLENGE:
             SEND_ERR("message=\"Got a challenge. We refuse to have our authority disputed\"");
             return 1;
-            /* notreached */
+        /* notreached */
         case NTLM_AUTHENTICATE: {
             /* check against SSPI */
             int err = ntlm_check_auth((ntlm_authenticate *) decoded, user, domain, decodedLen);
@@ -602,7 +602,7 @@ manage_request()
             return 1;
         }
         return 1;
-    } else {   /* not an auth-request */
+    } else {    /* not an auth-request */
         helperfail("message=\"illegal request received\"");
         fprintf(stderr, "Illegal request received: '%s'\n", buf);
         return 1;
@@ -638,3 +638,4 @@ main(int argc, char *argv[])
     }
     exit(0);
 }
+
index d4ed91777e102f799c35194401ae88d60e915f5c..ecdc5da32497d0ae67b8ccaa8fdd046a73a3d64a 100644 (file)
@@ -115,7 +115,7 @@ process_options(int argc, char *argv[])
             exit(0);
         case '?':
             opt = optopt;
-            /* fall thru to default */
+        /* fall thru to default */
         default:
             fprintf(stderr, "unknown option: -%c. Exiting\n", opt);
             usage();
@@ -150,11 +150,11 @@ main(int argc, char *argv[])
     debug("%s build " __DATE__ ", " __TIME__ " starting up...\n", my_program_name);
 
     while (fgets(buf, HELPER_INPUT_BUFFER, stdin) != NULL) {
-        user[0] = '\0';                /*no user code */
-        domain[0] = '\0';              /*no domain code */
+        user[0] = '\0';     /*no user code */
+        domain[0] = '\0';       /*no domain code */
 
         if ((p = strchr(buf, '\n')) != NULL)
-            *p = '\0';         /* strip \n */
+            *p = '\0';      /* strip \n */
         buflen = strlen(buf);   /* keep this so we only scan the buffer for \0 once per loop */
         if (buflen > 3) {
             decodedLen = base64_decode(decodedBuf, sizeof(decodedBuf), buf+3);
@@ -214,3 +214,4 @@ main(int argc, char *argv[])
     }
     exit(0);
 }
+
index 3b762f70942073a49f568d3b0e47f0d40f9efd48..48a76c9ac4726ca35d8cffd902ca1c1d30c97b52 100644 (file)
@@ -73,7 +73,7 @@ typedef struct _dc dc;
 struct _dc {
     char *domain;
     char *controller;
-    time_t dead;               /* 0 if it's alive, otherwise time of death */
+    time_t dead;        /* 0 if it's alive, otherwise time of death */
     dc *next;
 };
 
@@ -90,10 +90,10 @@ void manage_request(void);
 
 static unsigned char challenge[NTLM_NONCE_LEN];
 static unsigned char lmencoded_empty_pass[ENCODED_PASS_LEN],
-ntencoded_empty_pass[ENCODED_PASS_LEN];
+       ntencoded_empty_pass[ENCODED_PASS_LEN];
 SMB_Handle_Type handle = NULL;
 int ntlm_errno;
-static char credentials[MAX_USERNAME_LEN+MAX_DOMAIN_LEN+2];    /* we can afford to waste */
+static char credentials[MAX_USERNAME_LEN+MAX_DOMAIN_LEN+2]; /* we can afford to waste */
 static char my_domain[100], my_domain_controller[100];
 static char errstr[1001];
 #if DEBUG
@@ -146,17 +146,17 @@ init_challenge(char *domain, char *domain_controller)
     smberr = SMB_Get_Last_Error();
     SMB_Get_Error_Msg(smberr, errstr, 1000);
 
-    if (handle == NULL) {      /* couldn't connect */
+    if (handle == NULL) {   /* couldn't connect */
         debug("Couldn't connect to SMB Server. Error:%s\n", errstr);
         return 1;
     }
-    if (SMB_Negotiate(handle, SMB_Prots) < 0) {                /* An error */
+    if (SMB_Negotiate(handle, SMB_Prots) < 0) {     /* An error */
         debug("Error negotiating protocol with SMB Server\n");
         SMB_Discon(handle, 0);
         handle = NULL;
         return 2;
     }
-    if (handle->Security == 0) {       /* share-level security, unuseable */
+    if (handle->Security == 0) {    /* share-level security, unuseable */
         debug("SMB Server uses share-level security .. we need user security.\n");
         SMB_Discon(handle, 0);
         handle = NULL;
@@ -208,7 +208,7 @@ ntlm_check_auth(ntlm_authenticate * auth, int auth_length)
     char *user;
     lstring tmp;
 
-    if (handle == NULL) {      /*if null we aren't connected, but it shouldn't happen */
+    if (handle == NULL) {   /*if null we aren't connected, but it shouldn't happen */
         debug("Weird, we've been disconnected\n");
         ntlm_errno = NTLM_ERR_NOT_CONNECTED;
         return NULL;
@@ -291,11 +291,11 @@ ntlm_check_auth(ntlm_authenticate * auth, int auth_length)
     rv = SMB_Logon_Server(handle, user, pass, domain, 1);
     debug("Login attempt had result %d\n", rv);
 
-    if (rv != NTLM_ERR_NONE) { /* failed */
+    if (rv != NTLM_ERR_NONE) {  /* failed */
         ntlm_errno = rv;
         return NULL;
     }
-    *(user - 1) = '\\';                /* hack. Performing, but ugly. */
+    *(user - 1) = '\\';     /* hack. Performing, but ugly. */
 
     debug("credentials: %s\n", credentials);
     return credentials;
@@ -398,11 +398,11 @@ process_options(int argc, char *argv[])
         new_dc->domain = d;
         new_dc->controller = c;
         new_dc->dead = 0;
-        if (controllers == NULL) {     /* first controller */
+        if (controllers == NULL) {  /* first controller */
             controllers = new_dc;
             last_dc = new_dc;
         } else {
-            last_dc->next = new_dc;    /* can't be null */
+            last_dc->next = new_dc; /* can't be null */
             last_dc = new_dc;
         }
     }
@@ -411,7 +411,7 @@ process_options(int argc, char *argv[])
         usage();
         exit(1);
     }
-    last_dc->next = controllers;       /* close the queue, now it's circular */
+    last_dc->next = controllers;    /* close the queue, now it's circular */
 }
 
 /**
@@ -431,7 +431,7 @@ obtain_challenge()
                 /* mark helper as retry-worthy if it's so. */
                 debug("Reviving DC\n");
                 current_dc->dead = 0;
-            } else {           /* skip it */
+            } else {        /* skip it */
                 debug("Skipping it\n");
                 continue;
             }
@@ -442,7 +442,7 @@ obtain_challenge()
         debug("make_challenge retuned %p\n", ch);
         if (ch) {
             debug("Got it\n");
-            return ch;         /* All went OK, returning */
+            return ch;      /* All went OK, returning */
         }
         /* Huston, we've got a problem. Take this DC out of the loop */
         debug("Marking DC as DEAD\n");
@@ -467,21 +467,21 @@ manage_request()
     if (fgets(buf, NTLM_BLOB_BUFFER_SIZE, stdin) == NULL) {
         fprintf(stderr, "fgets() failed! dying..... errno=%d (%s)\n", errno,
                 strerror(errno));
-        exit(1);               /* BIIG buffer */
+        exit(1);        /* BIIG buffer */
     }
     debug("managing request\n");
-    ch2 = (char*)memchr(buf, '\n', NTLM_BLOB_BUFFER_SIZE);     /* safer against overrun than strchr */
+    ch2 = (char*)memchr(buf, '\n', NTLM_BLOB_BUFFER_SIZE);  /* safer against overrun than strchr */
     if (ch2) {
-        *ch2 = '\0';           /* terminate the string at newline. */
+        *ch2 = '\0';        /* terminate the string at newline. */
         ch = ch2;
     }
     debug("ntlm authenticator. Got '%s' from Squid\n", buf);
 
-    if (memcmp(buf, "KK ", 3) == 0) {  /* authenticate-request */
+    if (memcmp(buf, "KK ", 3) == 0) {   /* authenticate-request */
         /* figure out what we got */
         int decodedLen = base64_decode(decoded, sizeof(decoded), buf+3);
 
-        if ((size_t)decodedLen < sizeof(ntlmhdr)) {    /* decoding failure, return error */
+        if ((size_t)decodedLen < sizeof(ntlmhdr)) { /* decoding failure, return error */
             SEND("NA Packet format error, couldn't base64-decode");
             return;
         }
@@ -497,11 +497,11 @@ manage_request()
         case NTLM_NEGOTIATE:
             SEND("NA Invalid negotiation request received");
             return;
-            /* notreached */
+        /* notreached */
         case NTLM_CHALLENGE:
             SEND("NA Got a challenge. We refuse to have our authority disputed");
             return;
-            /* notreached */
+        /* notreached */
         case NTLM_AUTHENTICATE:
             /* check against the DC */
             signal(SIGALRM, timeout_during_auth);
@@ -517,7 +517,7 @@ manage_request()
             }
             if (cred == NULL) {
                 int smblib_err, smb_errorclass, smb_errorcode, nb_error;
-                if (ntlm_errno == NTLM_ERR_LOGON) {    /* hackish */
+                if (ntlm_errno == NTLM_ERR_LOGON) { /* hackish */
                     SEND("NA Logon Failure");
                     return;
                 }
@@ -533,7 +533,7 @@ manage_request()
                       smblib_err, smb_errorclass, smb_errorcode, nb_error);
                 /* Should I use smblib_err? Actually it seems I can do as well
                  * without it.. */
-                if (nb_error != 0) {   /* netbios-level error */
+                if (nb_error != 0) {    /* netbios-level error */
                     SEND("BH NetBios error!");
                     fprintf(stderr, "NetBios error code %d (%s)\n", nb_error,
                             RFCNB_Error_Strings[abs(nb_error)]);
@@ -548,9 +548,9 @@ manage_request()
                     /*this is the most important one for errors */
                     debug("DOS error\n");
                     switch (smb_errorcode) {
-                        /* two categories matter to us: those which could be
-                         * server errors, and those which are auth errors */
-                    case SMBD_noaccess:        /* 5 */
+                    /* two categories matter to us: those which could be
+                     * server errors, and those which are auth errors */
+                    case SMBD_noaccess: /* 5 */
                         SEND("NA Access denied");
                         return;
                     case SMBD_badformat:
@@ -566,10 +566,10 @@ manage_request()
                         SEND("BH DOS Error");
                         return;
                     }
-                case SMBC_ERRSRV:      /* server errors */
+                case SMBC_ERRSRV:   /* server errors */
                     debug("Server error");
                     switch (smb_errorcode) {
-                        /* mostly same as above */
+                    /* mostly same as above */
                     case SMBV_badpw:
                         SEND("NA Bad password");
                         return;
@@ -580,7 +580,7 @@ manage_request()
                         SEND("BH Server Error");
                         return;
                     }
-                case SMBC_ERRHRD:      /* hardware errors don't really matter */
+                case SMBC_ERRHRD:   /* hardware errors don't really matter */
                     SEND("BH Domain Controller Hardware error");
                     return;
                 case SMBC_ERRCMD:
@@ -591,7 +591,7 @@ manage_request()
                 return;
             }
 
-            lc(cred);          /* let's lowercase them for our convenience */
+            lc(cred);       /* let's lowercase them for our convenience */
             SEND2("AF %s", cred);
             return;
         default:
@@ -601,7 +601,7 @@ manage_request()
         /* notreached */
         return;
     }
-    if (memcmp(buf, "YR", 2) == 0) {   /* refresh-request */
+    if (memcmp(buf, "YR", 2) == 0) {    /* refresh-request */
         dc_disconnect();
         ch = obtain_challenge();
         /* Robert says we can afford to wait forever. I'll trust him on this
@@ -651,3 +651,4 @@ main(int argc, char *argv[])
     /* notreached */
     return 0;
 }
+
index 5c02b0cbc73e8f1208f039f2515639701c4bba77..cf7e4c744e92dc7a3c48c30a4cffa05eaee4e48e 100644 (file)
@@ -107,3 +107,4 @@ dont_redirect:
 
     return 0;
 }
+
index 55cea0885fd8cf018164e714c7fc6581d581989c..89336b30c3a81f0b5dde4ca4bcdb6b824903c9bc 100644 (file)
@@ -80,7 +80,7 @@ process_options(int argc, char *argv[])
             exit(0);
         case '?':
             opt = optopt;
-            /* fall thru to default */
+        /* fall thru to default */
         default:
             fprintf(stderr, "unknown option: -%c. Exiting\n", opt);
             usage();
@@ -110,7 +110,7 @@ main(int argc, char *argv[])
         char *p;
 
         if ((p = strchr(buf, '\n')) != NULL) {
-            *p = '\0';         /* strip \n */
+            *p = '\0';      /* strip \n */
             buflen = p - buf;   /* length is known already */
         } else
             buflen = strlen(buf);   /* keep this so we only scan the buffer for \0 once per loop */
@@ -130,3 +130,4 @@ main(int argc, char *argv[])
     debug("%s build " __DATE__ ", " __TIME__ " shutting down...\n", my_program_name);
     return 0;
 }
+
index 74238d0426391c17edf03de1de6eae673949d377..03781aa3b077baf07c901a700d12454a8735a092 100644 (file)
@@ -56,3 +56,4 @@ Range<C, S>::size() const
 }
 
 #endif /* SQUID_RANGE_H */
+
index 3ebc1691362e6e752b10a223e5314233b322c27f..89557951ae247b2ad050964e9aa61f68692ce831 100644 (file)
@@ -38,3 +38,4 @@ _SQUID_EXTERNNEW_ void operator delete[] (void *address) throw()
 #endif /* !__SUNPRO_CC && !__clang__*/
 
 #endif /* SQUID_NEW_H */
+
index 9b028d67ba1d5170a5eb5e3d58ba2f0c561bbe17..3809fa241d6594134fcc8dbcba32ea02385c4541 100644 (file)
@@ -46,63 +46,64 @@ typedef u_char oid;
 #define MAX_SUBID   0xFF
 #endif
 
-#define MAX_OID_LEN        128 /* max subid's in an oid, per SNMP spec. */
-
-#define ASN_BOOLEAN        (0x01)
-#define ASN_INTEGER        (0x02)
-#define ASN_BIT_STR        (0x03)
-#define ASN_OCTET_STR      (0x04)
-#define ASN_NULL           (0x05)
-#define ASN_OBJECT_ID      (0x06)
-#define ASN_SEQUENCE       (0x10)
-#define ASN_SET                    (0x11)
-
-#define ASN_UNIVERSAL      (0x00)
+#define MAX_OID_LEN     128 /* max subid's in an oid, per SNMP spec. */
+
+#define ASN_BOOLEAN     (0x01)
+#define ASN_INTEGER     (0x02)
+#define ASN_BIT_STR     (0x03)
+#define ASN_OCTET_STR       (0x04)
+#define ASN_NULL        (0x05)
+#define ASN_OBJECT_ID       (0x06)
+#define ASN_SEQUENCE        (0x10)
+#define ASN_SET         (0x11)
+
+#define ASN_UNIVERSAL       (0x00)
 #define ASN_APPLICATION     (0x40)
-#define ASN_CONTEXT        (0x80)
-#define ASN_PRIVATE        (0xC0)
+#define ASN_CONTEXT     (0x80)
+#define ASN_PRIVATE     (0xC0)
 
-#define ASN_PRIMITIVE      (0x00)
-#define ASN_CONSTRUCTOR            (0x20)
+#define ASN_PRIMITIVE       (0x00)
+#define ASN_CONSTRUCTOR     (0x20)
 
-#define ASN_LONG_LEN       (0x80)
+#define ASN_LONG_LEN        (0x80)
 #define ASN_EXTENSION_ID    (0x1F)
-#define ASN_BIT8           (0x80)
+#define ASN_BIT8        (0x80)
 
-#define IS_CONSTRUCTOR(byte)   ((byte) & ASN_CONSTRUCTOR)
-#define IS_EXTENSION_ID(byte)  (((byte) & ASN_EXTENSION_ID) == ASN_EXTENSION_ID)
+#define IS_CONSTRUCTOR(byte)    ((byte) & ASN_CONSTRUCTOR)
+#define IS_EXTENSION_ID(byte)   (((byte) & ASN_EXTENSION_ID) == ASN_EXTENSION_ID)
 
 #ifdef __cplusplus
 extern "C" {
 #endif
 
-    u_char *asn_build_header(u_char *, int *, u_char, int);
-    u_char *asn_parse_int(u_char *, int *, u_char *, int *, int);
-    u_char *asn_parse_unsigned_int(u_char *, int *, u_char *, u_int *, int);
-    u_char *asn_build_int(u_char *, int *, u_char, int *, int);
-    u_char *asn_build_unsigned_int(u_char *, int *, u_char, u_int *, int);
-    u_char *asn_parse_string(u_char *, int *, u_char *, u_char *, int *);
-    u_char *asn_build_string(u_char *, int *, u_char, u_char *, int);
-    u_char *asn_parse_header(u_char *, int *, u_char *);
-    u_char *asn_build_header_with_truth(u_char *, int *, u_char, int, int);
-
-    u_char *asn_parse_length(u_char *, u_int *);
-    u_char *asn_build_length(u_char *, int *, int, int);
-    u_char *asn_parse_objid(u_char *, int *, u_char *, oid *, int *);
-    u_char *asn_build_objid(u_char *, int *, u_char, oid *, int);
-    u_char *asn_parse_null(u_char *, int *, u_char *);
-    u_char *asn_build_null(u_char *, int *, u_char);
+u_char *asn_build_header(u_char *, int *, u_char, int);
+u_char *asn_parse_int(u_char *, int *, u_char *, int *, int);
+u_char *asn_parse_unsigned_int(u_char *, int *, u_char *, u_int *, int);
+u_char *asn_build_int(u_char *, int *, u_char, int *, int);
+u_char *asn_build_unsigned_int(u_char *, int *, u_char, u_int *, int);
+u_char *asn_parse_string(u_char *, int *, u_char *, u_char *, int *);
+u_char *asn_build_string(u_char *, int *, u_char, u_char *, int);
+u_char *asn_parse_header(u_char *, int *, u_char *);
+u_char *asn_build_header_with_truth(u_char *, int *, u_char, int, int);
+
+u_char *asn_parse_length(u_char *, u_int *);
+u_char *asn_build_length(u_char *, int *, int, int);
+u_char *asn_parse_objid(u_char *, int *, u_char *, oid *, int *);
+u_char *asn_build_objid(u_char *, int *, u_char, oid *, int);
+u_char *asn_parse_null(u_char *, int *, u_char *);
+u_char *asn_build_null(u_char *, int *, u_char);
 
 #if 0
-    u_char *asn_parse_bitstring(u_char *, int *, u_char *, u_char *, int *);
-    u_char *asn_build_bitstring(u_char *, int *, u_char, u_char *, int);
+u_char *asn_parse_bitstring(u_char *, int *, u_char *, u_char *, int *);
+u_char *asn_build_bitstring(u_char *, int *, u_char, u_char *, int);
 
 #endif
-    u_char *asn_build_exception(u_char *, int *, u_char);
+u_char *asn_build_exception(u_char *, int *, u_char);
 
 #ifdef __cplusplus
 }
 
 #endif
 
-#endif /* SQUID_SNMP_ASN1_H */
+#endif  /* SQUID_SNMP_ASN1_H */
+
index c3870268149cab79d03a41bc9e6ae96e93cd6537..87b3e703574e3159d779932f6a78d8b15d88e636 100644 (file)
 extern "C" {
 #endif
 
-    // Decoding functions
-
-    /// Calculate the decoded length of a given nul-terminated encoded string.
-    /// NULL pointer and empty strings are accepted, result is zero.
-    /// Any return value <= zero means no decoded result can be produced.
-    extern int base64_decode_len(const char *encodedData);
-
-    /// Decode a base-64 encoded blob into a provided buffer.
-    /// Will not terminate the resulting string.
-    /// In-place decoding overlap is supported if result is equal or earlier that the source pointer.
-    ///
-    /// \return number of bytes filled in result.
-    extern int base64_decode(char *result, unsigned int result_max_size, const char *encoded);
-
-    // Encoding functions
-
-    /// Calculate the buffer size required to hold the encoded form of
-    /// a string of length 'decodedLen' including all terminator bytes.
-    extern int base64_encode_len(int decodedLen);
-
-    /// Base-64 encode a string into a given buffer.
-    /// Will not terminate the resulting string.
-    /// \return the number of bytes filled in result.
-    extern int base64_encode(char *result, int result_max_size, const char *data, int data_size);
-
-    /// Base-64 encode a string into a given buffer.
-    /// Will terminate the resulting string.
-    /// \return the number of bytes filled in result. Including the terminator.
-    extern int base64_encode_str(char *result, int result_max_size, const char *data, int data_size);
-
-    // Old encoder. Now a wrapper for the new. Takes a binary array of known length.
-    // Output is presented in a static buffer which will only remain valid until next call.
-    // Ensures a nul-terminated result. Will always return non-NULL.
-    extern const char *base64_encode_bin(const char *data, int len);
-
-    // Old encoder. Now a wrapper for the new.
-    // Output is presented in a static buffer which will only remain valid until next call.
-    // Ensures a nul-terminated result. Will always return non-NULL.
-    extern const char *old_base64_encode(const char *decoded);
+// Decoding functions
+
+/// Calculate the decoded length of a given nul-terminated encoded string.
+/// NULL pointer and empty strings are accepted, result is zero.
+/// Any return value <= zero means no decoded result can be produced.
+extern int base64_decode_len(const char *encodedData);
+
+/// Decode a base-64 encoded blob into a provided buffer.
+/// Will not terminate the resulting string.
+/// In-place decoding overlap is supported if result is equal or earlier that the source pointer.
+///
+/// \return number of bytes filled in result.
+extern int base64_decode(char *result, unsigned int result_max_size, const char *encoded);
+
+// Encoding functions
+
+/// Calculate the buffer size required to hold the encoded form of
+/// a string of length 'decodedLen' including all terminator bytes.
+extern int base64_encode_len(int decodedLen);
+
+/// Base-64 encode a string into a given buffer.
+/// Will not terminate the resulting string.
+/// \return the number of bytes filled in result.
+extern int base64_encode(char *result, int result_max_size, const char *data, int data_size);
+
+/// Base-64 encode a string into a given buffer.
+/// Will terminate the resulting string.
+/// \return the number of bytes filled in result. Including the terminator.
+extern int base64_encode_str(char *result, int result_max_size, const char *data, int data_size);
+
+// Old encoder. Now a wrapper for the new. Takes a binary array of known length.
+// Output is presented in a static buffer which will only remain valid until next call.
+// Ensures a nul-terminated result. Will always return non-NULL.
+extern const char *base64_encode_bin(const char *data, int len);
+
+// Old encoder. Now a wrapper for the new.
+// Output is presented in a static buffer which will only remain valid until next call.
+// Ensures a nul-terminated result. Will always return non-NULL.
+extern const char *old_base64_encode(const char *decoded);
 
 #ifdef __cplusplus
 }
 #endif
 #endif /* _SQUID_BASE64_H */
+
index a62f7ac4c6a4eb95d29000b475bb15ea0cb65642..a1e70a57fbc37776cd2e14b9ae3e8a4ed6b6bba6 100644 (file)
@@ -270,3 +270,4 @@ enum {
 #endif /* SQUID_SNMP */
 
 #endif /* SQUID_CACHE_SNMP_H */
+
index b734a3762939d29c8c2452963790575e566751c8..ef8916ef0c3d23268fe183f2fe73ef6ef11010f5 100644 (file)
@@ -18,3 +18,4 @@ extern
 char *latin1_to_utf8(char *out, size_t size, const char *in);
 
 #endif /* _SQUID_CHARSET_H */
+
index 3ee692e1d9346f50c7472e6f24375412ff05511e..308ce2bed1a3cf5d82edb9af166efe30f263ec81 100644 (file)
@@ -12,3 +12,4 @@
 SQUIDCEXTERN const char *getfullhostname(void);
 
 #endif /* _SQUID_GETFULLHOSTNAME_H */
+
index 1e31fbdf986a564075a667a77ab4e3528090b6cd..677eabbcc445120ec3dc015a1e1fb080fc751074 100644 (file)
@@ -62,6 +62,7 @@ SQUIDCEXTERN const char *hashKeyStr(hash_link *);
  *  HASH_SIZE 33493             // prime number < 32768
  *  HASH_SIZE 65357             // prime number < 65536
  */
-#define  DEFAULT_HASH_SIZE 7951        /* prime number < 8192 */
+#define  DEFAULT_HASH_SIZE 7951 /* prime number < 8192 */
 
 #endif /* SQUID_HASH_H */
+
index 43a40bc9e99b7cc2c83f19a2fda05662b21ff939..93928222bb8ff6ad078ba6029e171a2048c07255 100644 (file)
@@ -19,8 +19,8 @@
  * the top of the heap (as in the smallest object key value).  Child nodes
  * are larger than their parent.
  ****************************************************************************/
-#ifndef        SQUID_HEAP_H
-#define        SQUID_HEAP_H
+#ifndef SQUID_HEAP_H
+#define SQUID_HEAP_H
 
 /*
  * Function for generating heap keys.  The first argument will typically be
@@ -53,8 +53,8 @@ typedef struct _heap {
     heap_mutex_t lock;
     unsigned long size;
     unsigned long last;
-    heap_key_func *gen_key;    /* key generator for heap */
-    heap_key age;              /* aging factor for heap */
+    heap_key_func *gen_key; /* key generator for heap */
+    heap_key age;       /* aging factor for heap */
     heap_node **nodes;
 } heap;
 
@@ -99,10 +99,10 @@ SQUIDCEXTERN heap_t heap_update(heap *, heap_node * elm, heap_t dat);
 /*
  * Generate a heap key for a given data object.  Alternative macro form:
  */
-#ifdef MACRO_DEBUG
+#ifdef  MACRO_DEBUG
 SQUIDCEXTERN heap_key heap_gen_key(heap * hp, heap_t dat);
 #else
-#define        heap_gen_key(hp,md)     ((hp)->gen_key((md),(hp)->age))
+#define heap_gen_key(hp,md) ((hp)->gen_key((md),(hp)->age))
 #endif /* MACRO_DEBUG */
 
 /*
@@ -134,12 +134,12 @@ SQUIDCEXTERN heap_t heap_peep(heap *, int n);
 /*
  * Is the heap empty?  How many nodes (data objects) are in it?
  */
-#ifdef MACRO_DEBUG
+#ifdef  MACRO_DEBUG
 SQUIDCEXTERN int heap_empty(heap *);
 SQUIDCEXTERN int heap_nodes(heap *);
 #else /* MACRO_DEBUG */
-#define        heap_nodes(heap)        ((heap)->last)
-#define        heap_empty(heap)        ((heap)->last <= 0 ? 1 : 0)
+#define heap_nodes(heap)    ((heap)->last)
+#define heap_empty(heap)    ((heap)->last <= 0 ? 1 : 0)
 #endif /* MACRO_DEBUG */
 
 /*
@@ -151,3 +151,4 @@ SQUIDCEXTERN void heap_printnode(char *msg, heap_node * elm);
 SQUIDCEXTERN int verify_heap_property(heap *);
 
 #endif /* SQUID_HEAP_H */
+
index 2258894e80d0a1c27e00cd0ab50050659e65b09d..1e64d0c4ffa6e1093ce23d04b1ef079391abb38d 100644 (file)
@@ -18,3 +18,4 @@ extern
 char *html_quote(const char *);
 
 #endif /* _SQUID_HTML_QUOTE_H */
+
index eca3a28e6bc6f5c3038216be832f0fea99e5686f..d8e529a816a5f60ff5a045b7b4508e6421330704 100644 (file)
@@ -19,3 +19,4 @@
 #endif
 
 #endif
+
index c9a4b30712a73c3eca383ee8b41cbfc528abb3a5..05f4aea92a03712cf2409e9a78f41325c895222d 100644 (file)
@@ -68,3 +68,4 @@ SQUIDCEXTERN void SquidMD5Transform(uint32_t buf[4], uint32_t const in[16]);
 #endif /* HAVE_NETTLE_MD5_H */
 
 #endif /* SQUID_MD5_H */
+
index f765b12fe65ea9ce3891e380e7ad35227c7d7518..2fd774157082765e81d0f412ec5bd97b12fc60d3 100644 (file)
@@ -27,3 +27,4 @@ public:
 #define memMeterDel(m, sz) { (m).level -= (sz); }
 
 #endif /* _MEM_METER_H_ */
+
index b1782328208f73d92da51a9a3fcfd9769fb092a0..4c4ba42aa0bc920e5c483d0860457e22d97d5d6b 100644 (file)
@@ -10,7 +10,7 @@
 #define SQUID_PARSE_H
 
 /***********************************************************
-       Copyright 1989 by Carnegie Mellon University
+    Copyright 1989 by Carnegie Mellon University
 
                       All Rights Reserved
 
@@ -48,52 +48,53 @@ struct enum_list {
  * A tree in the format of the tree structure of the MIB.
  */
 struct snmp_mib_tree {
-    struct snmp_mib_tree *child_list;  /* list of children of this node */
-    struct snmp_mib_tree *next_peer;   /* Next node in list of peers */
+    struct snmp_mib_tree *child_list;   /* list of children of this node */
+    struct snmp_mib_tree *next_peer;    /* Next node in list of peers */
     struct snmp_mib_tree *parent;
-    char label[64];            /* This node's textual name */
-    u_int subid;               /* This node's integer subidentifier */
-    int type;                  /* This node's object type */
-    struct enum_list *enums;   /* (optional) list of enumerated integers (otherwise NULL) */
-    void (*printer) (char *buf, variable_list *var, void *foo, int quiet);             /* Value printing function */
+    char label[64];     /* This node's textual name */
+    u_int subid;        /* This node's integer subidentifier */
+    int type;           /* This node's object type */
+    struct enum_list *enums;    /* (optional) list of enumerated integers (otherwise NULL) */
+    void (*printer) (char *buf, variable_list *var, void *foo, int quiet);      /* Value printing function */
 };
 
 /* non-aggregate types for tree end nodes */
-#define TYPE_OTHER         0
-#define TYPE_OBJID         1
-#define TYPE_OCTETSTR      2
-#define TYPE_INTEGER       3
-#define TYPE_NETADDR       4
-#define        TYPE_IPADDR         5
-#define TYPE_COUNTER       6
-#define TYPE_GAUGE         7
-#define TYPE_TIMETICKS     8
-#define TYPE_OPAQUE        9
-#define TYPE_NULL          10
+#define TYPE_OTHER      0
+#define TYPE_OBJID      1
+#define TYPE_OCTETSTR       2
+#define TYPE_INTEGER        3
+#define TYPE_NETADDR        4
+#define TYPE_IPADDR     5
+#define TYPE_COUNTER        6
+#define TYPE_GAUGE      7
+#define TYPE_TIMETICKS      8
+#define TYPE_OPAQUE     9
+#define TYPE_NULL       10
 
 #ifdef __cplusplus
 extern "C" {
 #endif
 
-    void init_mib(char *);
-    int read_objid(char *, oid *, int *);
-    void print_objid(oid *, int);
-    void sprint_objid(char *, oid *, int);
-    void print_variable(oid *, int, struct variable_list *);
-    void sprint_variable(char *, oid *, int, struct variable_list *);
-    void sprint_value(char *, oid *, int, struct variable_list *);
-    void print_value(oid *, int, struct variable_list *);
+void init_mib(char *);
+int read_objid(char *, oid *, int *);
+void print_objid(oid *, int);
+void sprint_objid(char *, oid *, int);
+void print_variable(oid *, int, struct variable_list *);
+void sprint_variable(char *, oid *, int, struct variable_list *);
+void sprint_value(char *, oid *, int, struct variable_list *);
+void print_value(oid *, int, struct variable_list *);
 
-    /*void print_variable_list(struct variable_list *); */
-    /*void print_variable_list_value(struct variable_list *); */
-    /*void print_type(struct variable_list *); */
-    void print_oid_nums(oid *, int);
+/*void print_variable_list(struct variable_list *); */
+/*void print_variable_list_value(struct variable_list *); */
+/*void print_type(struct variable_list *); */
+void print_oid_nums(oid *, int);
 
-    struct snmp_mib_tree *read_mib(char *);
+struct snmp_mib_tree *read_mib(char *);
 
 #ifdef __cplusplus
 }
 
 #endif
 
-#endif                         /* SQUID_PARSE_H */
+#endif              /* SQUID_PARSE_H */
+
index 5f81b42d506a0d16d88b2e8296d684ada814adf0..78714edaadc8475e370b4a0cd82d101760d36b4f 100644 (file)
@@ -7,7 +7,7 @@
  */
 
 #ifndef SQUID_RADIX_H
-#define        SQUID_RADIX_H
+#define SQUID_RADIX_H
 
 /*
  * Copyright (c) 1988, 1989, 1993
 
 struct squid_radix_node {
 
-    struct squid_radix_mask *rn_mklist;        /* list of masks contained in subtree */
+    struct squid_radix_mask *rn_mklist; /* list of masks contained in subtree */
 
-    struct squid_radix_node *rn_p;     /* parent */
-    short rn_b;                        /* bit offset; -1-index(netmask) */
-    char rn_bmask;             /* node: mask for bit test */
-    unsigned char rn_flags;    /* enumerated next */
-#define RNF_NORMAL     1       /* leaf contains normal route */
-#define RNF_ROOT       2       /* leaf is root leaf for tree */
-#define RNF_ACTIVE     4       /* This node is alive (for rtfree) */
+    struct squid_radix_node *rn_p;  /* parent */
+    short rn_b;         /* bit offset; -1-index(netmask) */
+    char rn_bmask;      /* node: mask for bit test */
+    unsigned char rn_flags; /* enumerated next */
+#define RNF_NORMAL  1   /* leaf contains normal route */
+#define RNF_ROOT    2   /* leaf is root leaf for tree */
+#define RNF_ACTIVE  4   /* This node is alive (for rtfree) */
 
     union {
 
-        struct {               /* leaf only data: */
-            char *rn_Key;      /* object of search */
-            char *rn_Mask;     /* netmask, if present */
+        struct {        /* leaf only data: */
+            char *rn_Key;   /* object of search */
+            char *rn_Mask;  /* netmask, if present */
 
             struct squid_radix_node *rn_Dupedkey;
         } rn_leaf;
 
-        struct {               /* node only data: */
-            int rn_Off;                /* where to start compare */
+        struct {        /* node only data: */
+            int rn_Off;     /* where to start compare */
 
-            struct squid_radix_node *rn_L;     /* progeny */
+            struct squid_radix_node *rn_L;  /* progeny */
 
-            struct squid_radix_node *rn_R;     /* progeny */
+            struct squid_radix_node *rn_R;  /* progeny */
         } rn_node;
     } rn_u;
 #ifdef RN_DEBUG
@@ -96,51 +96,51 @@ struct squid_radix_node {
  */
 
 struct squid_radix_mask {
-    short rm_b;                        /* bit offset; -1-index(netmask) */
-    char rm_unused;            /* cf. rn_bmask */
-    unsigned char rm_flags;    /* cf. rn_flags */
+    short rm_b;         /* bit offset; -1-index(netmask) */
+    char rm_unused;     /* cf. rn_bmask */
+    unsigned char rm_flags; /* cf. rn_flags */
 
-    struct squid_radix_mask *rm_mklist;        /* more masks to try */
+    struct squid_radix_mask *rm_mklist; /* more masks to try */
     union {
-        char *rmu_mask;                /* the mask */
+        char *rmu_mask;     /* the mask */
 
-        struct squid_radix_node *rmu_leaf;     /* for normal routes */
+        struct squid_radix_node *rmu_leaf;  /* for normal routes */
     } rm_rmu;
-    int rm_refs;               /* # of references to this struct */
+    int rm_refs;        /* # of references to this struct */
 };
 
 struct squid_radix_node_head {
 
     struct squid_radix_node *rnh_treetop;
-    int rnh_addrsize;          /* permit, but not require fixed keys */
-    int rnh_pktsize;           /* permit, but not require fixed keys */
+    int rnh_addrsize;       /* permit, but not require fixed keys */
+    int rnh_pktsize;        /* permit, but not require fixed keys */
 
-    struct squid_radix_node *(*rnh_addaddr)    /* add based on sockaddr */
+    struct squid_radix_node *(*rnh_addaddr) /* add based on sockaddr */
     (void *v, void *mask, struct squid_radix_node_head * head, struct squid_radix_node nodes[]);
 
-    struct squid_radix_node *(*rnh_addpkt)     /* add based on packet hdr */
+    struct squid_radix_node *(*rnh_addpkt)  /* add based on packet hdr */
     (void *v, void *mask, struct squid_radix_node_head * head, struct squid_radix_node nodes[]);
 
-    struct squid_radix_node *(*rnh_deladdr)    /* remove based on sockaddr */
+    struct squid_radix_node *(*rnh_deladdr) /* remove based on sockaddr */
     (void *v, void *mask, struct squid_radix_node_head * head);
 
-    struct squid_radix_node *(*rnh_delpkt)     /* remove based on packet hdr */
+    struct squid_radix_node *(*rnh_delpkt)  /* remove based on packet hdr */
     (void *v, void *mask, struct squid_radix_node_head * head);
 
-    struct squid_radix_node *(*rnh_matchaddr)          /* locate based on sockaddr */
+    struct squid_radix_node *(*rnh_matchaddr)       /* locate based on sockaddr */
     (void *v, struct squid_radix_node_head * head);
 
-    struct squid_radix_node *(*rnh_lookup)     /* locate based on sockaddr */
+    struct squid_radix_node *(*rnh_lookup)  /* locate based on sockaddr */
 
     (void *v, void *mask, struct squid_radix_node_head * head);
 
-    struct squid_radix_node *(*rnh_matchpkt)   /* locate based on packet hdr */
+    struct squid_radix_node *(*rnh_matchpkt)    /* locate based on packet hdr */
     (void *v, struct squid_radix_node_head * head);
 
-    int (*rnh_walktree)                /* traverse tree */
+    int (*rnh_walktree)     /* traverse tree */
     (struct squid_radix_node_head * head, int (*f) (struct squid_radix_node *, void *), void *w);
 
-    struct squid_radix_node rnh_nodes[3];      /* empty tree for common case */
+    struct squid_radix_node rnh_nodes[3];   /* empty tree for common case */
 };
 
 SQUIDCEXTERN void squid_rn_init (void);
@@ -169,3 +169,4 @@ SQUIDCEXTERN struct squid_radix_node *squid_rn_search_m(void *, struct squid_rad
 SQUIDCEXTERN struct squid_radix_node *squid_rn_lookup(void *, void *, struct squid_radix_node_head *);
 
 #endif /* SQUID_RADIX_H */
+
index c4ed6dded39daa3d425ff7e4e4734ee30f844c96..87fd600aa4e34c07c3cb025df4a22472553b6024 100644 (file)
@@ -110,3 +110,4 @@ SQUIDCEXTERN int rfc1035QuestionPack(char *buf,
 SQUIDCEXTERN int rfc1035RRPack(char *buf, size_t sz, const rfc1035_rr * RR);
 
 #endif /* SQUID_RFC1035_H */
+
index 394eddb360a4a696e672711b448b474d849b9341..d7ebde677239e4232cb28e2f8022f23d3b908422 100644 (file)
 extern "C" {
 #endif
 
-    extern const char *mkhttpdlogtime(const time_t *);
-    extern const char *mkrfc1123(time_t);
-    extern time_t parse_rfc1123(const char *str);
+extern const char *mkhttpdlogtime(const time_t *);
+extern const char *mkrfc1123(time_t);
+extern time_t parse_rfc1123(const char *str);
 
 #ifdef __cplusplus
 }
 #endif
 #endif /* _SQUID_RFC1123_H */
+
index 9a8da76545199f74cde98ba560afd87f3c3e4853..20ef78527bb95a44d80c808808b10db9c46e70b3 100644 (file)
 extern "C" {
 #endif
 
-    /* Encoder rfc1738_do_escape flag values. */
+/* Encoder rfc1738_do_escape flag values. */
 #define RFC1738_ESCAPE_CTRLS       1
 #define RFC1738_ESCAPE_UNSAFE      2
 #define RFC1738_ESCAPE_RESERVED    4
 #define RFC1738_ESCAPE_ALL         (RFC1738_ESCAPE_UNSAFE|RFC1738_ESCAPE_RESERVED|RFC1738_ESCAPE_CTRLS)
-    // exclusions
+// exclusions
 #define RFC1738_ESCAPE_NOSPACE     128
 #define RFC1738_ESCAPE_NOPERCENT   256
-    // Backward compatibility
+// Backward compatibility
 #define RFC1738_ESCAPE_UNESCAPED   (RFC1738_ESCAPE_UNSAFE|RFC1738_ESCAPE_CTRLS|RFC1738_ESCAPE_NOPERCENT)
 
-    /**
    * \group rfc1738 RFC 1738 URL-escaping library
    *
    * Public API is formed of a triplet of encode functions mapping to the rfc1738_do_encode() engine.
    *
    * ASCII characters are split into four groups:
    * \item SAFE     Characters which are safe to occur in any URL. For example A,B,C
    * \item CTRLS    Binary control codes. Dangerous to include in URLs.
    * \item UNSAFE   Characters which are completely usafe to occur in any URL. For example; backspace, tab, space, newline.
    * \item RESERVED Characters which are reserved for special meaning and may only occur in certain parts of a URL.
    *
    * Returns a static buffer containing the RFC 1738 compliant, escaped version of the given url.
    *
    * \param flags  RFC1738_ESCAPE_CTRLS     Encode the blatantly dangerous binary codes.
    * \param flags  RFC1738_ESCAPE_UNSAFE    Encode printable unsafe characters (excluding CTRLs).
    * \param flags  RFC1738_ESCAPE_RESERVED  Encode reserved characters.
    * \param flags  RFC1738_ESCAPE_ALL       Encode all binary CTRL, unsafe and reserved characters.
    * \param flags  RFC1738_ESCAPE_NOSPACE   Ignore the space whitespace character.
    * \param flags  RFC1738_ESCAPE_NOPERCENT Ignore the escaping delimiter '%'.
    */
-    extern char *rfc1738_do_escape(const char *url, int flags);
+/**
+ * \group rfc1738 RFC 1738 URL-escaping library
+ *
+ * Public API is formed of a triplet of encode functions mapping to the rfc1738_do_encode() engine.
+ *
+ * ASCII characters are split into four groups:
+ * \item SAFE     Characters which are safe to occur in any URL. For example A,B,C
+ * \item CTRLS    Binary control codes. Dangerous to include in URLs.
+ * \item UNSAFE   Characters which are completely usafe to occur in any URL. For example; backspace, tab, space, newline.
+ * \item RESERVED Characters which are reserved for special meaning and may only occur in certain parts of a URL.
+ *
+ * Returns a static buffer containing the RFC 1738 compliant, escaped version of the given url.
+ *
+ * \param flags  RFC1738_ESCAPE_CTRLS     Encode the blatantly dangerous binary codes.
+ * \param flags  RFC1738_ESCAPE_UNSAFE    Encode printable unsafe characters (excluding CTRLs).
+ * \param flags  RFC1738_ESCAPE_RESERVED  Encode reserved characters.
+ * \param flags  RFC1738_ESCAPE_ALL       Encode all binary CTRL, unsafe and reserved characters.
+ * \param flags  RFC1738_ESCAPE_NOSPACE   Ignore the space whitespace character.
+ * \param flags  RFC1738_ESCAPE_NOPERCENT Ignore the escaping delimiter '%'.
+ */
+extern char *rfc1738_do_escape(const char *url, int flags);
 
-    /* Old API functions */
+/* Old API functions */
 
-    /* Default RFC 1738 escaping. Escape all UNSAFE characters and binary CTRL codes */
+/* Default RFC 1738 escaping. Escape all UNSAFE characters and binary CTRL codes */
 #define rfc1738_escape(x)  rfc1738_do_escape(x, RFC1738_ESCAPE_UNSAFE|RFC1738_ESCAPE_CTRLS)
 
-    /* Escape a partial URL. Encoding every binary code, unsafe or reserved character. */
+/* Escape a partial URL. Encoding every binary code, unsafe or reserved character. */
 #define rfc1738_escape_part(x)  rfc1738_do_escape(x, RFC1738_ESCAPE_ALL)
 
-    /* Escape a URL. Encoding every unsafe characters but skipping reserved and already-encoded bytes.
    * Suitable for safely encoding an absolute URL which may be encoded but is not trusted. */
+/* Escape a URL. Encoding every unsafe characters but skipping reserved and already-encoded bytes.
+ * Suitable for safely encoding an absolute URL which may be encoded but is not trusted. */
 #define rfc1738_escape_unescaped(x)  rfc1738_do_escape(x, RFC1738_ESCAPE_UNSAFE|RFC1738_ESCAPE_CTRLS|RFC1738_ESCAPE_NOPERCENT)
 
-    /**
    * Unescape a URL string according to RFC 1738 specification.
    * String is unescaped in-place
    */
-    extern void rfc1738_unescape(char *url);
+/**
+ * Unescape a URL string according to RFC 1738 specification.
+ * String is unescaped in-place
+ */
+extern void rfc1738_unescape(char *url);
 
 #ifdef __cplusplus
 }
 #endif
 #endif /* _SQUID_INCLUDE_RFC1738_H */
+
index ff627bfdb44c633face11b7b30c7f632799c7c71..67d4217ca2ff6304c926f397b3a5fce1f7b3831a 100644 (file)
  *  Squid accepts up to 255 character Hostname and Fully-Qualified Domain Names.
  *  Squid still NULL-terminates its FQDN and hotsname strings.
  */
-#define RFC2181_MAXHOSTNAMELEN 256
+#define RFC2181_MAXHOSTNAMELEN  256
 
 /** Back-port macro for old squid code still using SQUIDHOSTNAMELEN without RFC reference. */
-#define SQUIDHOSTNAMELEN       RFC2181_MAXHOSTNAMELEN
+#define SQUIDHOSTNAMELEN    RFC2181_MAXHOSTNAMELEN
 
 #endif /* _SQUID_INCLUDE_RFC1123_H */
+
index a1d8ca89fa12c9087166a08e99b447504d8222f7..efaf3fc3da7fb43aa4dcac5b1462062eedbf6feb 100644 (file)
@@ -28,40 +28,41 @@ extern "C" {
 #endif
 
 #define HASHLEN 16
-    typedef char HASH[HASHLEN];
+typedef char HASH[HASHLEN];
 #define HASHHEXLEN 32
-    typedef char HASHHEX[HASHHEXLEN + 1];
+typedef char HASHHEX[HASHHEXLEN + 1];
 
-    /* calculate H(A1) as per HTTP Digest spec */
-    extern void DigestCalcHA1(
-        const char *pszAlg,
-        const char *pszUserName,
-        const char *pszRealm,
-        const char *pszPassword,
-        const char *pszNonce,
-        const char *pszCNonce,
-        HASH HA1,
-        HASHHEX SessionKey
-    );
+/* calculate H(A1) as per HTTP Digest spec */
+extern void DigestCalcHA1(
+    const char *pszAlg,
+    const char *pszUserName,
+    const char *pszRealm,
+    const char *pszPassword,
+    const char *pszNonce,
+    const char *pszCNonce,
+    HASH HA1,
+    HASHHEX SessionKey
+);
 
-    /* calculate request-digest/response-digest as per HTTP Digest spec */
-    extern void DigestCalcResponse(
-        const HASHHEX HA1,             /* H(A1) */
-        const char *pszNonce,  /* nonce from server */
-        const char *pszNonceCount,     /* 8 hex digits */
-        const char *pszCNonce, /* client nonce */
-        const char *pszQop,            /* qop-value: "", "auth", "auth-int" */
-        const char *pszMethod, /* method from the request */
-        const char *pszDigestUri,      /* requested URL */
-        const HASHHEX HEntity, /* H(entity body) if qop="auth-int" */
-        HASHHEX Response               /* request-digest or response-digest */
-    );
+/* calculate request-digest/response-digest as per HTTP Digest spec */
+extern void DigestCalcResponse(
+    const HASHHEX HA1,      /* H(A1) */
+    const char *pszNonce,   /* nonce from server */
+    const char *pszNonceCount,  /* 8 hex digits */
+    const char *pszCNonce,  /* client nonce */
+    const char *pszQop,     /* qop-value: "", "auth", "auth-int" */
+    const char *pszMethod,  /* method from the request */
+    const char *pszDigestUri,   /* requested URL */
+    const HASHHEX HEntity,  /* H(entity body) if qop="auth-int" */
+    HASHHEX Response        /* request-digest or response-digest */
+);
 
-    extern void CvtHex(const HASH Bin, HASHHEX Hex);
+extern void CvtHex(const HASH Bin, HASHHEX Hex);
 
-    extern void CvtBin(const HASHHEX Hex, HASH Bin);
+extern void CvtBin(const HASHHEX Hex, HASH Bin);
 
 #ifdef __cplusplus
 }
 #endif
 #endif /* SQUID_RFC2617_H */
+
index 3ecf6752536fe8c4a5c7ca173005cbb90ac159e4..bd525177eac7d21bd011eb033da6ce915a74c016 100644 (file)
@@ -15,3 +15,4 @@
 SQUIDCEXTERN int rfc2671RROptPack(char *buf, size_t sz, ssize_t edns_sz);
 
 #endif /* SQUID_RFC3596_H */
+
index 3bad604563d3356236d14ebcdb0c3e034605ce30..9ec00b8a039e73db8dccba48c304f371d41ad7c4 100644 (file)
@@ -53,3 +53,4 @@ SQUIDCEXTERN ssize_t rfc3596BuildHostQuery(const char *hostname,
 #define RFC1035_TYPE_AAAA 28
 
 #endif /* SQUID_RFC3596_H */
+
index 1006a1899ed28045427bb0e919a8de4c44fa7dd1..9919e9f4ddf0651121b01fe864a495cbf2382c6c 100644 (file)
@@ -33,8 +33,9 @@
  *
  **********************************************************************/
 
-#define SNMP_PORT          161
-#define SNMP_TRAP_PORT     162
-#define SNMP_MAX_LEN       484
+#define SNMP_PORT       161
+#define SNMP_TRAP_PORT      162
+#define SNMP_MAX_LEN        484
 
 #endif /* SQUID_SNMP_INTERNAL_H */
+
index 8a43e306238f2b851893e7edfbb37743ae0fefcb..a1601ae563efa0feeb5d7fad9ca9bc3f5a4470a9 100644 (file)
  *
  ***************************************************************************/
 
-#include <asn1.h>              /* Need OID Definition */
-#include <snmp_vars.h>         /* Need variable_list */
+#include <asn1.h>       /* Need OID Definition */
+#include <snmp_vars.h>      /* Need variable_list */
 #if 0
-#include <mib.h>               /* Then the function definitions */
+#include <mib.h>        /* Then the function definitions */
 #endif
 
 #endif /* SQUID_SNMP_MIB_H */
+
index aa51ea3a69c02e1d8efa21d56d19b9c39cbd3489..0297e51f602d1bf5c8a93ab68692a5bf070d805a 100644 (file)
@@ -68,3 +68,4 @@
 #include "snmp_impl.h"
 
 #endif /* SQUID_SNMP_H */
+
index 3bbcd1c83a0a40423ae887fd0eea1542fa5b2a66..de131a435218744f29466bcd1da9d4c26eab33b4 100644 (file)
@@ -10,7 +10,7 @@
 #define SQUID_SNMP_API_H
 
 /***********************************************************
-       Copyright 1989 by Carnegie Mellon University
+    Copyright 1989 by Carnegie Mellon University
 
                       All Rights Reserved
 
@@ -38,13 +38,13 @@ SOFTWARE.
 /*
  * Set fields in session and pdu to the following to get a default or unconfigured value.
  */
-#define SNMP_DEFAULT_COMMUNITY_LEN  0  /* to get a default community name */
-#define SNMP_DEFAULT_RETRIES       3
-#define SNMP_DEFAULT_TIMEOUT       1
-#define SNMP_DEFAULT_REMPORT       0
-#define SNMP_DEFAULT_PEERNAME      NULL
-#define SNMP_DEFAULT_ENTERPRISE_LENGTH 0
-#define SNMP_DEFAULT_TIME          0
+#define SNMP_DEFAULT_COMMUNITY_LEN  0   /* to get a default community name */
+#define SNMP_DEFAULT_RETRIES        3
+#define SNMP_DEFAULT_TIMEOUT        1
+#define SNMP_DEFAULT_REMPORT        0
+#define SNMP_DEFAULT_PEERNAME       NULL
+#define SNMP_DEFAULT_ENTERPRISE_LENGTH  0
+#define SNMP_DEFAULT_TIME       0
 #define SNMP_DEFAULT_MAXREPETITIONS 5
 #define SNMP_DEFAULT_MACREPEATERS   0
 
@@ -52,128 +52,129 @@ SOFTWARE.
 extern "C" {
 #endif
 
-    /* Parse the buffer pointed to by arg3, of length arg4, into pdu arg2.
    *
    * Returns the community of the incoming PDU, or NULL
    */
-    u_char *snmp_parse(struct snmp_session *, struct snmp_pdu *, u_char *, int);
-
-    /* Encode pdu arg2 into buffer arg3.  arg4 contains the size of
    * the buffer.
    */
-    int snmp_build(struct snmp_session *, struct snmp_pdu *, u_char *, int *);
-
-    /*
    * struct snmp_session *snmp_open(session)
    *      struct snmp_session *session;
    *
    * Sets up the session with the snmp_session information provided
    * by the user.  Then opens and binds the necessary UDP port.
    * A handle to the created session is returned (this is different than
    * the pointer passed to snmp_open()).  On any error, NULL is returned
    * and snmp_errno is set to the appropriate error code.
    */
+/* Parse the buffer pointed to by arg3, of length arg4, into pdu arg2.
+ *
+ * Returns the community of the incoming PDU, or NULL
+ */
+u_char *snmp_parse(struct snmp_session *, struct snmp_pdu *, u_char *, int);
+
+/* Encode pdu arg2 into buffer arg3.  arg4 contains the size of
+ * the buffer.
+ */
+int snmp_build(struct snmp_session *, struct snmp_pdu *, u_char *, int *);
+
+/*
+ * struct snmp_session *snmp_open(session)
+ *      struct snmp_session *session;
+ *
+ * Sets up the session with the snmp_session information provided
+ * by the user.  Then opens and binds the necessary UDP port.
+ * A handle to the created session is returned (this is different than
+ * the pointer passed to snmp_open()).  On any error, NULL is returned
+ * and snmp_errno is set to the appropriate error code.
+ */
 #if 0
-    struct snmp_session *snmp_open(struct snmp_session *);
-
-    /*
    * int snmp_close(session)
    *     struct snmp_session *session;
    *
    * Close the input session.  Frees all data allocated for the session,
    * dequeues any pending requests, and closes any sockets allocated for
    * the session.  Returns 0 on error, 1 otherwise.
    */
-    int snmp_close(struct snmp_session *);
-
-    /*
    * int snmp_send(session, pdu)
    *     struct snmp_session *session;
    *     struct snmp_pdu  *pdu;
    *
    * Sends the input pdu on the session after calling snmp_build to create
    * a serialized packet.  If necessary, set some of the pdu data from the
    * session defaults.  Add a request corresponding to this pdu to the list
    * of outstanding requests on this session, then send the pdu.
    * Returns the request id of the generated packet if applicable, otherwise 1.
    * On any error, 0 is returned.
    * The pdu is freed by snmp_send() unless a failure occured.
    */
-    int snmp_send(struct snmp_session *, struct snmp_pdu *);
-
-    /*
    * void snmp_read(fdset)
    *     fd_set  *fdset;
    *
    * Checks to see if any of the fd's set in the fdset belong to
    * snmp.  Each socket with it's fd set has a packet read from it
    * and snmp_parse is called on the packet received.  The resulting pdu
    * is passed to the callback routine for that session.  If the callback
    * routine returns successfully, the pdu and it's request are deleted.
    */
-    void snmp_read(fd_set *);
-
-    /*
    * int snmp_select_info(numfds, fdset, timeout, block)
    * int *numfds;
    * fd_set   *fdset;
    * struct timeval *timeout;
    * int *block;
    *
    * Returns info about what snmp requires from a select statement.
    * numfds is the number of fds in the list that are significant.
    * All file descriptors opened for SNMP are OR'd into the fdset.
    * If activity occurs on any of these file descriptors, snmp_read
    * should be called with that file descriptor set.
    *
    * The timeout is the latest time that SNMP can wait for a timeout.  The
    * select should be done with the minimum time between timeout and any other
    * timeouts necessary.  This should be checked upon each invocation of select.
    * If a timeout is received, snmp_timeout should be called to check if the
    * timeout was for SNMP.  (snmp_timeout is idempotent)
    *
    * Block is 1 if the select is requested to block indefinitely, rather than time out.
    * If block is input as 1, the timeout value will be treated as undefined, but it must
    * be available for setting in snmp_select_info.  On return, if block is true, the value
    * of timeout will be undefined.
    *
    * snmp_select_info returns the number of open sockets.  (i.e. The number of sessions open)
    */
-    int snmp_select_info(int *, fd_set *, struct timeval *, int *);
-
-    /*
    * void snmp_timeout();
    *
    * snmp_timeout should be called whenever the timeout from snmp_select_info expires,
    * but it is idempotent, so snmp_timeout can be polled (probably a cpu expensive
    * proposition).  snmp_timeout checks to see if any of the sessions have an
    * outstanding request that has timed out.  If it finds one (or more), and that
    * pdu has more retries available, a new packet is formed from the pdu and is
    * resent.  If there are no more retries available, the callback for the session
    * is used to alert the user of the timeout.
    */
-    void snmp_timeout(void);
-
-    /*
    * This routine must be supplied by the application:
    *
    * int callback(operation, session, reqid, pdu, magic)
    * int operation;
    * struct snmp_session *session;    The session authenticated under.
    * int reqid;                       The request id of this pdu (0 for TRAP)
    * struct snmp_pdu *pdu;            The pdu information.
    * void *magic                      A link to the data for this routine.
    *
    * Returns 1 if request was successful, 0 if it should be kept pending.
    * Any data in the pdu must be copied because it will be freed elsewhere.
    * Operations are defined below:
    */
-
-    void snmp_api_stats(void *);
+struct snmp_session *snmp_open(struct snmp_session *);
+
+/*
+ * int snmp_close(session)
+ *     struct snmp_session *session;
+ *
+ * Close the input session.  Frees all data allocated for the session,
+ * dequeues any pending requests, and closes any sockets allocated for
+ * the session.  Returns 0 on error, 1 otherwise.
+ */
+int snmp_close(struct snmp_session *);
+
+/*
+ * int snmp_send(session, pdu)
+ *     struct snmp_session *session;
+ *     struct snmp_pdu  *pdu;
+ *
+ * Sends the input pdu on the session after calling snmp_build to create
+ * a serialized packet.  If necessary, set some of the pdu data from the
+ * session defaults.  Add a request corresponding to this pdu to the list
+ * of outstanding requests on this session, then send the pdu.
+ * Returns the request id of the generated packet if applicable, otherwise 1.
+ * On any error, 0 is returned.
+ * The pdu is freed by snmp_send() unless a failure occured.
+ */
+int snmp_send(struct snmp_session *, struct snmp_pdu *);
+
+/*
+ * void snmp_read(fdset)
+ *     fd_set  *fdset;
+ *
+ * Checks to see if any of the fd's set in the fdset belong to
+ * snmp.  Each socket with it's fd set has a packet read from it
+ * and snmp_parse is called on the packet received.  The resulting pdu
+ * is passed to the callback routine for that session.  If the callback
+ * routine returns successfully, the pdu and it's request are deleted.
+ */
+void snmp_read(fd_set *);
+
+/*
+ * int snmp_select_info(numfds, fdset, timeout, block)
+ * int *numfds;
+ * fd_set   *fdset;
+ * struct timeval *timeout;
+ * int *block;
+ *
+ * Returns info about what snmp requires from a select statement.
+ * numfds is the number of fds in the list that are significant.
+ * All file descriptors opened for SNMP are OR'd into the fdset.
+ * If activity occurs on any of these file descriptors, snmp_read
+ * should be called with that file descriptor set.
+ *
+ * The timeout is the latest time that SNMP can wait for a timeout.  The
+ * select should be done with the minimum time between timeout and any other
+ * timeouts necessary.  This should be checked upon each invocation of select.
+ * If a timeout is received, snmp_timeout should be called to check if the
+ * timeout was for SNMP.  (snmp_timeout is idempotent)
+ *
+ * Block is 1 if the select is requested to block indefinitely, rather than time out.
+ * If block is input as 1, the timeout value will be treated as undefined, but it must
+ * be available for setting in snmp_select_info.  On return, if block is true, the value
+ * of timeout will be undefined.
+ *
+ * snmp_select_info returns the number of open sockets.  (i.e. The number of sessions open)
+ */
+int snmp_select_info(int *, fd_set *, struct timeval *, int *);
+
+/*
+ * void snmp_timeout();
+ *
+ * snmp_timeout should be called whenever the timeout from snmp_select_info expires,
+ * but it is idempotent, so snmp_timeout can be polled (probably a cpu expensive
+ * proposition).  snmp_timeout checks to see if any of the sessions have an
+ * outstanding request that has timed out.  If it finds one (or more), and that
+ * pdu has more retries available, a new packet is formed from the pdu and is
+ * resent.  If there are no more retries available, the callback for the session
+ * is used to alert the user of the timeout.
+ */
+void snmp_timeout(void);
+
+/*
+ * This routine must be supplied by the application:
+ *
+ * int callback(operation, session, reqid, pdu, magic)
+ * int operation;
+ * struct snmp_session *session;    The session authenticated under.
+ * int reqid;                       The request id of this pdu (0 for TRAP)
+ * struct snmp_pdu *pdu;            The pdu information.
+ * void *magic                      A link to the data for this routine.
+ *
+ * Returns 1 if request was successful, 0 if it should be kept pending.
+ * Any data in the pdu must be copied because it will be freed elsewhere.
+ * Operations are defined below:
+ */
+
+void snmp_api_stats(void *);
 #endif
 #ifdef __cplusplus
 }
 
 #endif
 
-#endif                         /* SQUID_SNMP_API_H */
+#endif              /* SQUID_SNMP_API_H */
+
index 475ab0ae964d394cd2573dbd8bb829daafef6b07..4d2d70a56a480c7d48be0a84df898e135955ae45 100644 (file)
  ***************************************************************************/
 
 /* Error return values */
-#define SNMPERR_GENERR         -1
-#define SNMPERR_BAD_LOCPORT    -2      /* local port was already in use */
-#define SNMPERR_BAD_ADDRESS    -3
-#define SNMPERR_BAD_SESSION    -4
-#define SNMPERR_TOO_LONG       -5      /* data too long for provided buffer */
+#define SNMPERR_GENERR      -1
+#define SNMPERR_BAD_LOCPORT -2  /* local port was already in use */
+#define SNMPERR_BAD_ADDRESS -3
+#define SNMPERR_BAD_SESSION -4
+#define SNMPERR_TOO_LONG    -5  /* data too long for provided buffer */
 
 #define SNMPERR_ASN_ENCODE      -6
 #define SNMPERR_ASN_DECODE      -7
 #define SNMPERR_PACKET_ERR      -14
 #define SNMPERR_NO_RESPONSE     -15
 
-#define SNMPERR_LAST            -16    /* Last error message */
+#define SNMPERR_LAST            -16 /* Last error message */
 
 #ifdef __cplusplus
 extern "C" {
 #endif
 
-    /* extern int snmp_errno */
+/* extern int snmp_errno */
 
-    const char *snmp_api_error(int);
-    int snmp_api_errno(void);
+const char *snmp_api_error(int);
+int snmp_api_errno(void);
 
-    const char *api_errstring(int);    /* Backwards compatibility */
-    void snmp_set_api_error(int);
+const char *api_errstring(int); /* Backwards compatibility */
+void snmp_set_api_error(int);
 
 #ifdef __cplusplus
 }
 
 #endif
 
-#endif                         /* SQUID_SNMP_API_ERROR_H */
+#endif              /* SQUID_SNMP_API_ERROR_H */
+
index db67b4e53f1944db4dbb46e3ec2a60475f8417af..4029ad7375251e54c0d0f98c7f012514a2923054 100644 (file)
@@ -13,7 +13,7 @@
 #include "snmp_pdu.h"
 
 /***********************************************************
-       Copyright 1997 by Carnegie Mellon University
+    Copyright 1997 by Carnegie Mellon University
 
                       All Rights Reserved
 
@@ -46,12 +46,12 @@ SOFTWARE.
  */
 struct request_list {
     struct request_list *next_request;
-    int request_id;            /* request id */
-    int retries;               /* Number of retries */
-    u_int timeout;             /* length to wait for timeout */
-    struct timeval time;       /* Time this request was made */
-    struct timeval expire;     /* time this request is due to expire */
-    struct snmp_pdu *pdu;      /* The pdu for this request (saved so it can be retransmitted */
+    int request_id;     /* request id */
+    int retries;        /* Number of retries */
+    u_int timeout;      /* length to wait for timeout */
+    struct timeval time;    /* Time this request was made */
+    struct timeval expire;  /* time this request is due to expire */
+    struct snmp_pdu *pdu;   /* The pdu for this request (saved so it can be retransmitted */
 };
 
 /*
@@ -64,9 +64,9 @@ struct session_list {
 };
 
 struct snmp_internal_session {
-    int sd;                    /* socket descriptor for this connection */
-    struct sockaddr_in addr;           /* address of connected peer */
-    struct request_list *requests;     /* Info about outstanding requests */
+    int sd;         /* socket descriptor for this connection */
+    struct sockaddr_in addr;        /* address of connected peer */
+    struct request_list *requests;  /* Info about outstanding requests */
 };
 
 /* Define these here, as they aren't defined normall under
@@ -93,13 +93,14 @@ struct snmp_internal_session {
 extern "C" {
 #endif
 
-    int snmp_get_socket_session(struct snmp_session *session_);
-    int snmp_select_info_session(struct snmp_session *session_, struct timeval *timeout);
-    int snmp_timeout_session(struct snmp_session *sp_);
+int snmp_get_socket_session(struct snmp_session *session_);
+int snmp_select_info_session(struct snmp_session *session_, struct timeval *timeout);
+int snmp_timeout_session(struct snmp_session *sp_);
 
 #ifdef __cplusplus
 }
 
 #endif
 
-#endif                         /* SQUID_SNMP_API_UTIL_H */
+#endif              /* SQUID_SNMP_API_UTIL_H */
+
index 80ed13fcd7752f7012b0d5f8c44637140674951d..466ab9ed12e8676af2a4a7b61b12a3cea2f00104 100644 (file)
@@ -10,7 +10,7 @@
 #define SQUID_SNMP_CLIENT_H
 
 /***********************************************************
-       Copyright 1988, 1989 by Carnegie Mellon University
+    Copyright 1988, 1989 by Carnegie Mellon University
 
                       All Rights Reserved
 
@@ -34,8 +34,8 @@ struct synch_state {
     int waiting;
     int status;
     /* status codes */
-#define STAT_SUCCESS   0
-#define STAT_ERROR     1
+#define STAT_SUCCESS    0
+#define STAT_ERROR  1
 #define STAT_TIMEOUT 2
     int reqid;
     struct snmp_pdu *pdu;
@@ -45,21 +45,22 @@ struct synch_state {
 extern "C" {
 #endif
 
-    extern struct synch_state snmp_synch_state;
+extern struct synch_state snmp_synch_state;
 
-    /* Synchronize Input with Agent */
-    int snmp_synch_input(int, struct snmp_session *, int,
-                         struct snmp_pdu *, void *);
+/* Synchronize Input with Agent */
+int snmp_synch_input(int, struct snmp_session *, int,
+                     struct snmp_pdu *, void *);
 
-    /* Synchronize Response with Agent */
-    int snmp_synch_response(struct snmp_session *, struct snmp_pdu *,
-                            struct snmp_pdu **);
+/* Synchronize Response with Agent */
+int snmp_synch_response(struct snmp_session *, struct snmp_pdu *,
+                        struct snmp_pdu **);
 
-    /* Synchronize Setup */
-    void snmp_synch_setup(struct snmp_session *);
+/* Synchronize Setup */
+void snmp_synch_setup(struct snmp_session *);
 
 #ifdef __cplusplus
 }
 #endif
 
-#endif                         /* SQUID_SNMP_CLIENT_H */
+#endif              /* SQUID_SNMP_CLIENT_H */
+
index 48881e46b60054ec304229096f5e82e84997d839..b2e97f7acfe6a5b274cdb27b756bfca9d63bc3b4 100644 (file)
 extern "C" {
 #endif
 
-    int snmp_coexist_V2toV1(struct snmp_pdu *);
-    int snmp_coexist_V1toV2(struct snmp_pdu *);
+int snmp_coexist_V2toV1(struct snmp_pdu *);
+int snmp_coexist_V1toV2(struct snmp_pdu *);
 
 #ifdef __cplusplus
 }
 #endif
 
 #endif /* SQUID_SNMP_COEXISTANCE_H */
+
index 0d39e43d6df904ad592b3bb44a8cbebd94b1c10c..8251a76a56f1c12bd48e80f524d17360898a2efa 100644 (file)
@@ -12,3 +12,4 @@
 SQUIDCEXTERN void snmplib_debug(int, const char *,...) PRINTF_FORMAT_ARG2;
 
 #endif /* SQUID_SNMP_DEBUG_H */
+
index 24f415f9fca6c14fed10dab55519b4a3737527d9..5f1f92ca473d1e0d3a815beeee2079c178575263 100644 (file)
 extern "C" {
 #endif
 
-    const char *snmp_errstring(int);
+const char *snmp_errstring(int);
 
 #ifdef __cplusplus
 }
 #endif
 
-#endif                         /* SQUID_SNMP_ERROR_H */
+#endif              /* SQUID_SNMP_ERROR_H */
+
index ca4f78f008994ee623254df1f85fff4eb7b2636a..98931677669ef92d7356b3b3e901db964a0f1bf8 100644 (file)
@@ -17,7 +17,7 @@
  *
  */
 /***********************************************************
-       Copyright 1988, 1989 by Carnegie Mellon University
+    Copyright 1988, 1989 by Carnegie Mellon University
 
                       All Rights Reserved
 
@@ -50,19 +50,19 @@ SOFTWARE.
 #endif
 #endif
 
-#define SID_MAX_LEN    64
+#define SID_MAX_LEN 64
 
-#define READ       1
-#define WRITE      0
+#define READ        1
+#define WRITE       0
 
 #define SNMP_RESERVE1    0
 #define SNMP_RESERVE2    1
 #define SNMP_COMMIT      2
 #define SNMP_FREE        3
 
-#define RONLY  0xAAAA          /* read access for everyone */
-#define RWRITE 0xAABA          /* add write access for community private */
-#define NOACCESS 0x0000                /* no access for anybody */
+#define RONLY   0xAAAA      /* read access for everyone */
+#define RWRITE  0xAABA      /* add write access for community private */
+#define NOACCESS 0x0000     /* no access for anybody */
 
 struct trapVar {
     oid *varName;
@@ -74,3 +74,4 @@ struct trapVar {
 };
 
 #endif /* SQUID_SNMP_IMPL_H */
+
index 385b74d38430ac36645144e917d8afaa8f96fabd..3d56ff66cfebb3adff59adeca5f677d554abf428 100644 (file)
 
 #include "snmp_pdu.h"
 
-#define SNMP_VERSION_1     0   /* RFC 1157 */
-#define SNMP_VERSION_2     1   /* RFC 1901 */
+#define SNMP_VERSION_1      0   /* RFC 1157 */
+#define SNMP_VERSION_2      1   /* RFC 1901 */
 
 #ifdef __cplusplus
 extern "C" {
 #endif
 
-    u_char *snmp_msg_Encode(u_char *, int *, u_char *, int, int, struct snmp_pdu *);
-    u_char *snmp_msg_Decode(u_char *, int *, u_char *, int *, int *, struct snmp_pdu *);
+u_char *snmp_msg_Encode(u_char *, int *, u_char *, int, int, struct snmp_pdu *);
+u_char *snmp_msg_Decode(u_char *, int *, u_char *, int *, int *, struct snmp_pdu *);
 
 #ifdef __cplusplus
 }
 
 #endif
 
-#endif /* SQUID_SNMP_MSG_H */
+#endif  /* SQUID_SNMP_MSG_H */
+
index 524c4b3d66be45044079acb99997d66dd7809f81..828df7c948e18920ddc3dd7c6a0729fc854dd0ba 100644 (file)
 extern "C" {
 #endif
 
-    /* An SNMP PDU */
-    struct snmp_pdu {
-        int command;           /* Type of this PDU */
-        struct sockaddr_in address;            /* Address of peer */
-
-        int reqid;                     /* Integer32: Request id */
-        int errstat;           /* INTEGER:   Error status */
-        int errindex;          /* INTEGER:   Error index */
-
-        /* SNMPv2 Bulk Request */
-        int non_repeaters;             /* INTEGER: */
-        int max_repetitions;   /* INTEGER: */
-
-        struct variable_list *variables;       /* Variable Bindings */
-
-        /* Trap information */
-        oid *enterprise;               /* System OID */
-        int enterprise_length;
-        struct sockaddr_in agent_addr;         /* address of object generating trap */
-        int trap_type;         /* generic trap type */
-        int specific_type;             /* specific type */
-        u_int time;                    /* Uptime */
-    };
-
-    struct snmp_pdu *snmp_pdu_create(int);
-    struct snmp_pdu *snmp_pdu_clone(struct snmp_pdu *);
-    struct snmp_pdu *snmp_pdu_fix(struct snmp_pdu *, int);
-    struct snmp_pdu *snmp_fix_pdu(struct snmp_pdu *, int);
-    void snmp_free_pdu(struct snmp_pdu *);
-    void snmp_pdu_free(struct snmp_pdu *);
-
-    u_char *snmp_pdu_encode(u_char *, int *, struct snmp_pdu *);
-    u_char *snmp_pdu_decode(u_char *, int *, struct snmp_pdu *);
-
-    /* Add a NULL Variable to a PDU */
-    void snmp_add_null_var(struct snmp_pdu *, oid *, int);
-
-    /* RFC 1905: Protocol Operations for SNMPv2
    *
    * RFC 1157: A Simple Network Management Protocol (SNMP)
    *
    * PDU Types
    */
-#define SNMP_PDU_GET       (ASN_CONTEXT | ASN_CONSTRUCTOR | 0x0)
+/* An SNMP PDU */
+struct snmp_pdu {
+    int command;        /* Type of this PDU */
+    struct sockaddr_in address;     /* Address of peer */
+
+    int reqid;          /* Integer32: Request id */
+    int errstat;        /* INTEGER:   Error status */
+    int errindex;       /* INTEGER:   Error index */
+
+    /* SNMPv2 Bulk Request */
+    int non_repeaters;      /* INTEGER: */
+    int max_repetitions;    /* INTEGER: */
+
+    struct variable_list *variables;    /* Variable Bindings */
+
+    /* Trap information */
+    oid *enterprise;        /* System OID */
+    int enterprise_length;
+    struct sockaddr_in agent_addr;      /* address of object generating trap */
+    int trap_type;      /* generic trap type */
+    int specific_type;      /* specific type */
+    u_int time;         /* Uptime */
+};
+
+struct snmp_pdu *snmp_pdu_create(int);
+struct snmp_pdu *snmp_pdu_clone(struct snmp_pdu *);
+struct snmp_pdu *snmp_pdu_fix(struct snmp_pdu *, int);
+struct snmp_pdu *snmp_fix_pdu(struct snmp_pdu *, int);
+void snmp_free_pdu(struct snmp_pdu *);
+void snmp_pdu_free(struct snmp_pdu *);
+
+u_char *snmp_pdu_encode(u_char *, int *, struct snmp_pdu *);
+u_char *snmp_pdu_decode(u_char *, int *, struct snmp_pdu *);
+
+/* Add a NULL Variable to a PDU */
+void snmp_add_null_var(struct snmp_pdu *, oid *, int);
+
+/* RFC 1905: Protocol Operations for SNMPv2
+ *
+ * RFC 1157: A Simple Network Management Protocol (SNMP)
+ *
+ * PDU Types
+ */
+#define SNMP_PDU_GET        (ASN_CONTEXT | ASN_CONSTRUCTOR | 0x0)
 #define SNMP_PDU_GETNEXT    (ASN_CONTEXT | ASN_CONSTRUCTOR | 0x1)
 #define SNMP_PDU_RESPONSE   (ASN_CONTEXT | ASN_CONSTRUCTOR | 0x2)
 #ifdef UNUSED_CODE
 #define SNMP_PDU_SET        (ASN_CONTEXT | ASN_CONSTRUCTOR | 0x3)
-#define TRP_REQ_MSG        (ASN_CONTEXT | ASN_CONSTRUCTOR | 0x4)       /*Obsolete */
+#define TRP_REQ_MSG     (ASN_CONTEXT | ASN_CONSTRUCTOR | 0x4)   /*Obsolete */
 #endif
 #define SNMP_PDU_GETBULK    (ASN_CONTEXT | ASN_CONSTRUCTOR | 0x5)
 #ifdef UNUSED_CODE
@@ -102,18 +102,18 @@ extern "C" {
 #define SNMP_PDU_V2TRAP     (ASN_CONTEXT | ASN_CONSTRUCTOR | 0x7)
 #define SNMP_PDU_REPORT     (ASN_CONTEXT | ASN_CONSTRUCTOR | 0x8)
 #endif
-#define MAX_BINDINGS 2147483647        /* PDU Defaults */
-#define SNMP_DEFAULT_ERRSTAT       -1
-#define SNMP_DEFAULT_ERRINDEX      -1
-#define SNMP_DEFAULT_ADDRESS       0
-#define SNMP_DEFAULT_REQID         0
-
-    /* RFC 1907: Management Information Base for SNMPv2
    *
    * RFC 1157: A Simple Network Management Protocol (SNMP)
    *
    * Trap Types
    */
+#define MAX_BINDINGS 2147483647 /* PDU Defaults */
+#define SNMP_DEFAULT_ERRSTAT        -1
+#define SNMP_DEFAULT_ERRINDEX       -1
+#define SNMP_DEFAULT_ADDRESS        0
+#define SNMP_DEFAULT_REQID      0
+
+/* RFC 1907: Management Information Base for SNMPv2
+ *
+ * RFC 1157: A Simple Network Management Protocol (SNMP)
+ *
+ * Trap Types
+ */
 #if UNUSED_CODE
 #define SNMP_TRAP_COLDSTART             (0x0)
 #define SNMP_TRAP_WARMSTART             (0x1)
@@ -129,3 +129,4 @@ extern "C" {
 #endif
 
 #endif /* SQUID_SNMP_PDU_H */
+
index 17ee4c8f3a33b47315c811627c4bb4b4cbce3163..6d594ca12fa36c58672f34ba275cff0a5b1d57bc 100644 (file)
  **********************************************************************/
 
 struct snmp_session {
-    int Version;               /* SNMP Version for this session */
+    int Version;        /* SNMP Version for this session */
 
-    u_char *community;         /* community for outgoing requests. */
-    int community_len;         /* Length of community name. */
-    int retries;               /* Number of retries before timeout. */
-    int timeout;               /* Number of uS until first timeout, then exponential backoff */
-    char *peername;            /* Domain name or dotted IP address of default peer */
-    unsigned short remote_port;        /* UDP port number of peer. */
-    unsigned short local_port;         /* My UDP port number, 0 for default, picked randomly */
+    u_char *community;      /* community for outgoing requests. */
+    int community_len;      /* Length of community name. */
+    int retries;        /* Number of retries before timeout. */
+    int timeout;        /* Number of uS until first timeout, then exponential backoff */
+    char *peername;     /* Domain name or dotted IP address of default peer */
+    unsigned short remote_port; /* UDP port number of peer. */
+    unsigned short local_port;      /* My UDP port number, 0 for default, picked randomly */
 };
 
 #define RECEIVED_MESSAGE   1
-#define TIMED_OUT         2
+#define TIMED_OUT      2
 
 #endif /* SQUID_SNMP_SESSION_H */
+
index 36f4261857bde2a2dad634122deb694158f901eb..b4a5af9a6818aa77ae9bf0181f9a4b28bdad5fb5 100644 (file)
 extern "C" {
 #endif
 
-    /* call a function at regular intervals (in seconds): */
-    extern void snmp_alarm(int ival, void (*handler) (void));
+/* call a function at regular intervals (in seconds): */
+extern void snmp_alarm(int ival, void (*handler) (void));
 
-    /* service for filedescriptors: */
+/* service for filedescriptors: */
 
-    extern void fd_add(int fd, void (*func) (int fd));
-    extern void fd_service(void);
+extern void fd_add(int fd, void (*func) (int fd));
+extern void fd_service(void);
 
-    /* ---------------------------------------------------------------------- */
+/* ---------------------------------------------------------------------- */
 
-    /*
    * SNMP Agent extension for Spacer-Controler Management
    *
    * Copyright (c) 1997 FT/CNET/DES/GRL Olivier Montanuy
    */
+/*
+ * SNMP Agent extension for Spacer-Controler Management
+ *
+ * Copyright (c) 1997 FT/CNET/DES/GRL Olivier Montanuy
+ */
 
-    /* Function to safely copy a string, and ensure the last
    * character is always '\0'. */
-    void strcpy_safe(char *str, int str_len, char *val);
+/* Function to safely copy a string, and ensure the last
+ * character is always '\0'. */
+void strcpy_safe(char *str, int str_len, char *val);
 
-    /* Function to get IP address of this agent
    * WARNING: this scans all interfaces (slow) */
-    u_long Util_local_ip_address(void);
+/* Function to get IP address of this agent
+ * WARNING: this scans all interfaces (slow) */
+u_long Util_local_ip_address(void);
 
-    /* Function to get the current time in seconds */
-    long Util_time_now(void);
+/* Function to get the current time in seconds */
+long Util_time_now(void);
 
-    /* Function to determine how long the agent has been running
    * (WARNING: this seems rather slow) */
-    long Util_time_running();
+/* Function to determine how long the agent has been running
+ * (WARNING: this seems rather slow) */
+long Util_time_running();
 
-    /* Read data from file */
-    int Util_file_read(char *file, int offset, char *data, int dataSz);
+/* Read data from file */
+int Util_file_read(char *file, int offset, char *data, int dataSz);
 
-    /* Write data into file */
-    int Util_file_write(char *file, int offset, char *data, int dataSz);
+/* Write data into file */
+int Util_file_write(char *file, int offset, char *data, int dataSz);
 
-    /* ---------------------------------------------------------------------- */
+/* ---------------------------------------------------------------------- */
 
 #ifdef __cplusplus
 }
 #endif
 #endif /* SQUID_SNMP_UTIL_H */
+
index d98c4a9538706c57779eaadd0d3ca052096cc03a..d6ad2eb6258d702548250837a5d6dd717af6a5cf 100644 (file)
 extern "C" {
 #endif
 
-    struct variable_list {
-        struct variable_list *next_variable;   /* NULL for last variable */
-        oid *name;                     /* Object identifier of variable */
-        int name_length;               /* number of subid's in name */
-        u_char type;           /* ASN type of variable */
-        union {                        /* value of variable */
-            int *integer;
-            u_char *string;
-            oid *objid;
-        } val;
-        int val_len;
-    };
-
-    struct variable_list *snmp_var_new(oid *, int);
-    struct variable_list *snmp_var_new_integer(oid *, int, int, unsigned char);
-    struct variable_list *snmp_var_clone(struct variable_list *);
-    void snmp_var_free(struct variable_list *);
-
-    u_char *snmp_var_EncodeVarBind(u_char *, int *, struct variable_list *, int);
-    u_char *snmp_var_DecodeVarBind(u_char *, int *, struct variable_list **, int);
-
-#define MAX_NAME_LEN   64      /* number of subid's in a objid */
-
-    /* RFC 1902: Structure of Management Information for SNMPv2
    *
    * Defined Types
    */
+struct variable_list {
+    struct variable_list *next_variable;    /* NULL for last variable */
+    oid *name;          /* Object identifier of variable */
+    int name_length;        /* number of subid's in name */
+    u_char type;        /* ASN type of variable */
+    union {         /* value of variable */
+        int *integer;
+        u_char *string;
+        oid *objid;
+    } val;
+    int val_len;
+};
+
+struct variable_list *snmp_var_new(oid *, int);
+struct variable_list *snmp_var_new_integer(oid *, int, int, unsigned char);
+struct variable_list *snmp_var_clone(struct variable_list *);
+void snmp_var_free(struct variable_list *);
+
+u_char *snmp_var_EncodeVarBind(u_char *, int *, struct variable_list *, int);
+u_char *snmp_var_DecodeVarBind(u_char *, int *, struct variable_list **, int);
+
+#define MAX_NAME_LEN    64  /* number of subid's in a objid */
+
+/* RFC 1902: Structure of Management Information for SNMPv2
+ *
+ * Defined Types
+ */
 #define SMI_INTEGER     ASN_INTEGER
 #define SMI_STRING      ASN_OCTET_STR
 #define SMI_OBJID       ASN_OBJECT_ID
 #define SMI_NULLOBJ     ASN_NULL
-#define SMI_IPADDRESS  (ASN_APPLICATION | 0)   /* OCTET STRING, net byte order */
-#define SMI_COUNTER32  (ASN_APPLICATION | 1)   /* INTEGER */
-#define SMI_GAUGE32    (ASN_APPLICATION | 2)   /* INTEGER */
+#define SMI_IPADDRESS  (ASN_APPLICATION | 0)    /* OCTET STRING, net byte order */
+#define SMI_COUNTER32  (ASN_APPLICATION | 1)    /* INTEGER */
+#define SMI_GAUGE32    (ASN_APPLICATION | 2)    /* INTEGER */
 #define SMI_UNSIGNED32 SMI_GAUGE32
-#define SMI_TIMETICKS  (ASN_APPLICATION | 3)   /* INTEGER */
-#define SMI_OPAQUE     (ASN_APPLICATION | 4)   /* OCTET STRING */
-#define SMI_COUNTER64  (ASN_APPLICATION | 6)   /* INTEGER */
-
-    /* constants for enums for the MIB nodes
    * cachePeerAddressType (InetAddressType / ASN_INTEGER)
    * cacheClientAddressType (InetAddressType / ASN_INTEGER)
    * Defined Types
    */
+#define SMI_TIMETICKS  (ASN_APPLICATION | 3)    /* INTEGER */
+#define SMI_OPAQUE     (ASN_APPLICATION | 4)    /* OCTET STRING */
+#define SMI_COUNTER64  (ASN_APPLICATION | 6)    /* INTEGER */
+
+/* constants for enums for the MIB nodes
+ * cachePeerAddressType (InetAddressType / ASN_INTEGER)
+ * cacheClientAddressType (InetAddressType / ASN_INTEGER)
+ * Defined Types
+ */
 
 #ifndef INETADDRESSTYPE_ENUMS
 #define INETADDRESSTYPE_ENUMS
@@ -98,31 +98,32 @@ extern "C" {
 
 #endif                          /* INETADDRESSTYPE_ENUMS */
 
-    /*
    * RFC 1905: Protocol Operations for SNMPv2
    *
    * Variable binding.
    *
    * VarBind ::=
    *   SEQUENCE {
    *     name ObjectName
    *     CHOICE {
    *       value ObjectSyntax
    *       unSpecified NULL
    *       noSuchObject[0] NULL
    *       noSuchInstance[1] NULL
    *       endOfMibView[2] NULL
    *     }
    *   }
    */
+/*
+ * RFC 1905: Protocol Operations for SNMPv2
+ *
+ * Variable binding.
+ *
+ * VarBind ::=
+ *   SEQUENCE {
+ *     name ObjectName
+ *     CHOICE {
+ *       value ObjectSyntax
+ *       unSpecified NULL
+ *       noSuchObject[0] NULL
+ *       noSuchInstance[1] NULL
+ *       endOfMibView[2] NULL
+ *     }
+ *   }
+ */
 #define SMI_NOSUCHOBJECT   (ASN_CONTEXT | ASN_PRIMITIVE | 0x0) /* noSuchObject[0] */
 #define SMI_NOSUCHINSTANCE (ASN_CONTEXT | ASN_PRIMITIVE | 0x1) /* noSuchInstance[1] */
 #define SMI_ENDOFMIBVIEW   (ASN_CONTEXT | ASN_PRIMITIVE | 0x2) /* endOfMibView[2] */
-    typedef struct variable variable;
-    typedef struct variable_list variable_list;
+typedef struct variable variable;
+typedef struct variable_list variable_list;
 
 #ifdef __cplusplus
 }
 #endif
 
 #endif /* SQUID_SNMP_VARS_H */
+
index eae7380d33f3d8039dd854f06b74f95b4f0b2623..bc3a20746363ec3a9c6b4758acb3e43575f3a6e2 100644 (file)
@@ -169,7 +169,7 @@ SplayNode<V>::remove(Value const dataToRemove, SPLAYCMP * compare)
 
     SplayNode<V> *result = splay(dataToRemove, compare);
 
-    if (splayLastResult == 0) {        /* found it */
+    if (splayLastResult == 0) { /* found it */
         SplayNode<V> *newTop;
 
         if (result->left == NULL) {
@@ -185,7 +185,7 @@ SplayNode<V>::remove(Value const dataToRemove, SPLAYCMP * compare)
         return newTop;
     }
 
-    return result;                     /* It wasn't there */
+    return result;          /* It wasn't there */
 }
 
 template<class V>
@@ -249,7 +249,7 @@ SplayNode<V>::splay(FindValue const &dataToFind, int( * compare)(FindValue const
                 break;
 
             if ((splayLastResult = compare(dataToFind, top->left->data)) < 0) {
-                y = top->left; /* rotate right */
+                y = top->left;  /* rotate right */
                 top->left = y->right;
                 y->right = top;
                 top = y;
@@ -258,7 +258,7 @@ SplayNode<V>::splay(FindValue const &dataToFind, int( * compare)(FindValue const
                     break;
             }
 
-            r->left = top;     /* link right */
+            r->left = top;  /* link right */
             r = top;
             top = top->left;
         } else if (splayLastResult > 0) {
@@ -266,7 +266,7 @@ SplayNode<V>::splay(FindValue const &dataToFind, int( * compare)(FindValue const
                 break;
 
             if ((splayLastResult = compare(dataToFind, top->right->data)) > 0) {
-                y = top->right;        /* rotate left */
+                y = top->right; /* rotate left */
                 top->right = y->left;
                 y->left = top;
                 top = y;
@@ -275,7 +275,7 @@ SplayNode<V>::splay(FindValue const &dataToFind, int( * compare)(FindValue const
                     break;
             }
 
-            l->right = top;    /* link left */
+            l->right = top; /* link left */
             l = top;
             top = top->right;
         } else {
@@ -283,7 +283,7 @@ SplayNode<V>::splay(FindValue const &dataToFind, int( * compare)(FindValue const
         }
     }
 
-    l->right = top->left;      /* assemble */
+    l->right = top->left;   /* assemble */
     r->left = top->right;
     top->left = N.right;
     top->right = N.left;
@@ -516,3 +516,4 @@ SplayConstIterator<V>::operator * () const
 #endif /* cplusplus */
 
 #endif /* SQUID_SPLAY_H */
+
index d7f439a557a49f77b236f8fa38a39466534c5308..316a8374985200383c92a97f8fbdadb0514306fb 100644 (file)
@@ -9,7 +9,7 @@
 #ifndef SQUID_CONFIG_H
 #define SQUID_CONFIG_H
 
-#include "autoconf.h"          /* For GNU autoconf variables */
+#include "autoconf.h"       /* For GNU autoconf variables */
 
 #if !defined(HAVE_SQUID)
 /* sub-packages define their own version details */
@@ -44,7 +44,7 @@
 
 #ifdef USE_POSIX_REGEX
 #ifndef USE_RE_SYNTAX
-#define USE_RE_SYNTAX  REG_EXTENDED    /* default Syntax */
+#define USE_RE_SYNTAX   REG_EXTENDED    /* default Syntax */
 #endif
 #endif
 
@@ -98,3 +98,4 @@ using namespace Squid;
 #include "leakcheck.h"
 
 #endif /* SQUID_CONFIG_H */
+
index f3083e8fbf44d6096acb1db4a424d75baac66103..39e9f6db522c5b8c323a0dc48fd2688e48132c42 100644 (file)
@@ -35,7 +35,7 @@ extern "C" {
 #include <security.h>
 #include <sspi.h>
 
-    typedef char * SSP_blobP;
+typedef char * SSP_blobP;
 
 #define WINNT_SECURITY_DLL "security.dll"
 #define WIN2K_SECURITY_DLL "secur32.dll"
@@ -50,16 +50,16 @@ extern "C" {
 #define SSP_OK 1
 #define SSP_ERROR 2
 
-    HMODULE LoadSecurityDll(int, const char *);
-    void UnloadSecurityDll(void);
-    BOOL WINAPI SSP_LogonUser(PTSTR, PTSTR, PTSTR);
-    BOOL WINAPI SSP_ValidateNTLMCredentials(PVOID, int, char *);
-    const char * WINAPI SSP_ValidateNegotiateCredentials(PVOID, int, PBOOL, int *, char *);
-    const char * WINAPI SSP_MakeChallenge(PVOID, int);
-    const char * WINAPI SSP_MakeNegotiateBlob(PVOID, int, PBOOL, int *, char *);
+HMODULE LoadSecurityDll(int, const char *);
+void UnloadSecurityDll(void);
+BOOL WINAPI SSP_LogonUser(PTSTR, PTSTR, PTSTR);
+BOOL WINAPI SSP_ValidateNTLMCredentials(PVOID, int, char *);
+const char * WINAPI SSP_ValidateNegotiateCredentials(PVOID, int, PBOOL, int *, char *);
+const char * WINAPI SSP_MakeChallenge(PVOID, int);
+const char * WINAPI SSP_MakeNegotiateBlob(PVOID, int, PBOOL, int *, char *);
 
-    extern BOOL Use_Unicode;
-    extern BOOL NTLM_LocalCall;
+extern BOOL Use_Unicode;
+extern BOOL NTLM_LocalCall;
 
 #if defined(__cplusplus)
 }
@@ -67,3 +67,4 @@ extern "C" {
 
 #endif /* _SQUID_WINDOWS_ */
 #endif /* LIBSSPWIN32_H_ */
+
index fe8ecf94128b608f49bee9ef99ba3035208ad028..8229ca23aae22629cb5d081df7a3998051a59e43 100644 (file)
@@ -70,3 +70,4 @@ int statMemoryAccounted(void);
 SQUIDCEXTERN unsigned int RoundTo(const unsigned int num, const unsigned int what);
 
 #endif /* SQUID_UTIL_H */
+
index 0dc1638b1ed6a2fc5be31c390ae82d67939fbcde..a3f4c716abd78d558367d55233a55c7b19ef77e4 100644 (file)
@@ -18,3 +18,4 @@ extern
 char *uudecode(const char *);
 
 #endif /* _SQUID_UUDECODE_H */
+
index b5004467e414d9a36ede0a2743d85f3c2cfbee62..d579ffc719d1f0bb772a0b7dac00f6c12ca0fffc 100644 (file)
@@ -21,3 +21,4 @@
 #ifndef APP_FULLNAME
 #define APP_FULLNAME  PACKAGE "/" VERSION
 #endif
+
index efbae83a342c8a221cceffadfdd522ab7c685a32..d0968a138237d8b326a7f6462285d97859a37af7 100644 (file)
@@ -12,3 +12,4 @@
 SQUIDCEXTERN int xusleep(unsigned int);
 
 #endif /* _INC_XUSLEEP_H */
+
index ae38e357916ec7087d7ac0abedc472bc6ecada83..409929c3137c9cafe6a3b2a8e5021540b1efebb2 100644 (file)
@@ -22,3 +22,4 @@
 #include "util.h"
 
 int splayLastResult = 0;
+
index fdaf14b70c73475a8fa6c3c1bcf0bb38b862846f..a9d19e31f6739c6e7b42a6661e895584785b7353 100644 (file)
@@ -81,18 +81,18 @@ base64_decode(char *result, unsigned int result_size, const char *p)
         /* One quantum of four encoding characters/24 bit */
         if (j+4 <= result_size) {
             // Speed optimization: plenty of space, avoid some per-byte checks.
-            result[j++] = (val >> 16) & 0xff;  /* High 8 bits */
-            result[j++] = (val >> 8) & 0xff;   /* Mid 8 bits */
-            result[j++] = val & 0xff;          /* Low 8 bits */
+            result[j++] = (val >> 16) & 0xff;   /* High 8 bits */
+            result[j++] = (val >> 8) & 0xff;    /* Mid 8 bits */
+            result[j++] = val & 0xff;       /* Low 8 bits */
         } else {
             // part-quantum goes a bit slower with per-byte checks
-            result[j++] = (val >> 16) & 0xff;  /* High 8 bits */
+            result[j++] = (val >> 16) & 0xff;   /* High 8 bits */
             if (j == result_size)
                 return j;
-            result[j++] = (val >> 8) & 0xff;   /* Mid 8 bits */
+            result[j++] = (val >> 8) & 0xff;    /* Mid 8 bits */
             if (j == result_size)
                 return j;
-            result[j++] = val & 0xff;          /* Low 8 bits */
+            result[j++] = val & 0xff;       /* Low 8 bits */
         }
         if (j == result_size)
             return j;
@@ -212,3 +212,4 @@ base64_encode(char *result, int result_size, const char *data, int data_size)
     }
     return (out_cnt >= result_size?result_size:out_cnt);
 }
+
index a0ce11be5cc4b903daad334773420374f875de81..19193d57ceb7dbd3325b6ab8be22ef55c8a42851 100644 (file)
@@ -31,3 +31,4 @@ latin1_to_utf8(char *out, size_t size, const char *in)
         return NULL;
     return out;
 }
+
index 6d16851385a216c3627855437fb2d5d24d1e3e61..26f4708b9857622d9e5ba06e37762c86f5cc51d3 100644 (file)
 #include <dirent.h>
 
 #define WIN32_LEAN_AND_MEAN
-#include <windows.h>           /* for GetFileAttributes */
+#include <windows.h>        /* for GetFileAttributes */
 
-#define SUFFIX ("*")
-#define        SLASH   ("\\")
+#define SUFFIX  ("*")
+#define SLASH   ("\\")
 
 /*
  * opendir
@@ -293,3 +293,4 @@ seekdir(DIR * dirp, long lPos)
     }
 }
 #endif /* _SQUID_WINDOWS_ */
+
index bee1ea63c462158993771b492f7ba045b573f97a..4068c619a3a0d4d0a27d6b14fd711dec901365f5 100644 (file)
@@ -302,3 +302,4 @@ crypt(const char *wort, const char *salt)
 
     return retkey;
 }
+
index 9c575400ab37619ae14dee55a9af7eefc86cf39e..3e128bf196fb089f403dc630eaaaeb146b0f3b1b 100644 (file)
@@ -44,3 +44,4 @@ getfullhostname(void)
         xstrncpy(buf, hp->h_name, RFC2181_MAXHOSTNAMELEN);
     return buf;
 }
+
index 4cd6bad32c711fec7bbaafad67c54ae64385a23a..77cab00f0cced8f38bdb3e25bcb0403dab9794d0 100644 (file)
@@ -44,15 +44,15 @@ static char sccsid[] = "@(#)getopt.c        8.3 (Berkeley) 4/27/95";
 #include <stdlib.h>
 #include <string.h>
 
-int opterr = 1,                        /* if error message should be printed */
-             optind = 1,                       /* index into parent argv vector */
-                      optopt,                  /* character checked for validity */
-                      optreset;                        /* reset getopt */
-char *optarg;                  /* argument associated with option */
+int opterr = 1,         /* if error message should be printed */
+    optind = 1,            /* index into parent argv vector */
+    optopt,           /* character checked for validity */
+    optreset;         /* reset getopt */
+char *optarg;           /* argument associated with option */
 
-#define        BADCH   (int)'?'
-#define        BADARG  (int)':'
-#define        EMSG    (char*)""
+#define BADCH   (int)'?'
+#define BADARG  (int)':'
+#define EMSG    (char*)""
 
 /*
  * getopt --
@@ -64,21 +64,21 @@ int nargc;
 char *const *nargv;
 const char *ostr;
 {
-    static char *place = EMSG; /* option letter processing */
-    char *oli;                 /* option letter list index */
+    static char *place = EMSG;  /* option letter processing */
+    char *oli;          /* option letter list index */
 
-    if (optreset || !*place) { /* update scanning pointer */
+    if (optreset || !*place) {  /* update scanning pointer */
         optreset = 0;
         if (optind >= nargc || *(place = nargv[optind]) != '-') {
             place = EMSG;
             return (-1);
         }
-        if (place[1] && *++place == '-') {     /* found "--" */
+        if (place[1] && *++place == '-') {  /* found "--" */
             ++optind;
             place = EMSG;
             return (-1);
         }
-    }                          /* option letter okay? */
+    }               /* option letter okay? */
     if ((optopt = (int) *place++) == (int) ':' ||
             !(oli = strchr(ostr, optopt))) {
         /*
@@ -94,14 +94,14 @@ const char *ostr;
                            "%s: illegal option -- %c\n", __FILE__, optopt);
         return (BADCH);
     }
-    if (*++oli != ':') {       /* don't need argument */
+    if (*++oli != ':') {    /* don't need argument */
         optarg = NULL;
         if (!*place)
             ++optind;
-    } else {                   /* need an argument */
-        if (*place)            /* no white space */
+    } else {            /* need an argument */
+        if (*place)     /* no white space */
             optarg = place;
-        else if (nargc <= ++optind) {  /* no arg */
+        else if (nargc <= ++optind) {   /* no arg */
             place = EMSG;
             if (*ostr == ':')
                 return (BADARG);
@@ -110,10 +110,11 @@ const char *ostr;
                                "%s: option requires an argument -- %c\n",
                                __FILE__, optopt);
             return (BADCH);
-        } else                 /* white space */
+        } else          /* white space */
             optarg = nargv[optind];
         place = EMSG;
         ++optind;
     }
-    return (optopt);           /* dump back option letter */
+    return (optopt);        /* dump back option letter */
 }
+
index af10dde639bf0224d2ae29ab44df8ce0231f7345..f807ae5daaedaaa91d9abe6c6b6d4be0f6289cdd 100644 (file)
@@ -67,22 +67,22 @@ hash4(const void *data, unsigned int size)
         break;
     case 7:
         HASH4;
-        /* FALLTHROUGH */
+    /* FALLTHROUGH */
     case 6:
         HASH4;
-        /* FALLTHROUGH */
+    /* FALLTHROUGH */
     case 5:
         HASH4;
-        /* FALLTHROUGH */
+    /* FALLTHROUGH */
     case 4:
         HASH4;
-        /* FALLTHROUGH */
+    /* FALLTHROUGH */
     case 3:
         HASH4;
-        /* FALLTHROUGH */
+    /* FALLTHROUGH */
     case 2:
         HASH4;
-        /* FALLTHROUGH */
+    /* FALLTHROUGH */
     case 1:
         HASH4;
     }
@@ -375,3 +375,4 @@ main(void)
     exit(0);
 }
 #endif
+
index 8e6a21ee11aea21baef15eb4e62bd210cb01939d..1f30e6de28ebb411a9c3a457d80140db95a7b7df 100644 (file)
@@ -48,7 +48,7 @@ static void _heap_grow(heap * hp);
 static void _heap_swap_element(heap * hp, heap_node * elm1, heap_node * elm2);
 static int _heap_node_exist(heap * hp, int id);
 
-#ifdef HEAP_DEBUG
+#ifdef  HEAP_DEBUG
 void _heap_print_tree(heap * hp, heap_node * node);
 #endif /* HEAP_DEBUG */
 
@@ -158,7 +158,7 @@ heap_delete(heap * hp, heap_node * elm)
         (void) 0;
     } else if (hp->last > 0) {
         if (lastNode->key < hp->nodes[Parent(lastNode->id)]->key)
-            _heap_ify_up(hp, lastNode);                /* COOL! */
+            _heap_ify_up(hp, lastNode);     /* COOL! */
         _heap_ify_down(hp, lastNode);
     }
     return data;
@@ -169,7 +169,7 @@ heap_delete(heap * hp, heap_node * elm)
  * heapify operation.
  */
 
-#ifndef        heap_gen_key
+#ifndef heap_gen_key
 /*
  * Function to generate keys.  See macro definition in heap.h.
  */
@@ -195,7 +195,7 @@ heap_extractmin(heap * hp)
     mutex_lock(hp->lock);
 
     data = hp->nodes[0]->data;
-    heap_delete(hp, hp->nodes[0]);     /* Delete the root */
+    heap_delete(hp, hp->nodes[0]);  /* Delete the root */
 
     mutex_unlock(hp->lock);
 
@@ -286,7 +286,7 @@ heap_peep(heap * hp, int n)
     return data;
 }
 
-#ifndef        heap_nodes
+#ifndef heap_nodes
 /*
  * Current number of nodes in HP.
  */
@@ -297,7 +297,7 @@ heap_nodes(heap * hp)
 }
 #endif /* heap_nodes */
 
-#ifndef        heap_empty
+#ifndef heap_empty
 /*
  * Determine if the heap is empty.  Returns 1 if HP has no elements and 0
  * otherwise.
@@ -356,7 +356,7 @@ _heap_ify_up(heap * hp, heap_node * elm)
         parentNode = hp->nodes[Parent(elm->id)];
         if (parentNode->key <= elm->key)
             break;
-        _heap_swap_element(hp, parentNode, elm);       /* Demote the parent. */
+        _heap_swap_element(hp, parentNode, elm);    /* Demote the parent. */
     }
 }
 
@@ -374,7 +374,7 @@ _heap_swap_element(heap * hp, heap_node * elm1, heap_node * elm2)
     hp->nodes[elm2->id] = elm2;
 }
 
-#ifdef NOTDEF
+#ifdef  NOTDEF
 /*
  * Copy KEY and DATA fields of SRC to DEST. ID field is NOT copied.
  */
@@ -473,7 +473,7 @@ verify_heap_property(heap * hp)
     return correct;
 }
 
-#ifdef MEASURE_HEAP_SKEW
+#ifdef  MEASURE_HEAP_SKEW
 
 /****************************************************************************
  * Heap skew computation
@@ -506,7 +506,7 @@ calc_heap_skew(heap * heap, int replace)
 {
     heap_node **nodes;
     long id, diff, skew = 0;
-#ifdef HEAP_DEBUG_SKEW
+#ifdef  HEAP_DEBUG_SKEW
     long skewsq = 0;
 #endif /* HEAP_DEBUG_SKEW */
     float norm = 0;
@@ -540,9 +540,9 @@ calc_heap_skew(heap * heap, int replace)
         diff = id - nodes[id]->id;
         skew += abs(diff);
 
-#ifdef HEAP_DEBUG_SKEW
+#ifdef  HEAP_DEBUG_SKEW
         skewsq += diff * diff;
-#ifdef HEAP_DEBUG_ALL
+#ifdef  HEAP_DEBUG_ALL
         printf("%d\tKey = %f, diff = %d\n", id, nodes[id]->key, diff);
 #endif /* HEAP_DEBUG */
 #endif /* HEAP_DEBUG_SKEW */
@@ -582,3 +582,4 @@ calc_heap_skew(heap * heap, int replace)
 }
 
 #endif /* MEASURE_HEAP_SKEW */
+
index cab09acbec1da20dc496d258cefcff680c237ed5..899be5834291d69d726d41f4b735d87a2c67db20 100644 (file)
@@ -101,3 +101,4 @@ html_quote(const char *string)
     *dst = '\0';
     return (buf);
 }
+
index d423470618c5356857b24927a228dd74c1f36747..502b76084f2d82b41def124b7490b96fcd06e33e 100644 (file)
@@ -48,3 +48,4 @@ parse_iso3307_time(const char *buf)
 #endif
     return t;
 }
+
index c950648647c33a5f9ad80116d8e93c6f190703e3..c88869949e2e4808f284cb2400cb340dc78bc1d9 100644 (file)
@@ -41,3 +41,4 @@ Trie::add(char const *aString, size_t theLength, void *privatedata)
 
     return head->add(aString, theLength, privatedata, transform);
 }
+
index 05ebc0c10dff3e1dce4b24eea2695e11bc114fbc..48b45d3f9f7e42d02f58f34219aedc7e4c1d8545 100644 (file)
@@ -72,3 +72,4 @@ Trie::findPrefix (char const *aString, size_t theLength)
 }
 
 #endif /* LIBTRIE_SQUID_H */
+
index 8dbd34ca4dbd6bb6b224b8251fc23bd89d157936..0318842e49cd84aa890e60ab4fcfffd24f5e9b48 100644 (file)
@@ -46,3 +46,4 @@ class TrieCaseless : public TrieCharTransform
 #endif /* __cplusplus */
 
 #endif /* LIBTRIE_TRIECHARTRANSFORM_H */
+
index a040dc150f02515470e5df77e82ba811527e0ef1..4c37104fadb994d2ab0bb4fffacac41cdb77bae6 100644 (file)
@@ -49,3 +49,4 @@ TrieNode::add(char const *aString, size_t theLength, void *privatedata, TrieChar
         return true;
     }
 }
+
index 8d3e395ee305421d34008277e203782407532a7d..0f93a4468bc5e3a584b0c9ad915ecfd439b2b365 100644 (file)
@@ -82,3 +82,4 @@ TrieNode::find (char const *aString, size_t theLength, TrieCharTransform *transf
     }
 }
 #endif /* LIBTRIE_TRIENODE_H */
+
index 7d3e262efdcb0b2c669e28bf8489c06bba73d144..c5d9d9f779b3f2f88a6cbb721e8fef1917fe5f70 100644 (file)
@@ -122,3 +122,4 @@ int main (int argc, char **argv)
 
     return 0;
 }
+
index 20155170a2eca3be46f39bba394ede6f20fda383..b7aa70ba3d2e7fe325b430f6b79fcfc2420fe162 100644 (file)
@@ -48,3 +48,4 @@ main(int argc, char **argv)
              "1234567890123456789012345678901234567890");
     return 0;
 }
+
index 44365a3f1a2c8a3d07b36518c554275bbfe9a733..0e03db1fde2aa4d3afa3d8f1b33cdcbb18bdec88 100644 (file)
--- a/lib/md5.c
+++ b/lib/md5.c
 #if !HAVE_NETTLE_MD5_H
 
 #if HAVE_STRING_H
-#include <string.h>            /* for memcpy() */
+#include <string.h>     /* for memcpy() */
 #endif
 #if HAVE_SYS_TYPES_H
-#include <sys/types.h>         /* for stupid systems */
+#include <sys/types.h>      /* for stupid systems */
 #endif
 
 #ifdef WORDS_BIGENDIAN
@@ -95,9 +95,9 @@ SquidMD5Update(struct SquidMD5Context *ctx, const void *_buf, unsigned len)
 
     t = ctx->bytes[0];
     if ((ctx->bytes[0] = t + len) < t)
-        ctx->bytes[1]++;       /* Carry from low to high */
+        ctx->bytes[1]++;    /* Carry from low to high */
 
-    t = 64 - (t & 0x3f);       /* Space available in ctx->in (at least 1) */
+    t = 64 - (t & 0x3f);    /* Space available in ctx->in (at least 1) */
     if (t > len) {
         memcpy((uint8_t *) ctx->in + 64 - t, buf, len);
         return;
@@ -129,7 +129,7 @@ SquidMD5Update(struct SquidMD5Context *ctx, const void *_buf, unsigned len)
 void
 SquidMD5Final(unsigned char digest[16], struct SquidMD5Context *ctx)
 {
-    int count = ctx->bytes[0] & 0x3f;  /* Number of bytes in ctx->in */
+    int count = ctx->bytes[0] & 0x3f;   /* Number of bytes in ctx->in */
     uint8_t *p = (uint8_t *) ctx->in + count;
 
     /* Set the first char of padding to 0x80.  There is always room. */
@@ -138,7 +138,7 @@ SquidMD5Final(unsigned char digest[16], struct SquidMD5Context *ctx)
     /* Bytes of padding needed to make 56 bytes (-8..55) */
     count = 56 - 1 - count;
 
-    if (count < 0) {           /* Padding forces an extra block */
+    if (count < 0) {        /* Padding forces an extra block */
         memset(p, 0, count + 8);
         byteSwap(ctx->in, 16);
         SquidMD5Transform(ctx->buf, ctx->in);
@@ -155,7 +155,7 @@ SquidMD5Final(unsigned char digest[16], struct SquidMD5Context *ctx)
 
     byteSwap(ctx->buf, 4);
     memcpy(digest, ctx->buf, 16);
-    memset(ctx, 0, sizeof(*ctx));      /* In case it's sensitive */
+    memset(ctx, 0, sizeof(*ctx));   /* In case it's sensitive */
 }
 
 #ifndef ASM_MD5
@@ -170,7 +170,7 @@ SquidMD5Final(unsigned char digest[16], struct SquidMD5Context *ctx)
 
 /* This is the central step in the MD5 algorithm. */
 #define MD5STEP(f,w,x,y,z,in,s) \
-        (w += f(x,y,z) + in, w = (w<<s | w>>(32-s)) + x)
+     (w += f(x,y,z) + in, w = (w<<s | w>>(32-s)) + x)
 
 /*
  * The core of the MD5 algorithm, this alters an existing MD5 hash to
@@ -263,3 +263,4 @@ SquidMD5Transform(uint32_t buf[4], uint32_t const in[16])
 
 #endif /* !ASM_MD5 */
 #endif /* HAVE_ETTLE_MD5_H */
+
index 2a394015db46c740c6b54b693fd471ee3e3ed04c..280d45cdff4e74c40371fedfb8a532e4b180cb8c 100644 (file)
@@ -17,7 +17,7 @@
 #endif
 
 #include "ntlmauth/ntlmauth.h"
-#include "util.h"              /* for base64-related stuff */
+#include "util.h"       /* for base64-related stuff */
 
 /* ************************************************************************* */
 /* DEBUG functions */
@@ -206,9 +206,9 @@ ntlm_make_challenge(ntlm_challenge *ch,
                     const uint32_t flags)
 {
     int pl = 0;
-    memset(ch, 0, sizeof(ntlm_challenge));     /* reset */
-    memcpy(ch->hdr.signature, "NTLMSSP", 8);           /* set the signature */
-    ch->hdr.type = htole32(NTLM_CHALLENGE);    /* this is a challenge */
+    memset(ch, 0, sizeof(ntlm_challenge));  /* reset */
+    memcpy(ch->hdr.signature, "NTLMSSP", 8);        /* set the signature */
+    ch->hdr.type = htole32(NTLM_CHALLENGE); /* this is a challenge */
     if (domain != NULL) {
         // silently truncate the domain if it exceeds 2^16-1 bytes.
         // NTLM packets normally expect 2^8 bytes of domain.
@@ -216,7 +216,7 @@ ntlm_make_challenge(ntlm_challenge *ch,
         ntlm_add_to_payload(&ch->hdr, ch->payload, &pl, &ch->target, domain, dlen);
     }
     ch->flags = htole32(flags);
-    ch->context_low = 0;               /* check this out */
+    ch->context_low = 0;        /* check this out */
     ch->context_high = 0;
     memcpy(ch->challenge, challenge_nonce, challenge_nonce_len);
 }
@@ -231,10 +231,10 @@ ntlm_make_challenge(ntlm_challenge *ch,
  * this function will only insert data if the packet contains any. Otherwise
  * the buffers will be left untouched.
  *
- * \retval NTLM_ERR_NONE       username present, maybe also domain.
- * \retval NTLM_ERR_PROTOCOL   packet type is not an authentication packet.
- * \retval NTLM_ERR_LOGON      no username.
- * \retval NTLM_ERR_BLOB       domain field is apparently larger than the packet.
+ * \retval NTLM_ERR_NONE    username present, maybe also domain.
+ * \retval NTLM_ERR_PROTOCOL    packet type is not an authentication packet.
+ * \retval NTLM_ERR_LOGON   no username.
+ * \retval NTLM_ERR_BLOB    domain field is apparently larger than the packet.
  */
 int
 ntlm_unpack_auth(const ntlm_authenticate *auth, char *user, char *domain, const int32_t size)
@@ -275,3 +275,4 @@ ntlm_unpack_auth(const ntlm_authenticate *auth, char *user, char *domain, const
 
     return NTLM_ERR_NONE;
 }
+
index cb743dbf72d3cd030f99ab51bbf8ab07f6f3f4da..e94be2003458cf0e7d078b4f71d8fed7a08fb82f 100644 (file)
 extern "C" {
 #endif
 
-    /* Used internally. Microsoft seems to think this is right, I believe them.
    * Right. */
-#define NTLM_MAX_FIELD_LENGTH 300      /* max length of an NTLMSSP field */
+/* Used internally. Microsoft seems to think this is right, I believe them.
+ * Right. */
+#define NTLM_MAX_FIELD_LENGTH 300   /* max length of an NTLMSSP field */
 
-    /* max length of the BLOB data. (and helper input/output buffer) */
+/* max length of the BLOB data. (and helper input/output buffer) */
 #define NTLM_BLOB_BUFFER_SIZE 10240
 
-    /* Here start the NTLMSSP definitions */
+/* Here start the NTLMSSP definitions */
 
-    /* these are marked as "extra" fields */
+/* these are marked as "extra" fields */
 #define NTLM_REQUEST_INIT_RESPONSE          0x100000
 #define NTLM_REQUEST_ACCEPT_RESPONSE        0x200000
 #define NTLM_REQUEST_NON_NT_SESSION_KEY     0x400000
 
-    /* NTLM error codes */
+/* NTLM error codes */
 #define NTLM_ERR_INTERNAL         -3
 #define NTLM_ERR_BLOB             -2
 #define NTLM_ERR_BAD_PROTOCOL     -1
 #define NTLM_ERR_NONE              0    /* aka. SMBLM_ERR_NONE */
-    /* codes used by smb_lm helper */
+/* codes used by smb_lm helper */
 #define NTLM_ERR_SERVER            1    /* aka. SMBLM_ERR_SERVER   */
 #define NTLM_ERR_PROTOCOL          2    /* aka. SMBLM_ERR_PROTOCOL */
 #define NTLM_ERR_LOGON             3    /* aka. SMBLM_ERR_LOGON    */
 #define NTLM_ERR_UNTRUSTED_DOMAIN  4
 #define NTLM_ERR_NOT_CONNECTED     10
-    /* codes used by mswin_ntlmsspi helper */
+/* codes used by mswin_ntlmsspi helper */
 #define NTLM_SSPI_ERROR         1
 #define NTLM_BAD_NTGROUP        2
 #define NTLM_BAD_REQUEST        3
-    /* TODO: reduce the above codes down to one set non-overlapping. */
-
-    /** String header. String data resides at the end of the request */
-    typedef struct _strhdr {
-        int16_t len;           /**< Length in bytes */
-        int16_t maxlen;                /**< Allocated space in bytes */
-        int32_t offset;                /**< Offset from start of request */
-    } strhdr;
-
-    /** We use this to keep data/length couples. */
-    typedef struct _lstring {
-        int32_t l;                     /**< length, -1 if empty */
-        char *str;                     /**< the string. NULL if not initialized */
-    } lstring;
-
-    /** Debug dump the given flags field to stderr */
-    void ntlm_dump_ntlmssp_flags(const uint32_t flags);
-
-    /* ************************************************************************* */
-    /* Packet and Payload structures and handling functions */
-    /* ************************************************************************* */
-
-    /* NTLM request types that we know about */
-#define NTLM_ANY                       0
-#define NTLM_NEGOTIATE                 1
-#define NTLM_CHALLENGE                 2
-#define NTLM_AUTHENTICATE              3
-
-    /** This is an header common to all packets, it's used to discriminate
    * among the different packet signature types.
    */
-    typedef struct _ntlmhdr {
-        char signature[8];             /**< "NTLMSSP" */
-        int32_t type;          /**< One of the NTLM_* types above. */
-    } ntlmhdr;
-
-    /** Validate the packet type matches one we want. */
-    int ntlm_validate_packet(const ntlmhdr *packet, const int32_t type);
-
-    /** Retrieve a string from the NTLM packet payload. */
-    lstring ntlm_fetch_string(const ntlmhdr *packet,
-                              const int32_t packet_length,
-                              const strhdr *str,
-                              const uint32_t flags);
-
-    /** Append a string to the NTLM packet payload. */
-    void ntlm_add_to_payload(const ntlmhdr *packet_hdr,
-                             char *payload,
-                             int *payload_length,
-                             strhdr * hdr,
-                             const char *toadd,
-                             const uint16_t toadd_length);
-
-    /* ************************************************************************* */
-    /* Negotiate Packet structures and functions */
-    /* ************************************************************************* */
-
-    /* negotiate request flags */
+/* TODO: reduce the above codes down to one set non-overlapping. */
+
+/** String header. String data resides at the end of the request */
+typedef struct _strhdr {
+    int16_t len;        /**< Length in bytes */
+    int16_t maxlen;     /**< Allocated space in bytes */
+    int32_t offset;     /**< Offset from start of request */
+} strhdr;
+
+/** We use this to keep data/length couples. */
+typedef struct _lstring {
+    int32_t l;          /**< length, -1 if empty */
+    char *str;          /**< the string. NULL if not initialized */
+} lstring;
+
+/** Debug dump the given flags field to stderr */
+void ntlm_dump_ntlmssp_flags(const uint32_t flags);
+
+/* ************************************************************************* */
+/* Packet and Payload structures and handling functions */
+/* ************************************************************************* */
+
+/* NTLM request types that we know about */
+#define NTLM_ANY            0
+#define NTLM_NEGOTIATE          1
+#define NTLM_CHALLENGE          2
+#define NTLM_AUTHENTICATE       3
+
+/** This is an header common to all packets, it's used to discriminate
+ * among the different packet signature types.
+ */
+typedef struct _ntlmhdr {
+    char signature[8];      /**< "NTLMSSP" */
+    int32_t type;       /**< One of the NTLM_* types above. */
+} ntlmhdr;
+
+/** Validate the packet type matches one we want. */
+int ntlm_validate_packet(const ntlmhdr *packet, const int32_t type);
+
+/** Retrieve a string from the NTLM packet payload. */
+lstring ntlm_fetch_string(const ntlmhdr *packet,
+                          const int32_t packet_length,
+                          const strhdr *str,
+                          const uint32_t flags);
+
+/** Append a string to the NTLM packet payload. */
+void ntlm_add_to_payload(const ntlmhdr *packet_hdr,
+                         char *payload,
+                         int *payload_length,
+                         strhdr * hdr,
+                         const char *toadd,
+                         const uint16_t toadd_length);
+
+/* ************************************************************************* */
+/* Negotiate Packet structures and functions */
+/* ************************************************************************* */
+
+/* negotiate request flags */
 #define NTLM_NEGOTIATE_UNICODE              0x0001
 #define NTLM_NEGOTIATE_ASCII                0x0002
 #define NTLM_NEGOTIATE_REQUEST_TARGET       0x0004
@@ -118,78 +118,79 @@ extern "C" {
 #define NTLM_NEGOTIATE_THIS_IS_LOCAL_CALL   0x4000
 #define NTLM_NEGOTIATE_ALWAYS_SIGN          0x8000
 
-    /** Negotiation request sent by client */
-    typedef struct _ntlm_negotiate {
-        ntlmhdr hdr;           /**< "NTLMSSP" , LSWAP(0x1) */
-        uint32_t flags;        /**< Request flags */
-        strhdr domain;         /**< Domain we wish to authenticate in */
-        strhdr workstation;    /**< Client workstation name */
-        char payload[256];     /**< String data */
-    } ntlm_negotiate;
+/** Negotiation request sent by client */
+typedef struct _ntlm_negotiate {
+    ntlmhdr hdr;        /**< "NTLMSSP" , LSWAP(0x1) */
+    uint32_t flags; /**< Request flags */
+    strhdr domain;      /**< Domain we wish to authenticate in */
+    strhdr workstation; /**< Client workstation name */
+    char payload[256];  /**< String data */
+} ntlm_negotiate;
 
-    /* ************************************************************************* */
-    /* Challenge Packet structures and functions */
-    /* ************************************************************************* */
+/* ************************************************************************* */
+/* Challenge Packet structures and functions */
+/* ************************************************************************* */
 
 #define NTLM_NONCE_LEN 8
 
-    /* challenge request flags */
+/* challenge request flags */
 #define NTLM_CHALLENGE_TARGET_IS_DOMAIN     0x10000
 #define NTLM_CHALLENGE_TARGET_IS_SERVER     0x20000
 #define NTLM_CHALLENGE_TARGET_IS_SHARE      0x40000
 
-    /** Challenge request sent by server. */
-    typedef struct _ntlm_challenge {
-        ntlmhdr hdr;           /**< "NTLMSSP" , LSWAP(0x2) */
-        strhdr target;         /**< Authentication target (domain/server ...) */
-        uint32_t flags;                /**< Request flags */
-        u_char challenge[NTLM_NONCE_LEN];      /**< Challenge string */
-        uint32_t context_low;  /**< LS part of the server context handle */
-        uint32_t context_high; /**< MS part of the server context handle */
-        char payload[256];             /**< String data */
-    } ntlm_challenge;
-
-    /* Size of the ntlm_challenge structures formatted fields (excluding payload) */
-#define NTLM_CHALLENGE_HEADER_OFFSET   (sizeof(ntlm_challenge)-256)
-
-    /** Generate a challenge request nonce. */
-    void ntlm_make_nonce(char *nonce);
-
-    /** Generate a challenge request Blob to be sent to the client.
    * Will silently truncate the domain value at 2^16-1 bytes if larger.
    */
-    void ntlm_make_challenge(ntlm_challenge *ch,
-                             const char *domain,
-                             const char *domain_controller,
-                             const char *challenge_nonce,
-                             const int challenge_nonce_len,
-                             const uint32_t flags);
-
-    /* ************************************************************************* */
-    /* Authenticate Packet structures and functions */
-    /* ************************************************************************* */
-
-    /** Authentication request sent by client in response to challenge */
-    typedef struct _ntlm_authenticate {
-        ntlmhdr hdr;           /**< "NTLMSSP" , LSWAP(0x3) */
-        strhdr lmresponse;             /**< LANMAN challenge response */
-        strhdr ntresponse;             /**< NT challenge response */
-        strhdr domain;         /**< Domain to authenticate against */
-        strhdr user;           /**< Username */
-        strhdr workstation;            /**< Workstation name */
-        strhdr sessionkey;             /**< Session key for server's use */
-        uint32_t flags;                /**< Request flags */
-        char payload[256 * 6]; /**< String data */
-    } ntlm_authenticate;
-
-    /** Unpack username and domain out of a packet payload. */
-    int ntlm_unpack_auth(const ntlm_authenticate *auth,
-                         char *user,
-                         char *domain,
-                         const int32_t size);
+/** Challenge request sent by server. */
+typedef struct _ntlm_challenge {
+    ntlmhdr hdr;        /**< "NTLMSSP" , LSWAP(0x2) */
+    strhdr target;      /**< Authentication target (domain/server ...) */
+    uint32_t flags;     /**< Request flags */
+    u_char challenge[NTLM_NONCE_LEN];   /**< Challenge string */
+    uint32_t context_low;   /**< LS part of the server context handle */
+    uint32_t context_high;  /**< MS part of the server context handle */
+    char payload[256];      /**< String data */
+} ntlm_challenge;
+
+/* Size of the ntlm_challenge structures formatted fields (excluding payload) */
+#define NTLM_CHALLENGE_HEADER_OFFSET    (sizeof(ntlm_challenge)-256)
+
+/** Generate a challenge request nonce. */
+void ntlm_make_nonce(char *nonce);
+
+/** Generate a challenge request Blob to be sent to the client.
+ * Will silently truncate the domain value at 2^16-1 bytes if larger.
+ */
+void ntlm_make_challenge(ntlm_challenge *ch,
+                         const char *domain,
+                         const char *domain_controller,
+                         const char *challenge_nonce,
+                         const int challenge_nonce_len,
+                         const uint32_t flags);
+
+/* ************************************************************************* */
+/* Authenticate Packet structures and functions */
+/* ************************************************************************* */
+
+/** Authentication request sent by client in response to challenge */
+typedef struct _ntlm_authenticate {
+    ntlmhdr hdr;        /**< "NTLMSSP" , LSWAP(0x3) */
+    strhdr lmresponse;      /**< LANMAN challenge response */
+    strhdr ntresponse;      /**< NT challenge response */
+    strhdr domain;      /**< Domain to authenticate against */
+    strhdr user;        /**< Username */
+    strhdr workstation;     /**< Workstation name */
+    strhdr sessionkey;      /**< Session key for server's use */
+    uint32_t flags;     /**< Request flags */
+    char payload[256 * 6];  /**< String data */
+} ntlm_authenticate;
+
+/** Unpack username and domain out of a packet payload. */
+int ntlm_unpack_auth(const ntlm_authenticate *auth,
+                     char *user,
+                     char *domain,
+                     const int32_t size);
 
 #if __cplusplus
 }
 #endif
 
 #endif /* SQUID_NTLMAUTH_H */
+
index d4fbcc10fbfdbc691f95d13e65ebb0dfd0171f2d..41195423d3394f56c0cb33e2f8f145568bcfdbd4 100644 (file)
@@ -106,3 +106,4 @@ hex_dump(unsigned char *data, int size)
 }
 
 #endif /* SQUID_LIBNTLMAUTH_SUPPORT_BITS_CCI */
+
index 33ce04146d0dabb1ea4247f251e80df55513dbd7..83a2282afe071e14b9fa5e57d35c622a4e001325 100644 (file)
@@ -93,3 +93,4 @@
 #endif
 
 #endif /* SQUID_LIB_NTLMAUTH_SUPPORT_ENDIAN_H */
+
index 25ea11eb1e28e3bd0c9585bcc61360b4ef821bb4..eb57a722d8a9db1e75150873baed01c20518b5c7 100644 (file)
@@ -110,10 +110,10 @@ TimersArray *xprof_Timers = NULL;
 /* Private stuff */
 
 /* new stuff */
-#define        MAXSTACKDEPTH   512
+#define MAXSTACKDEPTH   512
 
 struct _callstack_entry {
-    int timer;         /* index into timers array */
+    int timer;      /* index into timers array */
     const char *name;
     hrtime_t start, stop, accum;
 };
@@ -213,3 +213,4 @@ xprof_stop(xprof_type type, const char *timer)
 }
 
 #endif /* USE_XPROF_STATS */
+
index a460506495a120c0e3fbb6a115fb82902153327b..de9288dbb56d21fc5739774b4999e6c08488a89e 100644 (file)
@@ -28,36 +28,36 @@ extern "C" {
 
 #define XP_NOBEST (hrtime_t)-1
 
-    typedef struct _xprof_stats_node xprof_stats_node;
+typedef struct _xprof_stats_node xprof_stats_node;
 
-    typedef struct _xprof_stats_data xprof_stats_data;
+typedef struct _xprof_stats_data xprof_stats_data;
 
-    struct _xprof_stats_data {
-        hrtime_t start;
-        hrtime_t stop;
-        hrtime_t delta;
-        hrtime_t best;
-        hrtime_t worst;
-        hrtime_t count;
-        hrtime_t accum;
-        int64_t summ;
-    };
+struct _xprof_stats_data {
+    hrtime_t start;
+    hrtime_t stop;
+    hrtime_t delta;
+    hrtime_t best;
+    hrtime_t worst;
+    hrtime_t count;
+    hrtime_t accum;
+    int64_t summ;
+};
 
-    struct _xprof_stats_node {
-        const char *name;
-        xprof_stats_data accu;
-        xprof_stats_data hist;
-    };
+struct _xprof_stats_node {
+    const char *name;
+    xprof_stats_data accu;
+    xprof_stats_data hist;
+};
 
-    typedef xprof_stats_node TimersArray[1];
+typedef xprof_stats_node TimersArray[1];
 
-    /* public Data */
-    extern TimersArray *xprof_Timers;
+/* public Data */
+extern TimersArray *xprof_Timers;
 
-    /* Exported functions */
-    extern void xprof_start(xprof_type type, const char *timer);
-    extern void xprof_stop(xprof_type type, const char *timer);
-    extern void xprof_event(void *data);
+/* Exported functions */
+extern void xprof_start(xprof_type type, const char *timer);
+extern void xprof_stop(xprof_type type, const char *timer);
+extern void xprof_event(void *data);
 
 #define PROF_start(probename) xprof_start(XPROF_##probename, #probename)
 #define PROF_stop(probename) xprof_stop(XPROF_##probename, #probename)
@@ -68,3 +68,4 @@ extern "C" {
 }
 #endif
 #endif /* _PROFILING_H_ */
+
index 9ccdc23898921ed0403fa0263ad080d23b80c937..7321f1edf92a10823aac65da57cbe8d959233a20 100644 (file)
@@ -25,7 +25,7 @@ get_tick(void)
 {
     hrtime_t regs;
 
-asm volatile ("rdtsc":"=A" (regs));
+    asm volatile ("rdtsc":"=A" (regs));
     return regs;
     /* We need return value, we rely on CC to optimise out needless subf calls */
     /* Note that "rdtsc" is relatively slow OP and stalls the CPU pipes, so use it wisely */
@@ -38,7 +38,7 @@ get_tick(void)
     uint32_t lo, hi;
     // Based on an example in Wikipedia
     /* We cannot use "=A", since this would use %rax on x86_64 */
-asm volatile ("rdtsc" : "=a" (lo), "=d" (hi));
+    asm volatile ("rdtsc" : "=a" (lo), "=d" (hi));
     return (hrtime_t)hi << 32 | lo;
 }
 
@@ -48,7 +48,7 @@ get_tick(void)
 {
     hrtime_t regs;
 
-asm volatile ("rpcc %0" : "=r" (regs));
+    asm volatile ("rpcc %0" : "=r" (regs));
     return regs;
 }
 
@@ -75,3 +75,4 @@ get_tick(void)
 
 #endif /* USE_XPROF_STATS */
 #endif /* _PROFILING_H_ */
+
index abada96d538994c165197f1bcb922c572123f8d0..fae25eeb26bea667e38c4ffa532c3d57a1e182dd 100644 (file)
 /* AUTO-GENERATED FILE */
 #if USE_XPROF_STATS
 typedef enum {
-  XPROF_PROF_UNACCOUNTED,
-XPROF_aclCheckFast,
-XPROF_ACL_matches,
-XPROF_calloc,
-XPROF_clientSocketRecipient,
-XPROF_comm_accept,
-XPROF_comm_check_incoming,
-XPROF_comm_close,
-XPROF_comm_connect_addr,
-XPROF_comm_handle_ready_fd,
-XPROF_commHandleWrite,
-XPROF_comm_open,
-XPROF_comm_poll_normal,
-XPROF_comm_poll_prep_pfds,
-XPROF_comm_read_handler,
-XPROF_comm_udp_sendto,
-XPROF_comm_write_handler,
-XPROF_diskHandleRead,
-XPROF_diskHandleWrite,
-XPROF_esiExpressionEval,
-XPROF_esiParsing,
-XPROF_esiProcessing,
-XPROF_eventRun,
-XPROF_file_close,
-XPROF_file_open,
-XPROF_file_read,
-XPROF_file_write,
-XPROF_free,
-XPROF_free_const,
-XPROF_hash_lookup,
-XPROF_headersEnd,
-XPROF_HttpHeaderClean,
-XPROF_HttpHeader_getCc,
-XPROF_HttpHeaderParse,
-XPROF_HttpMsg_httpMsgParseStep,
-XPROF_HttpParserParseReqLine,
-XPROF_httpRequestFree,
-XPROF_HttpServer_parseOneRequest,
-XPROF_httpStart,
-XPROF_HttpStateData_processReplyBody,
-XPROF_HttpStateData_processReplyHeader,
-XPROF_InvokeHandlers,
-XPROF_malloc,
-XPROF_MemBuf_append,
-XPROF_MemBuf_consume,
-XPROF_MemBuf_consumeWhitespace,
-XPROF_MemBuf_grow,
-XPROF_mem_hdr_write,
-XPROF_MemObject_write,
-XPROF_PROF_OVERHEAD,
-XPROF_read,
-XPROF_realloc,
-XPROF_recv,
-XPROF_send,
-XPROF_SignalEngine_checkEvents,
-XPROF_storeClient_kickReads,
-XPROF_storeDirCallback,
-XPROF_StoreEntry_write,
-XPROF_storeGet,
-XPROF_storeGetMemSpace,
-XPROF_storeMaintainSwapSpace,
-XPROF_storeRelease,
-XPROF_StringAllocAndFill,
-XPROF_StringAppend,
-XPROF_StringClean,
-XPROF_StringInitBuf,
-XPROF_StringReset,
-XPROF_write,
-XPROF_xcalloc,
-XPROF_xmalloc,
-XPROF_xrealloc,
-  XPROF_LAST } xprof_type;
+    XPROF_PROF_UNACCOUNTED,
+    XPROF_aclCheckFast,
+    XPROF_ACL_matches,
+    XPROF_calloc,
+    XPROF_clientSocketRecipient,
+    XPROF_comm_accept,
+    XPROF_comm_check_incoming,
+    XPROF_comm_close,
+    XPROF_comm_connect_addr,
+    XPROF_comm_handle_ready_fd,
+    XPROF_commHandleWrite,
+    XPROF_comm_open,
+    XPROF_comm_poll_normal,
+    XPROF_comm_poll_prep_pfds,
+    XPROF_comm_read_handler,
+    XPROF_comm_udp_sendto,
+    XPROF_comm_write_handler,
+    XPROF_diskHandleRead,
+    XPROF_diskHandleWrite,
+    XPROF_esiExpressionEval,
+    XPROF_esiParsing,
+    XPROF_esiProcessing,
+    XPROF_eventRun,
+    XPROF_file_close,
+    XPROF_file_open,
+    XPROF_file_read,
+    XPROF_file_write,
+    XPROF_free,
+    XPROF_free_const,
+    XPROF_hash_lookup,
+    XPROF_headersEnd,
+    XPROF_HttpHeaderClean,
+    XPROF_HttpHeader_getCc,
+    XPROF_HttpHeaderParse,
+    XPROF_HttpMsg_httpMsgParseStep,
+    XPROF_HttpParserParseReqLine,
+    XPROF_httpRequestFree,
+    XPROF_HttpServer_parseOneRequest,
+    XPROF_httpStart,
+    XPROF_HttpStateData_processReplyBody,
+    XPROF_HttpStateData_processReplyHeader,
+    XPROF_InvokeHandlers,
+    XPROF_malloc,
+    XPROF_MemBuf_append,
+    XPROF_MemBuf_consume,
+    XPROF_MemBuf_consumeWhitespace,
+    XPROF_MemBuf_grow,
+    XPROF_mem_hdr_write,
+    XPROF_MemObject_write,
+    XPROF_PROF_OVERHEAD,
+    XPROF_read,
+    XPROF_realloc,
+    XPROF_recv,
+    XPROF_send,
+    XPROF_SignalEngine_checkEvents,
+    XPROF_storeClient_kickReads,
+    XPROF_storeDirCallback,
+    XPROF_StoreEntry_write,
+    XPROF_storeGet,
+    XPROF_storeGetMemSpace,
+    XPROF_storeMaintainSwapSpace,
+    XPROF_storeRelease,
+    XPROF_StringAllocAndFill,
+    XPROF_StringAppend,
+    XPROF_StringClean,
+    XPROF_StringInitBuf,
+    XPROF_StringReset,
+    XPROF_write,
+    XPROF_xcalloc,
+    XPROF_xmalloc,
+    XPROF_xrealloc,
+    XPROF_LAST
+} xprof_type;
 #endif
 #endif
+
index df521fd3095257f952133164852b124b67c201a4..6af3680917818566804d9b4b84665ca239e83a0d 100644 (file)
@@ -95,19 +95,19 @@ static char *rn_zeros, *rn_ones;
 #define rn_l rn_u.rn_node.rn_L
 #define rn_r rn_u.rn_node.rn_R
 #define rm_mask rm_rmu.rmu_mask
-#define rm_leaf rm_rmu.rmu_leaf        /* extra field would make 32 bytes */
+#define rm_leaf rm_rmu.rmu_leaf /* extra field would make 32 bytes */
 
 /* Helper macros */
 #define squid_Bcmp(a, b, l) (l == 0 ? 0 : memcmp((caddr_t)(a), (caddr_t)(b), (u_long)l))
 #define squid_R_Malloc(p, t, n) (p = (t) xmalloc((unsigned int)(n)))
 #define squid_Free(p) xfree((char *)p)
 #define squid_MKGet(m) {\
-       if (squid_rn_mkfreelist) {\
-               m = squid_rn_mkfreelist; \
-               squid_rn_mkfreelist = (m)->rm_mklist; \
-       } else \
-               squid_R_Malloc(m, struct squid_radix_mask *, sizeof (*(m)));\
-       }
+    if (squid_rn_mkfreelist) {\
+        m = squid_rn_mkfreelist; \
+        squid_rn_mkfreelist = (m)->rm_mklist; \
+    } else \
+        squid_R_Malloc(m, struct squid_radix_mask *, sizeof (*(m)));\
+    }
 
 #define squid_MKFree(m) { (m)->rm_mklist = squid_rn_mkfreelist; squid_rn_mkfreelist = (m);}
 
@@ -288,7 +288,7 @@ squid_rn_match(void *v_arg, struct squid_radix_node_head *head) {
         t = t->rn_dupedkey;
     return t;
 on1:
-    test = (*cp ^ *cp2) & 0xff;        /* find first bit that differs */
+    test = (*cp ^ *cp2) & 0xff; /* find first bit that differs */
     for (b = 7; (test >>= 1) > 0;)
         b--;
     matched_off = cp - v;
@@ -405,7 +405,7 @@ on1:
                 x = x->rn_r;
             else
                 x = x->rn_l;
-        } while (b > (unsigned) x->rn_b);      /* x->rn_b < b && x->rn_b >= 0 */
+        } while (b > (unsigned) x->rn_b);   /* x->rn_b < b && x->rn_b >= 0 */
 #ifdef RN_DEBUG
         if (rn_debug)
             fprintf(stderr, "squid_rn_insert: Going In:\n");
@@ -418,7 +418,7 @@ on1:
         else
             p->rn_r = t;
         x->rn_p = t;
-        t->rn_p = p;           /* frees x, p as temp vars below */
+        t->rn_p = p;        /* frees x, p as temp vars below */
         if ((cp[t->rn_off] & t->rn_bmask) == 0) {
             t->rn_r = x;
         } else {
@@ -504,13 +504,13 @@ squid_rn_addmask(void *n_arg, int search, int skip) {
     return (x);
 }
 
-static int                     /* XXX: arbitrary ordering for non-contiguous masks */
+static int          /* XXX: arbitrary ordering for non-contiguous masks */
 rn_lexobetter(void *m_arg, void *n_arg)
 {
     register u_char *mp = m_arg, *np = n_arg, *lim;
 
     if (*mp > *np)
-        return 1;              /* not really, but need to check longer one first */
+        return 1;       /* not really, but need to check longer one first */
     if (*mp == *np)
         for (lim = mp + *mp; mp < lim;)
             if (*mp++ > *np++)
@@ -573,7 +573,7 @@ squid_rn_addroute(void *v_arg, void *n_arg, struct squid_radix_node_head *head,
                 return (0);
             if (netmask == 0 ||
                     (tt->rn_mask &&
-                     ((b_leaf < tt->rn_b) ||   /* index(netmask) > node */
+                     ((b_leaf < tt->rn_b) ||    /* index(netmask) > node */
                       squid_rn_refines(netmask, tt->rn_mask) ||
                       rn_lexobetter(netmask, tt->rn_mask))))
                 break;
@@ -654,7 +654,7 @@ squid_rn_addroute(void *v_arg, void *n_arg, struct squid_radix_node_head *head,
 on2:
     /* Add new route to highest possible ancestor's list */
     if ((netmask == 0) || (b > t->rn_b))
-        return tt;             /* can't lift at all */
+        return tt;      /* can't lift at all */
     b_leaf = tt->rn_b;
     do {
         x = t;
@@ -727,7 +727,7 @@ squid_rn_delete(void *v_arg, void *netmask_arg, struct squid_radix_node_head *he
     if (tt->rn_flags & RNF_NORMAL) {
         if (m->rm_leaf != tt || m->rm_refs > 0) {
             fprintf(stderr, "squid_rn_delete: inconsistent annotation\n");
-            return 0;          /* dangling ref could cause disaster */
+            return 0;       /* dangling ref could cause disaster */
         }
     } else {
         if (m->rm_mask != tt->rn_mask) {
@@ -740,7 +740,7 @@ squid_rn_delete(void *v_arg, void *netmask_arg, struct squid_radix_node_head *he
     b = -1 - tt->rn_b;
     t = saved_tt->rn_p;
     if (b > t->rn_b)
-        goto on1;              /* Wasn't lifted at all */
+        goto on1;       /* Wasn't lifted at all */
     do {
         x = t;
         t = t->rn_p;
@@ -754,7 +754,7 @@ squid_rn_delete(void *v_arg, void *netmask_arg, struct squid_radix_node_head *he
     if (m == 0) {
         fprintf(stderr, "squid_rn_delete: couldn't find our annotation\n");
         if (tt->rn_flags & RNF_NORMAL)
-            return (0);                /* Dangling ref to us */
+            return (0);     /* Dangling ref to us */
     }
 on1:
     /*
@@ -968,3 +968,4 @@ squid_rn_init(void)
         exit(-1);
     }
 }
+
index 21f580df3427bd39b08cb7b844a9c4887f564a29..2c3fc3d2e355a26e09af58bd8f324c8e50bba6c6 100644 (file)
@@ -261,7 +261,7 @@ rfc1035NameUnpack(const char *buf, size_t sz, unsigned int *off, unsigned short
             /* blasted compression */
             unsigned short s;
             unsigned int ptr;
-            if (rdepth > 64) { /* infinite pointer loop */
+            if (rdepth > 64) {  /* infinite pointer loop */
                 RFC1035_UNPACK_DEBUG;
                 return 1;
             }
@@ -291,11 +291,11 @@ rfc1035NameUnpack(const char *buf, size_t sz, unsigned int *off, unsigned short
             len = (size_t) c;
             if (len == 0)
                 break;
-            if (len > (ns - no - 1)) { /* label won't fit */
+            if (len > (ns - no - 1)) {  /* label won't fit */
                 RFC1035_UNPACK_DEBUG;
                 return 1;
             }
-            if ((*off) + len >= sz) {  /* message is too short */
+            if ((*off) + len >= sz) {   /* message is too short */
                 RFC1035_UNPACK_DEBUG;
                 return 1;
             }
@@ -420,7 +420,7 @@ rfc1035RRUnpack(const char *buf, size_t sz, unsigned int *off, rfc1035_rr * RR)
     case RFC1035_TYPE_PTR:
         RR->rdata = (char*)xmalloc(RFC1035_MAXHOSTNAMESZ);
         rdata_off = *off;
-        RR->rdlength = 0;      /* Filled in by rfc1035NameUnpack */
+        RR->rdlength = 0;   /* Filled in by rfc1035NameUnpack */
         if (rfc1035NameUnpack(buf, sz, &rdata_off, &RR->rdlength, RR->rdata, RFC1035_MAXHOSTNAMESZ, 0)) {
             RFC1035_UNPACK_DEBUG;
             return 1;
@@ -630,11 +630,11 @@ rfc1035MessageUnpack(const char *buf,
     i = (unsigned int) msg->ancount;
     recs = msg->answer = (rfc1035_rr*)xcalloc(i, sizeof(*recs));
     for (j = 0; j < i; j++) {
-        if (off >= sz) {       /* corrupt packet */
+        if (off >= sz) {    /* corrupt packet */
             RFC1035_UNPACK_DEBUG;
             break;
         }
-        if (rfc1035RRUnpack(buf, sz, &off, &recs[j])) {                /* corrupt RR */
+        if (rfc1035RRUnpack(buf, sz, &off, &recs[j])) {     /* corrupt RR */
             RFC1035_UNPACK_DEBUG;
             break;
         }
@@ -671,7 +671,7 @@ rfc1035BuildAQuery(const char *hostname, char *buf, size_t sz, unsigned short qi
     h.id = qid;
     h.qr = 0;
     h.rd = 1;
-    h.opcode = 0;              /* QUERY */
+    h.opcode = 0;       /* QUERY */
     h.qdcount = (unsigned int) 1;
     h.arcount = (edns_sz > 0 ? 1 : 0);
     offset += rfc1035HeaderPack(buf + offset, sz - offset, &h);
@@ -718,7 +718,7 @@ rfc1035BuildPTRQuery(const struct in_addr addr, char *buf, size_t sz, unsigned s
     h.id = qid;
     h.qr = 0;
     h.rd = 1;
-    h.opcode = 0;              /* QUERY */
+    h.opcode = 0;       /* QUERY */
     h.qdcount = (unsigned int) 1;
     h.arcount = (edns_sz > 0 ? 1 : 0);
     offset += rfc1035HeaderPack(buf + offset, sz - offset, &h);
@@ -840,3 +840,4 @@ main(int argc, char *argv[])
     return 0;
 }
 #endif
+
index 4e55701001c8b1e025e4de908e5763318946c16b..583ed964b67f17aa24f582cb0152a3faa750872b 100644 (file)
@@ -191,7 +191,7 @@ parse_rfc1123(const char *str)
 #if defined(_timezone) || _SQUID_WINDOWS_
         t -= (_timezone + dst);
 #else
-    t -= (timezone + dst);
+        t -= (timezone + dst);
 #endif
     }
 #endif
@@ -226,3 +226,4 @@ main()
 }
 
 #endif
+
index 7540d74be8cb4272dcc4ef2bd02457421cd0d9d0..9a7e5b46ceec859898a1c91933ff36adc5cd3e37 100644 (file)
  *  any non-US-ASCII character or anything between 0x00 - 0x1F.
  */
 static char rfc1738_unsafe_chars[] = {
-    (char) 0x3C,               /* < */
-    (char) 0x3E,               /* > */
-    (char) 0x22,               /* " */
-    (char) 0x23,               /* # */
-#if 0                          /* done in code */
-    (char) 0x20,               /* space */
-    (char) 0x25,               /* % */
+    (char) 0x3C,        /* < */
+    (char) 0x3E,        /* > */
+    (char) 0x22,        /* " */
+    (char) 0x23,        /* # */
+#if 0               /* done in code */
+    (char) 0x20,        /* space */
+    (char) 0x25,        /* % */
 #endif
-    (char) 0x7B,               /* { */
-    (char) 0x7D,               /* } */
-    (char) 0x7C,               /* | */
-    (char) 0x5C,               /* \ */
-    (char) 0x5E,               /* ^ */
-    (char) 0x7E,               /* ~ */
-    (char) 0x5B,               /* [ */
-    (char) 0x5D,               /* ] */
-    (char) 0x60,               /* ` */
-    (char) 0x27                /* ' */
+    (char) 0x7B,        /* { */
+    (char) 0x7D,        /* } */
+    (char) 0x7C,        /* | */
+    (char) 0x5C,        /* \ */
+    (char) 0x5E,        /* ^ */
+    (char) 0x7E,        /* ~ */
+    (char) 0x5B,        /* [ */
+    (char) 0x5D,        /* ] */
+    (char) 0x60,        /* ` */
+    (char) 0x27         /* ' */
 };
 
 static char rfc1738_reserved_chars[] = {
-    (char) 0x3b,               /* ; */
-    (char) 0x2f,               /* / */
-    (char) 0x3f,               /* ? */
-    (char) 0x3a,               /* : */
-    (char) 0x40,               /* @ */
-    (char) 0x3d,               /* = */
-    (char) 0x26                        /* & */
+    (char) 0x3b,        /* ; */
+    (char) 0x2f,        /* / */
+    (char) 0x3f,        /* ? */
+    (char) 0x3a,        /* : */
+    (char) 0x40,        /* @ */
+    (char) 0x3d,        /* = */
+    (char) 0x26         /* & */
 };
 
 /*
@@ -145,13 +145,13 @@ fromhex(char ch)
 void
 rfc1738_unescape(char *s)
 {
-    int i, j;                  /* i is write, j is read */
+    int i, j;           /* i is write, j is read */
     for (i = j = 0; s[j]; i++, j++) {
         s[i] = s[j];
         if (s[j] != '%') {
             /* normal case, nothing more to do */
-        } else if (s[j + 1] == '%') {  /* %% case */
-            j++;               /* Skip % */
+        } else if (s[j + 1] == '%') {   /* %% case */
+            j++;        /* Skip % */
         } else {
             /* decode */
             int v1, v2, x;
@@ -170,3 +170,4 @@ rfc1738_unescape(char *s)
     }
     s[i] = '\0';
 }
+
index 44cdf90286ce4f8e05ebff6d2159e85cbd2065e5..a05faf981a72397059d7eb4a27dea84281785976 100644 (file)
@@ -103,7 +103,7 @@ DigestCalcHA1(
     }
     if (strcasecmp(pszAlg, "md5-sess") == 0) {
         HASHHEX HA1Hex;
-        CvtHex(HA1, HA1Hex);   /* RFC2617 errata */
+        CvtHex(HA1, HA1Hex);    /* RFC2617 errata */
         SquidMD5Init(&Md5Ctx);
         SquidMD5Update(&Md5Ctx, HA1Hex, HASHHEXLEN);
         SquidMD5Update(&Md5Ctx, ":", 1);
@@ -118,15 +118,15 @@ DigestCalcHA1(
 /* calculate request-digest/response-digest as per HTTP Digest spec */
 void
 DigestCalcResponse(
-    const HASHHEX HA1,         /* H(A1) */
-    const char *pszNonce,      /* nonce from server */
-    const char *pszNonceCount, /* 8 hex digits */
-    const char *pszCNonce,     /* client nonce */
-    const char *pszQop,                /* qop-value: "", "auth", "auth-int" */
-    const char *pszMethod,     /* method from the request */
-    const char *pszDigestUri,  /* requested URL */
-    const HASHHEX HEntity,     /* H(entity body) if qop="auth-int" */
-    HASHHEX Response           /* request-digest or response-digest */
+    const HASHHEX HA1,      /* H(A1) */
+    const char *pszNonce,   /* nonce from server */
+    const char *pszNonceCount,  /* 8 hex digits */
+    const char *pszCNonce,  /* client nonce */
+    const char *pszQop,     /* qop-value: "", "auth", "auth-int" */
+    const char *pszMethod,  /* method from the request */
+    const char *pszDigestUri,   /* requested URL */
+    const HASHHEX HEntity,  /* H(entity body) if qop="auth-int" */
+    HASHHEX Response        /* request-digest or response-digest */
 )
 {
     SquidMD5_CTX Md5Ctx;
@@ -166,3 +166,4 @@ DigestCalcResponse(
     SquidMD5Final((unsigned char *) RespHash, &Md5Ctx);
     CvtHex(RespHash, Response);
 }
+
index d9d31208b0133ada65f34e7431093dc7cf5404ae..b88b6ee58fc91d6de584e521f4eedbf7be2483c6 100644 (file)
@@ -26,3 +26,4 @@ rfc2671RROptPack(char *buf, size_t sz, ssize_t edns_sz)
 
     return rfc1035RRPack(buf, sz, &opt);
 }
+
index 8fd6460d87cefbdd2a984fd2532c2e3975e8dfad..6cae278680c023ccdd2426944834b7efe5452494 100644 (file)
@@ -171,7 +171,7 @@ rfc3596BuildPTRQuery6(const struct in6_addr addr, char *buf, size_t sz, unsigned
 int
 main(int argc, char *argv[])
 {
-#define PACKET_BUFSZ           1024
+#define PACKET_BUFSZ        1024
     char input[PACKET_BUFSZ];
     char buf[PACKET_BUFSZ];
     char rbuf[PACKET_BUFSZ];
@@ -336,3 +336,4 @@ return 0;
 }
 
 #endif
+
index dbf72a6152874be3fc0e74ff7f1e51f06ea81991..5a080e1c83b11a3e6e97d487c943a40a836c1330 100644 (file)
@@ -86,3 +86,4 @@
 #define RIVAL(buf,pos) IREV(IVAL(buf,pos))
 #define RSSVAL(buf,pos,val) SSVAL(buf,pos,SREV(val))
 #define RSIVAL(buf,pos,val) SIVAL(buf,pos,IREV(val))
+
index 57634b351b4461b4d32335da99d04a346eda6a04..80d8e961217d215df78048b045fb4d42890aee06 100644 (file)
 extern "C" {
 #endif
 
-    /* A data structure we need */
+/* A data structure we need */
 
-    typedef struct RFCNB_Pkt {
+typedef struct RFCNB_Pkt {
 
-        char *data;             /* The data in this portion */
-        int len;
-        struct RFCNB_Pkt *next;
+    char *data;             /* The data in this portion */
+    int len;
+    struct RFCNB_Pkt *next;
 
-    } RFCNB_Pkt;
+} RFCNB_Pkt;
 
 #if defined(__cplusplus)
 }
 #endif
 #endif /* _RFCNB_RFCNB_COMMON_H */
+
index a9c4dd3f43beb6c523f6ad99bebb4b9e5990787d..d8032657a4b134fc09aae38dc4b00220ab32ecd8 100644 (file)
 extern "C" {
 #endif
 
-    /* Error responses */
+/* Error responses */
 
 #define RFCNBE_Bad -1           /* Bad response */
 #define RFCNBE_OK 0
 
-    /* these should follow the spec ... is there one ? */
+/* these should follow the spec ... is there one ? */
 
 #define RFCNBE_NoSpace 1        /* Could not allocate space for a struct */
 #define RFCNBE_BadName 2        /* Could not translate a name            */
@@ -61,12 +61,13 @@ extern "C" {
 #define RFCNBE_BadParam      15 /* Bad parameters passed ...             */
 #define RFCNBE_Timeout       16 /* IO Timed out                          */
 
-    /* Text strings for the error responses                                 */
+/* Text strings for the error responses                                 */
 
-    extern const char *RFCNB_Error_Strings[];
+extern const char *RFCNB_Error_Strings[];
 
 #ifdef __cplusplus
 }
 
 #endif
 #endif                          /* _RFCNB_ERROR_H_ */
+
index 16dfc3ce5f1c295088f6a1ba86a3fc1955f1c71d..fa51d6afdb3b7bbedd0fe8b7ef2804aac0eab68f 100644 (file)
@@ -120,12 +120,12 @@ RFCNB_Set_Timeout(int seconds)
         if (sigaction(SIGALRM, &inact, &outact) < 0)
             return (-1);
 #else /* !HAVE_SIGACTION */
-    invec.sv_handler = (void (*)()) rfcnb_alarm;
-    invec.sv_mask = 0;
-    invec.sv_flags = SV_INTERRUPT;
+        invec.sv_handler = (void (*)()) rfcnb_alarm;
+        invec.sv_mask = 0;
+        invec.sv_flags = SV_INTERRUPT;
 
-    if (sigvec(SIGALRM, &invec, &outvec) < 0)
-        return (-1);
+        if (sigvec(SIGALRM, &invec, &outvec) < 0)
+            return (-1);
 #endif /* !HAVE_SIGACTION */
     }
 #endif /* !ORIGINAL_SAMBA_CODE ADAPTED SQUID CODE */
@@ -449,3 +449,4 @@ RFCNB_Get_Pkt(struct RFCNB_Con *con, struct RFCNB_Pkt *pkt, int len)
 
     return (read_len + sizeof(RFCNB_Hdr));
 }
+
index c612709d944dfa0816d8e925914f3bba9b274165..7d99beac636ad656f2040d871c88b1fcb1a1b930 100644 (file)
@@ -40,3 +40,4 @@ int RFCNB_Put_Pkt(struct RFCNB_Con *con, struct RFCNB_Pkt *pkt, int len);
 int RFCNB_Get_Pkt(struct RFCNB_Con *con, struct RFCNB_Pkt *pkt, int len);
 
 #endif
+
index 6108aa70ba2a4dd307f138995130db3d65ec64b6..0cc727ee32ced6b072625412b38cd4859c9ef0ab 100644 (file)
@@ -160,3 +160,4 @@ extern int RFCNB_saved_errno;   /* Save this from point of error */
 #endif
 
 #endif /* _RFCNB_RFCNB_PRIV_H */
+
index 16dab40ab6b4897ff3d8985a5aa80e792991f4b5..8631bf516db1e668877648ca9c0fd50a0aa770c6 100644 (file)
@@ -532,3 +532,4 @@ RFCNB_Session_Req(struct RFCNB_Con *con,
     RFCNB_Free_Pkt(pkt);
     return result;
 }
+
index 858256499e5e2ed94dcf526c2241d3f02c2f360d..c790356a7b2412f3dffda51f3a2c6cc52d424190 100644 (file)
@@ -62,3 +62,4 @@ typedef void RFCNB_Prot_Print_Routine(FILE * fd, int dir, struct RFCNB_Pkt *pkt,
 extern RFCNB_Prot_Print_Routine *Prot_Print_Routine;
 
 #endif /* _RFCNB_RFCNB_UTIL_H */
+
index 28e3241bfc70502a263f199d7a437ee658e0fcfe..365119a4ae06b4762110c21701ddcd036422382b 100644 (file)
 extern "C" {
 #endif
 
-    /* Defines we need */
+/* Defines we need */
 
 #define RFCNB_Default_Port 139
 
-    struct RFCNB_Con;
+struct RFCNB_Con;
 
-    /* Definition of routines we define */
+/* Definition of routines we define */
 
-    void *RFCNB_Call(char *Called_Name, char *Calling_Name, char *Called_Address,
-                     int port);
+void *RFCNB_Call(char *Called_Name, char *Calling_Name, char *Called_Address,
+                 int port);
 
-    int RFCNB_Send(struct RFCNB_Con *Con_Handle, struct RFCNB_Pkt *udata, int Length);
+int RFCNB_Send(struct RFCNB_Con *Con_Handle, struct RFCNB_Pkt *udata, int Length);
 
-    int RFCNB_Recv(void *Con_Handle, struct RFCNB_Pkt *Data, int Length);
+int RFCNB_Recv(void *Con_Handle, struct RFCNB_Pkt *Data, int Length);
 
-    int RFCNB_Hangup(struct RFCNB_Con *con_Handle);
+int RFCNB_Hangup(struct RFCNB_Con *con_Handle);
 
-    void *RFCNB_Listen(void);
+void *RFCNB_Listen(void);
 
-    void RFCNB_Get_Error(char *buffer, int buf_len);
+void RFCNB_Get_Error(char *buffer, int buf_len);
 
-    int RFCNB_Get_Last_Error(void);
+int RFCNB_Get_Last_Error(void);
 
-    void RFCNB_Free_Pkt(struct RFCNB_Pkt *pkt);
+void RFCNB_Free_Pkt(struct RFCNB_Pkt *pkt);
 
-    int RFCNB_Set_Sock_NoDelay(struct RFCNB_Con *con_Handle, int yn);
+int RFCNB_Set_Sock_NoDelay(struct RFCNB_Con *con_Handle, int yn);
 
-    struct RFCNB_Pkt *RFCNB_Alloc_Pkt(int n);
+struct RFCNB_Pkt *RFCNB_Alloc_Pkt(int n);
 
 #ifdef __cplusplus
 }
 
 #endif
 #endif                          /* _RFCNB_RFCNB_H */
+
index d76bbf34a5bd9bcbd264e4a597b1f120ab848b6a..733f9a16d71c28f1440136e642782d2881895c37 100644 (file)
@@ -330,3 +330,4 @@ RFCNB_Get_Last_Error()
 {
     return (RFCNB_errno);
 }
+
index feec137886256b7819c68f9aba6b0522783b87d5..215ba3418678a686926a1540d33a4a20350bebc8 100644 (file)
@@ -62,3 +62,4 @@ typedef short int16;
 #endif
 
 #endif /* _RFCNB_STD_INCLUDES_H */
+
index ee8c9778e07f23bd59147bd58d15145cb3c7181d..3e2472194ca866bb3abbd1ff25fbb4b95cd4f113 100644 (file)
@@ -371,7 +371,7 @@ int SMB_Logon_TCon_Open(SMB_Handle_Type Con_Handle, char *UserName,
 {
     struct RFCNB_Pkt *pkt;
     int param_len, i, pkt_len, tcon_len, tcon_param_len, open_len,
-    open_param_len, header_len;
+        open_param_len, header_len;
     struct SMB_File_Def *file_tmp;
     SMB_Tree_Handle tree;
     char *p, *AndXCom;
index 080db5b350124b309f1023f10d375d78d9d034fd..9415fa5c2b2790c9a9b17ea74cd203d3205f68b5 100644 (file)
@@ -1323,3 +1323,4 @@ int SMB_Search(SMB_Tree_Handle tree,
     return(ret_count);
 
 }
+
index 8e5be8b03ae9cd2ce6e5a6e69b20780ea1731ea5..43881700c25437dcff8345517a43f945d7c0a613 100644 (file)
@@ -288,3 +288,4 @@ main(int argc, char *argv[])
     fprintf(stderr, "Passwords exhausted.");
 
 }
+
index 2436a7fabc57c0a0937b7109ccd8085417722859..cd2dd30926c82a630cc579bd0bfc15d51e7d2259 100644 (file)
@@ -220,3 +220,4 @@ mdfour(unsigned char *out, unsigned char *in, int n)
 
     A = B = C = D = 0;
 }
+
index 0b44c9216d0609ea7523bc38b982db9f3bf32114..444ed11f58e1ac704537b2c72e390323ab766678 100644 (file)
@@ -12,3 +12,4 @@
 extern void mdfour(unsigned char *out, unsigned char *in, int n);
 
 #endif /* __SMB_LM_SMBVAL_MD4_H */
+
index 08d07903905a591e26efc32696b9ca6939f45360..b04174bd2ef127acb35e80daaaa2e95f104212a0 100644 (file)
@@ -226,3 +226,4 @@ int SMB_Get_SMB_Error_Msg(int err_class, int err_code, char *msg_buf, int len)
     return(strlen(msg_buf));
 
 }
+
index a8a3ff9461f8baf3e62b10595d069f5867a41caa..f0d82a203d0d93e6e43192e292aef465b571820a 100644 (file)
@@ -125,49 +125,57 @@ static int sbox[8][4][16] = {
         {14, 4, 13, 1, 2, 15, 11, 8, 3, 10, 6, 12, 5, 9, 0, 7},
         {0, 15, 7, 4, 14, 2, 13, 1, 10, 6, 12, 11, 9, 5, 3, 8},
         {4, 1, 14, 8, 13, 6, 2, 11, 15, 12, 9, 7, 3, 10, 5, 0},
-        {15, 12, 8, 2, 4, 9, 1, 7, 5, 11, 3, 14, 10, 0, 6, 13}},
+        {15, 12, 8, 2, 4, 9, 1, 7, 5, 11, 3, 14, 10, 0, 6, 13}
+    },
 
     {
         {15, 1, 8, 14, 6, 11, 3, 4, 9, 7, 2, 13, 12, 0, 5, 10},
         {3, 13, 4, 7, 15, 2, 8, 14, 12, 0, 1, 10, 6, 9, 11, 5},
         {0, 14, 7, 11, 10, 4, 13, 1, 5, 8, 12, 6, 9, 3, 2, 15},
-        {13, 8, 10, 1, 3, 15, 4, 2, 11, 6, 7, 12, 0, 5, 14, 9}},
+        {13, 8, 10, 1, 3, 15, 4, 2, 11, 6, 7, 12, 0, 5, 14, 9}
+    },
 
     {
         {10, 0, 9, 14, 6, 3, 15, 5, 1, 13, 12, 7, 11, 4, 2, 8},
         {13, 7, 0, 9, 3, 4, 6, 10, 2, 8, 5, 14, 12, 11, 15, 1},
         {13, 6, 4, 9, 8, 15, 3, 0, 11, 1, 2, 12, 5, 10, 14, 7},
-        {1, 10, 13, 0, 6, 9, 8, 7, 4, 15, 14, 3, 11, 5, 2, 12}},
+        {1, 10, 13, 0, 6, 9, 8, 7, 4, 15, 14, 3, 11, 5, 2, 12}
+    },
 
     {
         {7, 13, 14, 3, 0, 6, 9, 10, 1, 2, 8, 5, 11, 12, 4, 15},
         {13, 8, 11, 5, 6, 15, 0, 3, 4, 7, 2, 12, 1, 10, 14, 9},
         {10, 6, 9, 0, 12, 11, 7, 13, 15, 1, 3, 14, 5, 2, 8, 4},
-        {3, 15, 0, 6, 10, 1, 13, 8, 9, 4, 5, 11, 12, 7, 2, 14}},
+        {3, 15, 0, 6, 10, 1, 13, 8, 9, 4, 5, 11, 12, 7, 2, 14}
+    },
 
     {
         {2, 12, 4, 1, 7, 10, 11, 6, 8, 5, 3, 15, 13, 0, 14, 9},
         {14, 11, 2, 12, 4, 7, 13, 1, 5, 0, 15, 10, 3, 9, 8, 6},
         {4, 2, 1, 11, 10, 13, 7, 8, 15, 9, 12, 5, 6, 3, 0, 14},
-        {11, 8, 12, 7, 1, 14, 2, 13, 6, 15, 0, 9, 10, 4, 5, 3}},
+        {11, 8, 12, 7, 1, 14, 2, 13, 6, 15, 0, 9, 10, 4, 5, 3}
+    },
 
     {
         {12, 1, 10, 15, 9, 2, 6, 8, 0, 13, 3, 4, 14, 7, 5, 11},
         {10, 15, 4, 2, 7, 12, 9, 5, 6, 1, 13, 14, 0, 11, 3, 8},
         {9, 14, 15, 5, 2, 8, 12, 3, 7, 0, 4, 10, 1, 13, 11, 6},
-        {4, 3, 2, 12, 9, 5, 15, 10, 11, 14, 1, 7, 6, 0, 8, 13}},
+        {4, 3, 2, 12, 9, 5, 15, 10, 11, 14, 1, 7, 6, 0, 8, 13}
+    },
 
     {
         {4, 11, 2, 14, 15, 0, 8, 13, 3, 12, 9, 7, 5, 10, 6, 1},
         {13, 0, 11, 7, 4, 9, 1, 10, 14, 3, 5, 12, 2, 15, 8, 6},
         {1, 4, 11, 13, 12, 3, 7, 14, 10, 15, 6, 8, 0, 5, 9, 2},
-        {6, 11, 13, 8, 1, 4, 10, 7, 9, 5, 0, 15, 14, 2, 3, 12}},
+        {6, 11, 13, 8, 1, 4, 10, 7, 9, 5, 0, 15, 14, 2, 3, 12}
+    },
 
     {
         {13, 2, 8, 4, 6, 15, 11, 1, 10, 9, 3, 14, 5, 0, 12, 7},
         {1, 15, 13, 8, 10, 3, 7, 4, 12, 5, 6, 11, 0, 14, 9, 2},
         {7, 11, 4, 1, 9, 12, 14, 2, 0, 6, 10, 13, 15, 3, 5, 8},
-        {2, 1, 14, 7, 4, 10, 8, 13, 15, 12, 9, 0, 3, 5, 6, 11}}
+        {2, 1, 14, 7, 4, 10, 8, 13, 15, 12, 9, 0, 3, 5, 6, 11}
+    }
 };
 
 static void
@@ -368,3 +376,4 @@ cred_hash2(unsigned char *out, unsigned char *in, unsigned char *key)
     key2[0] = key[7];
     smbhash(out, buf, key2);
 }
+
index ecb23feca52482a4cfcc673ad5a007444f817207..f4f49b3ea7850f21578fca83135dc997d0a30e75 100644 (file)
@@ -11,3 +11,4 @@ void E_P16(unsigned char *p14, unsigned char *p16);
 void E_P24(unsigned char *p21, unsigned char *c8, unsigned char *p24);
 void cred_hash1(unsigned char *out, unsigned char *in, unsigned char *key);
 void cred_hash2(unsigned char *out, unsigned char *in, unsigned char *key);
+
index 66b6805a2f3dff1b18013d458c100e86721213aa..e04af7d464d6c6889671189a73c5e4074765a29d 100644 (file)
@@ -127,7 +127,7 @@ E_md4hash(uchar * passwd, uchar * p16)
         len = 128;
     /* Password must be converted to NT unicode */
     _my_mbstowcs(wpwd, passwd, len);
-    wpwd[len] = 0;             /* Ensure string is null terminated */
+    wpwd[len] = 0;      /* Ensure string is null terminated */
     /* Calculate length in bytes */
     len = _my_wcslen(wpwd) * sizeof(int16_t);
 
@@ -219,3 +219,4 @@ strupper(char *s)
         }
     }
 }
+
index faeafadd86c7ec6c9ba4ab09c1aa519cd373c308..f1e4541c27ef81d88ae42ca0b8015c0d9acf5782 100644 (file)
 extern "C" {
 #endif
 
-    void SMBencrypt(unsigned char *passwd, unsigned char *c8, unsigned char *p24);
-    void SMBNTencrypt(unsigned char *passwd, unsigned char *c8, unsigned char *p24);
-    void nt_lm_owf_gen(char *pwd, char *nt_p16, char *p16);
+void SMBencrypt(unsigned char *passwd, unsigned char *c8, unsigned char *p24);
+void SMBNTencrypt(unsigned char *passwd, unsigned char *c8, unsigned char *p24);
+void nt_lm_owf_gen(char *pwd, char *nt_p16, char *p16);
 
 #ifdef __cplusplus
 }
 #endif
 #endif /* _SMBLIB_SMBENCRYPT_H */
+
index 616ee3a07c30faf9ed060345938112cf97a097c2..ff00e8886e11d60641e7d88ed19b0dc481c0c766 100644 (file)
@@ -388,3 +388,4 @@ int SMBapi_NetShareEnum(SMB_Tree_Handle tree, char *enum_buf, int bufsiz,
 {
 
 }
+
index 9fd789fb6d9bd4d180d148a9da9ea1244c2b9ed3..5c8884c0a07352fabf938ff06d72b81c3571df66 100644 (file)
 extern "C" {
 #endif
 
-    /* To get the error class we want the first 8 bits */
-    /* Because we just grab 4bytes from the SMB header, we have to re-order */
-    /* here, but it makes the NtStatus part easier in future                */
+/* To get the error class we want the first 8 bits */
+/* Because we just grab 4bytes from the SMB header, we have to re-order */
+/* here, but it makes the NtStatus part easier in future                */
 
 #define SMBlib_Error_Class(p) (p & 0x000000FF)
 
-    /* To get the error code, we want the bottom 16 bits */
+/* To get the error code, we want the bottom 16 bits */
 
 #define SMBlib_Error_Code(p) (((unsigned int)p & 0xFFFF0000) >>16)
 
-    /* Error CLASS codes and etc ... */
+/* Error CLASS codes and etc ... */
 
 #define SMBC_SUCCESS        0
 #define SMBC_ERRDOS         0x01
@@ -55,13 +55,13 @@ extern "C" {
 #define SMBC_ERRHRD         0x03
 #define SMBC_ERRCMD         0xFF
 
-    /* Success error codes    */
+/* Success error codes    */
 
 #define SMBS_BUFFERED       0x54
 #define SMBS_LOGGED         0x55
 #define SMBS_DISPLAYED      0x56
 
-    /* ERRDOS Error codes     */
+/* ERRDOS Error codes     */
 
 #define SMBD_badfunc        0x01
 #define SMBD_badfile        0x02
@@ -85,7 +85,7 @@ extern "C" {
 #define SMBD_errlock        0x21
 #define SMBD_filexists      0x50
 
-    /* Server errors ... */
+/* Server errors ... */
 
 #define SMBV_error          0x01         /* Generic error */
 #define SMBV_badpw          0x02
@@ -104,7 +104,7 @@ extern "C" {
 #define SMBV_rmuns          0x57
 #define SMBV_nosupport      0xFFFF
 
-    /* Hardware error codes ... */
+/* Hardware error codes ... */
 
 #define SMBH_nowrite        0x13
 #define SMBH_badunit        0x14
@@ -121,7 +121,7 @@ extern "C" {
 #define SMBH_general        0x1F
 #define SMBH_badshare       0x20
 
-    /* Access mode defines ... */
+/* Access mode defines ... */
 
 #define SMB_AMODE_WTRU      0x4000
 #define SMB_AMODE_NOCACHE   0x1000
@@ -140,7 +140,7 @@ extern "C" {
 #define SMB_AMODE_LOCMRAN   0x0200
 #define SMB_AMODE_LOCRAL    0x0300
 
-    /* File attribute encoding ... */
+/* File attribute encoding ... */
 
 #define SMB_FA_ORD          0x00
 #define SMB_FA_ROF          0x01
@@ -150,7 +150,7 @@ extern "C" {
 #define SMB_FA_DIR          0x10
 #define SMB_FA_ARC          0x20
 
-    /* Define the protocol types ... */
+/* Define the protocol types ... */
 
 #define SMB_P_Unknown      -1        /* Hmmm, is this smart? */
 #define SMB_P_Core         0
@@ -163,13 +163,13 @@ extern "C" {
 #define SMB_P_LanMan2_1    7
 #define SMB_P_NT1          8
 
-    /* SMBlib return codes */
-    /* We want something that indicates whether or not the return code was a   */
-    /* remote error, a local error in SMBlib or returned from lower layer ...  */
-    /* Wonder if this will work ...                                            */
-    /* SMBlibE_Remote = 1 indicates remote error                               */
-    /* SMBlibE_ values < 0 indicate local error with more info available       */
-    /* SMBlibE_ values >1 indicate local from SMBlib code errors?              */
+/* SMBlib return codes */
+/* We want something that indicates whether or not the return code was a   */
+/* remote error, a local error in SMBlib or returned from lower layer ...  */
+/* Wonder if this will work ...                                            */
+/* SMBlibE_Remote = 1 indicates remote error                               */
+/* SMBlibE_ values < 0 indicate local error with more info available       */
+/* SMBlibE_ values >1 indicate local from SMBlib code errors?              */
 
 #define SMBlibE_Success 0
 #define SMBlibE_Remote  1    /* Remote error, get more info from con        */
@@ -187,74 +187,75 @@ extern "C" {
 #define SMBlibE_ProtUnknown 12 /* Protocol unknown                          */
 #define SMBlibE_NoSuchMsg  13 /* Keep this up to date                       */
 
-    /* the default SMB protocols supported by this library. */
-    extern const char *SMB_Prots[];
+/* the default SMB protocols supported by this library. */
+extern const char *SMB_Prots[];
 
-    typedef struct {                       /* A structure for a Dirent */
+typedef struct {                       /* A structure for a Dirent */
 
-        unsigned char resume_key[21];        /* Don't touch this          */
-        unsigned char file_attributes;       /* Attributes of file        */
-        unsigned int date_time;              /* date and time of last mod */
-        unsigned int size;
-        char filename[13];                   /* The name of the file      */
+    unsigned char resume_key[21];        /* Don't touch this          */
+    unsigned char file_attributes;       /* Attributes of file        */
+    unsigned int date_time;              /* date and time of last mod */
+    unsigned int size;
+    char filename[13];                   /* The name of the file      */
 
-    } SMB_CP_dirent;
+} SMB_CP_dirent;
 
-    typedef struct SMB_Connect_Def * SMB_Handle_Type;
+typedef struct SMB_Connect_Def * SMB_Handle_Type;
 
-    typedef struct SMB_Tree_Structure * SMB_Tree_Handle;
+typedef struct SMB_Tree_Structure * SMB_Tree_Handle;
 
-    /* A Tree_Structure                       */
+/* A Tree_Structure                       */
 
-    struct SMB_Tree_Structure {
+struct SMB_Tree_Structure {
 
-        SMB_Tree_Handle next, prev;
-        SMB_Handle_Type con;
-        char path[129];
-        char device_type[20];
-        int mbs;                   /* Local MBS */
-        int tid;
+    SMB_Tree_Handle next, prev;
+    SMB_Handle_Type con;
+    char path[129];
+    char device_type[20];
+    int mbs;                   /* Local MBS */
+    int tid;
 
-    };
+};
 
-    struct SMB_Connect_Def {
-        SMB_Handle_Type Next_Con, Prev_Con;          /* Next and previous conn */
-        int protocol;                                /* What is the protocol   */
-        int prot_IDX;                                /* And what is the index  */
-        void *Trans_Connect;                         /* The connection         */
+struct SMB_Connect_Def {
+    SMB_Handle_Type Next_Con, Prev_Con;          /* Next and previous conn */
+    int protocol;                                /* What is the protocol   */
+    int prot_IDX;                                /* And what is the index  */
+    void *Trans_Connect;                         /* The connection         */
 
-        /* All these strings should be malloc'd */
+    /* All these strings should be malloc'd */
 
-        char service[80], username[80], password[80], desthost[80], sock_options[80];
-        char address[80], myname[80];
+    char service[80], username[80], password[80], desthost[80], sock_options[80];
+    char address[80], myname[80];
 
-        SMB_Tree_Handle first_tree, last_tree;  /* List of trees on this server */
+    SMB_Tree_Handle first_tree, last_tree;  /* List of trees on this server */
 
-        int gid;         /* Group ID, do we need it?                      */
-        int mid;         /* Multiplex ID? We might need one per con       */
-        int pid;         /* Process ID                                    */
+    int gid;         /* Group ID, do we need it?                      */
+    int mid;         /* Multiplex ID? We might need one per con       */
+    int pid;         /* Process ID                                    */
 
-        int uid;         /* Authenticated user id.                        */
+    int uid;         /* Authenticated user id.                        */
 
-        /* It is pretty clear that we need to bust some of */
-        /* these out into a per TCon record, as there may  */
-        /* be multiple TCon's per server, etc ... later    */
+    /* It is pretty clear that we need to bust some of */
+    /* these out into a per TCon record, as there may  */
+    /* be multiple TCon's per server, etc ... later    */
 
-        int port;        /* port to use in case not default, this is a TCPism! */
+    int port;        /* port to use in case not default, this is a TCPism! */
 
-        int max_xmit;    /* Max xmit permitted by server                  */
-        int Security;    /* 0 = share, 1 = user                           */
-        int Raw_Support; /* bit 0 = 1 = Read Raw supported, 1 = 1 Write raw */
-        int encrypt_passwords; /* 1 = do , 0 = don't                      */
-        int MaxMPX, MaxVC, MaxRaw;
-        unsigned int SessionKey, Capabilities;
-        int SvrTZ;                                 /* Server Time Zone */
-        int Encrypt_Key_Len;
-        char Encrypt_Key[80], Domain[80], PDomain[80], OSName[80], LMType[40];
-        char Svr_OS[80], Svr_LMType[80], Svr_PDom[80];
-    };
+    int max_xmit;    /* Max xmit permitted by server                  */
+    int Security;    /* 0 = share, 1 = user                           */
+    int Raw_Support; /* bit 0 = 1 = Read Raw supported, 1 = 1 Write raw */
+    int encrypt_passwords; /* 1 = do , 0 = don't                      */
+    int MaxMPX, MaxVC, MaxRaw;
+    unsigned int SessionKey, Capabilities;
+    int SvrTZ;                                 /* Server Time Zone */
+    int Encrypt_Key_Len;
+    char Encrypt_Key[80], Domain[80], PDomain[80], OSName[80], LMType[40];
+    char Svr_OS[80], Svr_LMType[80], Svr_PDom[80];
+};
 
 #ifdef __cplusplus
 }
 #endif
 #endif /* _SMBLIB_SMBLIB_COMMON_H */
+
index 300f297e84177f695113cbb26df04f8e82a02165..2650199d2d64006e30bba1e2826ddc8d684ab888 100644 (file)
@@ -552,3 +552,4 @@ extern int SMBlib_SMB_Error;          /* last Error             */
 void SMB_Get_My_Name(char *name, int len);
 
 #endif /* _SMBLIB_PRIV_H_ */
+
index ae7420aec410da801e2622ddffdbf5871ec9335e..f9c65a230442d59bf45f5a226ca6bf0cd77012ac 100644 (file)
@@ -825,3 +825,4 @@ void SMB_Get_Error_Msg(int msg, char *msgbuf, int len)
     }
 
 }
+
index 7b0b84181f47740de832994e5f6439291d27813b..14a50f4e709f5e6b4773bf16c3826092c3c8f7cf 100644 (file)
@@ -588,3 +588,4 @@ int SMB_Discon(SMB_Handle_Type Con_Handle, BOOL KeepHandle)
     return(0);
 
 }
+
index ccbd28225e7470a5cad9b8e1b159f8a112e0c57c..68e4a559b7a89e153441cac07187285d04230c28 100644 (file)
 extern "C" {
 #endif
 
-    /* Just define all the entry points */
+/* Just define all the entry points */
 
-    /* Create a handle to allow us to set/override some parameters ...       */
+/* Create a handle to allow us to set/override some parameters ...       */
 
-    SMB_Handle_Type SMB_Create_Con_Handle(void);
+SMB_Handle_Type SMB_Create_Con_Handle(void);
 
-    /* Connect to a server, but do not do a tree con etc ... */
+/* Connect to a server, but do not do a tree con etc ... */
 
-    SMB_Handle_Type SMB_Connect_Server(SMB_Handle_Type Con_Handle,
-                                       char *server,
-                                       const char *NTdomain);
+SMB_Handle_Type SMB_Connect_Server(SMB_Handle_Type Con_Handle,
+                                   char *server,
+                                   const char *NTdomain);
 
-    /* Connect to a server and give us back a handle. If Con == NULL, create */
-    /* The handle and populate it with defaults                              */
+/* Connect to a server and give us back a handle. If Con == NULL, create */
+/* The handle and populate it with defaults                              */
 
-    SMB_Handle_Type SMB_Connect(SMB_Handle_Type Con_Handle,
-                                SMB_Tree_Handle *tree,
-                                char *service,
-                                char *username,
-                                char *password);
+SMB_Handle_Type SMB_Connect(SMB_Handle_Type Con_Handle,
+                            SMB_Tree_Handle *tree,
+                            char *service,
+                            char *username,
+                            char *password);
 
-    int SMB_Init(void);
+int SMB_Init(void);
 
-    int SMB_Logon_Server(SMB_Handle_Type Con_Handle,
-                         char *UserName,
-                         char *PassWord,
-                         const char *NtDomain,
-                         int PreCrypted);
+int SMB_Logon_Server(SMB_Handle_Type Con_Handle,
+                     char *UserName,
+                     char *PassWord,
+                     const char *NtDomain,
+                     int PreCrypted);
 
-    /* Negotiate a protocol                                                  */
+/* Negotiate a protocol                                                  */
 
-    int SMB_Negotiate(SMB_Handle_Type Con_Handle, const char *Prots[]);
+int SMB_Negotiate(SMB_Handle_Type Con_Handle, const char *Prots[]);
 
-    /* Connect to a tree ...                                                 */
+/* Connect to a tree ...                                                 */
 
-    SMB_Tree_Handle SMB_TreeConnect(SMB_Handle_Type con,
-                                    SMB_Tree_Handle tree,
-                                    const char *path,
-                                    const char *password,
-                                    const char *dev);
+SMB_Tree_Handle SMB_TreeConnect(SMB_Handle_Type con,
+                                SMB_Tree_Handle tree,
+                                const char *path,
+                                const char *password,
+                                const char *dev);
 
-    /* Disconnect a tree ...                                                 */
+/* Disconnect a tree ...                                                 */
 
-    int SMB_TreeDisconect(void *tree_handle);
+int SMB_TreeDisconect(void *tree_handle);
 
-    /* Open a file                                                           */
+/* Open a file                                                           */
 
-    void *SMB_Open(void *tree_handle,
-                   void *file_handle,
-                   char *file_name,
-                   unsigned short mode,
-                   unsigned short search);
+void *SMB_Open(void *tree_handle,
+               void *file_handle,
+               char *file_name,
+               unsigned short mode,
+               unsigned short search);
 
-    /* Close a file                                                          */
+/* Close a file                                                          */
 
-    int SMB_Close(void *file_handle);
+int SMB_Close(void *file_handle);
 
-    /* Disconnect from server. Has flag to specify whether or not we keep the */
-    /* handle.                                                                */
+/* Disconnect from server. Has flag to specify whether or not we keep the */
+/* handle.                                                                */
 
-    int SMB_Discon(SMB_Handle_Type Con_Handle, BOOL KeepHandle);
+int SMB_Discon(SMB_Handle_Type Con_Handle, BOOL KeepHandle);
 
-    void *SMB_Create(void *Tree_Handle,
-                     void *File_Handle,
-                     char *file_name,
-                     short search);
+void *SMB_Create(void *Tree_Handle,
+                 void *File_Handle,
+                 char *file_name,
+                 short search);
 
-    int SMB_Delete(void *tree, char *file_name, short search);
+int SMB_Delete(void *tree, char *file_name, short search);
 
-    int SMB_Create_Dir(void *tree, char *dir_name);
+int SMB_Create_Dir(void *tree, char *dir_name);
 
-    int SMB_Delete_Dir(void *tree, char *dir_name);
+int SMB_Delete_Dir(void *tree, char *dir_name);
 
-    int SMB_Check_Dir(void *tree, char *dir_name);
+int SMB_Check_Dir(void *tree, char *dir_name);
 
-    int SMB_Get_Last_Error(void);
+int SMB_Get_Last_Error(void);
 
-    int SMB_Get_Last_SMB_Err(void);
+int SMB_Get_Last_SMB_Err(void);
 
-    void SMB_Get_Error_Msg(int msg, char *msgbuf, int len);
+void SMB_Get_Error_Msg(int msg, char *msgbuf, int len);
 
-    void *SMB_Logon_And_TCon(void *con, void *tree, char *user, char *pass,
-                             char *service, char *st);
+void *SMB_Logon_And_TCon(void *con, void *tree, char *user, char *pass,
+                         char *service, char *st);
 
 #ifdef __cplusplus
 }
 #endif
 #endif /* _SMBLIB_SMBLIB_H */
+
index 013824dd7c22586e21d0b5c71129bb9d2b6ee6eb..a0cdfe531790d326b372334c57a49b34b6b37eb6 100644 (file)
@@ -49,3 +49,4 @@
 #define FALSE 0
 
 #endif /* _SMBLIB_STD_DEFINES_H */
+
index 6dd638dffa25719b4ff529095fc1fceb11ab111b..362f993ccab8059f3ad8acaa79709b8c92881121 100644 (file)
 #include "snmp_api_error.h"
 
 u_char *
-asn_build_header(u_char * data,        /* IN - ptr to start of object */
-                 int *datalength,              /* IN/OUT - # of valid bytes */
+asn_build_header(u_char * data, /* IN - ptr to start of object */
+                 int *datalength,       /* IN/OUT - # of valid bytes */
                  /*          left in buffer */
-                 u_char type,          /* IN - ASN type of object */
+                 u_char type,       /* IN - ASN type of object */
                  int length)
-{                              /* IN - length of object */
+{   /* IN - length of object */
     /* Truth is 0 'cause we don't know yet */
     return (asn_build_header_with_truth(data, datalength, type, length, 0));
 }
@@ -154,7 +154,7 @@ asn_parse_int(u_char * data, int *datalength,
 
     /* Is the int negative? */
     if (*bufp & 0x80)
-        value = -1;            /* integer is negative */
+        value = -1;     /* integer is negative */
 
     /* Extract the bytes */
     while (asn_length--)
@@ -220,7 +220,7 @@ asn_parse_unsigned_int(u_char * data, int *datalength,
 
     /* Is the int negative? */
     if (*bufp & 0x80)
-        value = -1;            /* integer is negative */
+        value = -1;     /* integer is negative */
 
     /* Extract the bytes */
     while (asn_length--)
@@ -551,7 +551,7 @@ asn_build_sequence(u_char * data, int *datalength,
 {
     *datalength -= 4;
     if (*datalength < 0) {
-        *datalength += 4;      /* fix up before punting */
+        *datalength += 4;   /* fix up before punting */
         snmp_set_api_error(SNMPERR_ASN_ENCODE);
         return (NULL);
     }
@@ -579,7 +579,7 @@ asn_parse_length(u_char * data, u_int * length)
     u_char lengthbyte = *data;
 
     if (lengthbyte & ASN_LONG_LEN) {
-        lengthbyte &= ~ASN_LONG_LEN;   /* turn MSb off */
+        lengthbyte &= ~ASN_LONG_LEN;    /* turn MSb off */
 
         if (lengthbyte == 0) {
             snmp_set_api_error(SNMPERR_ASN_DECODE);
@@ -629,7 +629,7 @@ asn_build_length(u_char * data, int *datalength,
             }
             *data++ = (u_char) (0x01 | ASN_LONG_LEN);
             *data++ = (u_char) length;
-        } else {               /* 0xFF < length <= 0xFFFF */
+        } else {        /* 0xFF < length <= 0xFFFF */
             if (*datalength < 3) {
                 snmp_set_api_error(SNMPERR_ASN_ENCODE);
                 return (NULL);
@@ -707,11 +707,11 @@ asn_parse_objid(u_char * data, int *datalength,
         objid[0] = objid[1] = 0;
 
     length = asn_length;
-    (*objidlength)--;          /* account for expansion of first byte */
+    (*objidlength)--;       /* account for expansion of first byte */
     while (length > 0 && (*objidlength)-- > 0) {
         subidentifier = 0;
 
-        do {                   /* shift and add in low order 7 bits */
+        do {            /* shift and add in low order 7 bits */
             subidentifier = (subidentifier << 7)
                             + (*(u_char *) bufp & ~ASN_BIT8);
             length--;
@@ -788,15 +788,15 @@ asn_build_objid(u_char * data, int *datalength,
 
     while (objidlength-- > 0) {
         subid = *op++;
-        if (subid < 127) {     /* off by one? */
+        if (subid < 127) {  /* off by one? */
             *bp++ = subid;
         } else {
-            mask = 0x7F;       /* handle subid == 0 case */
+            mask = 0x7F;    /* handle subid == 0 case */
             bits = 0;
             /* testmask *MUST* !!!! be of an unsigned type */
             for (testmask = 0x7F, testbits = 0; testmask != 0;
                     testmask <<= 7, testbits += 7) {
-                if (subid & testmask) {                /* if any bits set */
+                if (subid & testmask) {     /* if any bits set */
                     mask = testmask;
                     bits = testbits;
                 }
@@ -1012,3 +1012,4 @@ asn_build_exception(u_char * data, int *datalength, u_char type)
 {
     return (asn_build_header_with_truth(data, datalength, type, 0, 1));
 }
+
index 914fbdc24a5b150a4d5e65d8bfb73334ccce7430..8284337f564447cdd2a7d9b865844a2622ad77f3 100644 (file)
@@ -132,3 +132,4 @@ snmp_coexist_V2toV1(struct snmp_pdu *PDU)
         return (0);
     }
 }
+
index 14cd25bf3dfe2ac5a071f66405f190f63acdc447..ec8f28b020d23514f9b526bfff74460db93552de 100644 (file)
@@ -7,7 +7,7 @@
  */
 
 /***********************************************************
-       Copyright 1988, 1989 by Carnegie Mellon University
+    Copyright 1988, 1989 by Carnegie Mellon University
 
                       All Rights Reserved
 
@@ -229,7 +229,7 @@ int
 read_objid(input, output, out_len)
 char *input;
 oid *output;
-int *out_len;          /* number of subid's in "output" */
+int *out_len;       /* number of subid's in "output" */
 {
     struct snmp_mib_tree *root = Mib;
     oid *op = output;
@@ -263,12 +263,12 @@ int *out_len;             /* number of subid's in "output" */
 void
 print_objid(objid, objidlen)
 oid *objid;
-int objidlen;          /* number of subidentifiers */
+int objidlen;       /* number of subidentifiers */
 {
     char buf[256];
     struct snmp_mib_tree *subtree = Mib;
 
-    *buf = '.';                        /* this is a fully qualified name */
+    *buf = '.';         /* this is a fully qualified name */
     get_symbol(objid, objidlen, subtree, buf + 1);
     snmplib_debug(7, "%s\n", buf);
 
@@ -278,11 +278,11 @@ void
 sprint_objid(buf, objid, objidlen)
 char *buf;
 oid *objid;
-int objidlen;          /* number of subidentifiers */
+int objidlen;       /* number of subidentifiers */
 {
     struct snmp_mib_tree *subtree = Mib;
 
-    *buf = '.';                        /* this is a fully qualified name */
+    *buf = '.';         /* this is a fully qualified name */
     get_symbol(objid, objidlen, subtree, buf + 1);
 }
 
@@ -303,12 +303,12 @@ char *buf;
     }
 
     /* subtree not found */
-    while (objidlen--) {       /* output rest of name, uninterpreted */
+    while (objidlen--) {    /* output rest of name, uninterpreted */
         sprintf(buf, "%u.", *objid++);
         while (*buf)
             buf++;
     }
-    *(buf - 1) = '\0';         /* remove trailing dot */
+    *(buf - 1) = '\0';      /* remove trailing dot */
     return NULL;
 
 found:
@@ -333,3 +333,4 @@ print_oid_nums(oid * O, int len)
     for (x = 0; x < len; x++)
         printf(".%u", O[x]);
 }
+
index 5a1aea8b1aceaf999dc5f38b83589121ba6cdc51..e93cc03bc56da60d8f3192f5fe6f6adceea60d89 100644 (file)
@@ -7,7 +7,7 @@
  */
 
 /***********************************************************
-       Copyright 1989 by Carnegie Mellon University
+    Copyright 1989 by Carnegie Mellon University
 
                       All Rights Reserved
 
@@ -103,40 +103,40 @@ struct subid {
  */
 struct node {
     struct node *next;
-    char label[64];            /* This node's (unique) textual name */
-    u_int subid;               /* This node's integer subidentifier */
-    char parent[64];           /* The parent's textual name */
-    int type;                  /* The type of object this represents */
-    struct enum_list *enums;   /* (optional) list of enumerated integers (otherwise NULL) */
+    char label[64];     /* This node's (unique) textual name */
+    u_int subid;        /* This node's integer subidentifier */
+    char parent[64];        /* The parent's textual name */
+    int type;           /* The type of object this represents */
+    struct enum_list *enums;    /* (optional) list of enumerated integers (otherwise NULL) */
 };
 
 int Line = 1;
 
 /* types of tokens */
-#define        CONTINUE    -1
+#define CONTINUE    -1
 #define ENDOFFILE   0
-#define LABEL      1
-#define SUBTREE            2
-#define SYNTAX     3
+#define LABEL       1
+#define SUBTREE     2
+#define SYNTAX      3
 #undef OBJID
-#define OBJID      4
+#define OBJID       4
 #define OCTETSTR    5
 #undef INTEGER
-#define INTEGER            6
-#define NETADDR            7
-#define        IPADDR      8
-#define COUNTER            9
-#define GAUGE      10
+#define INTEGER     6
+#define NETADDR     7
+#define IPADDR      8
+#define COUNTER     9
+#define GAUGE       10
 #define TIMETICKS   11
-#define SNMP_OPAQUE        12
-#define NUL        13
+#define SNMP_OPAQUE     12
+#define NUL     13
 #define SEQUENCE    14
-#define OF         15          /* SEQUENCE OF */
-#define OBJTYPE            16
-#define ACCESS     17
+#define OF      15      /* SEQUENCE OF */
+#define OBJTYPE     16
+#define ACCESS      17
 #define READONLY    18
 #define READWRITE   19
-#define        WRITEONLY   20
+#define WRITEONLY   20
 #undef NOACCESS
 #define NOACCESS    21
 #define SNMP_STATUS 22
@@ -144,25 +144,25 @@ int Line = 1;
 #define SNMP_OPTIONAL    24
 #define OBSOLETE    25
 #define RECOMMENDED 26
-#define PUNCT      27
-#define EQUALS     28
-#define NUMBER     29
+#define PUNCT       27
+#define EQUALS      28
+#define NUMBER      29
 #define LEFTBRACKET 30
 #define RIGHTBRACKET 31
-#define        LEFTPAREN   32
+#define LEFTPAREN   32
 #define RIGHTPAREN  33
-#define COMMA      34
+#define COMMA       34
 /* For SNMPv2 SMI pseudo-compliance */
 #define DESCRIPTION 35
 #define INDEX       36
 #define QUOTE       37
 
 struct tok {
-    const char *name;                  /* token name */
-    int len;                   /* length not counting nul */
-    int token;                 /* value */
-    int hash;                  /* hash of name */
-    struct tok *next;          /* pointer to next in hash table */
+    const char *name;           /* token name */
+    int len;            /* length not counting nul */
+    int token;          /* value */
+    int hash;           /* hash of name */
+    struct tok *next;       /* pointer to next in hash table */
 };
 
 struct tok tokens[] = {
@@ -213,8 +213,8 @@ struct tok tokens[] = {
     {NULL}
 };
 
-#define        HASHSIZE        32
-#define        BUCKET(x)       (x & 0x01F)
+#define HASHSIZE    32
+#define BUCKET(x)   (x & 0x01F)
 
 static struct tok *buckets[HASHSIZE];
 
@@ -233,7 +233,7 @@ hash_init(void)
         tp->hash = h;
         b = BUCKET(h);
         if (buckets[b])
-            tp->next = buckets[b];     /* BUG ??? */
+            tp->next = buckets[b];  /* BUG ??? */
         buckets[b] = tp;
     }
 }
@@ -378,21 +378,21 @@ do_subtree(struct snmp_mib_tree *root, struct node **nodes)
             oldnp = np;
         } else {
             if (child_list == NULL) {
-                child_list = childp = np;      /* first entry in child list */
+                child_list = childp = np;   /* first entry in child list */
             } else {
                 childp->next = np;
                 childp = np;
             }
             /* take this node out of the node list */
             if (oldnp == NULL) {
-                *headp = np->next;     /* fix root of node list */
+                *headp = np->next;  /* fix root of node list */
             } else {
-                oldnp->next = np->next;                /* link around this node */
+                oldnp->next = np->next;     /* link around this node */
             }
         }
     }
     if (childp)
-        childp->next = 0;      /* re-terminate list */
+        childp->next = 0;   /* re-terminate list */
     /*
      * Take each element in the child list and place it into the tree.
      */
@@ -405,7 +405,7 @@ do_subtree(struct snmp_mib_tree *root, struct node **nodes)
         tp->subid = np->subid;
         tp->type = translation_table[np->type];
         tp->enums = np->enums;
-        np->enums = NULL;      /* so we don't free them later */
+        np->enums = NULL;   /* so we don't free them later */
         if (root->child_list == NULL) {
             root->child_list = tp;
         } else if (peer) {
@@ -413,7 +413,7 @@ do_subtree(struct snmp_mib_tree *root, struct node **nodes)
         }
         peer = tp;
         /*      if (tp->type == TYPE_OTHER) */
-        do_subtree(tp, nodes); /* recurse on this child if it isn't an end node */
+        do_subtree(tp, nodes);  /* recurse on this child if it isn't an end node */
     }
     /* free all nodes that were copied into tree */
     oldnp = NULL;
@@ -558,8 +558,8 @@ get_token(register FILE *fp, register char *token)
  * { iso org(3) dod(6) 1 }
  * and creates several nodes, one for each parent-child pair.
  * Returns NULL on error.
- *   register struct subid *SubOid;    an array of subids
- *   int length;                       the length of the array
+ *   register struct subid *SubOid; an array of subids
+ *   int length;            the length of the array
  */
 static int
 getoid(register FILE *fp, register struct subid *SubOid, int length)
@@ -740,7 +740,7 @@ parse_asntype(FILE *fp)
 
     type = get_token(fp, token);
     if (type != SEQUENCE) {
-        print_error("Not a sequence", token, type);    /* should we handle this */
+        print_error("Not a sequence", token, type); /* should we handle this */
         return ENDOFFILE;
     }
     while ((type = get_token(fp, token)) != ENDOFFILE) {
@@ -1115,3 +1115,4 @@ read_mib(char *filename) {
     tree = build_tree(nodes);
     return (tree);
 }
+
index 4813767ae76e42057475ccea05a0b0b1d907c847..3c9a0c4ce4adb4247fb6404ab246afc0b1d22a87 100644 (file)
@@ -158,3 +158,4 @@ snmp_parse(struct snmp_session * session,
 
     return (bufp);
 }
+
index 06001e2d9f157896889dd5fd50ea4c4c5778b9a6..0d55fa0188460527cf9df1ef92d13dc629f12611 100644 (file)
@@ -51,8 +51,8 @@ static const char *api_errors[17] = {
     "Unknown session",
     "Too Long",
 
-    "Encoding ASN.1 Information",      /* 6 */
-    "Decoding ASN.1 Information",      /* 7 */
+    "Encoding ASN.1 Information",   /* 6 */
+    "Decoding ASN.1 Information",   /* 7 */
     "PDU Translation error",
     "OS Error",
     "Invalid Textual OID",
@@ -94,3 +94,4 @@ api_errstring(int snmp_errnumber)
 {
     return (snmp_api_error(snmp_errnumber));
 }
+
index 6b61b1c745f85bc66bd8466e00ca69bc72f0d5c7..1909e83e523ac7fa61bd03f79de9d9b4da9703f7 100644 (file)
@@ -84,3 +84,4 @@ snmp_errstring(int errstat)
         return "Unknown Error";
     }
 }
+
index e084cfb3ea4a491f70a6236d2811ea8b75a57951..a1b6207f3a7678a4f7106ac624e75270c979b462 100644 (file)
@@ -194,7 +194,7 @@ snmp_msg_Encode(u_char * Buffer, int *BufLenP,
     PDUDataStart = bufp;
     bufp = snmp_pdu_encode(bufp, BufLenP, PDU);
     if (bufp == NULL)
-        return (NULL);         /* snmp_pdu_encode registered failure */
+        return (NULL);      /* snmp_pdu_encode registered failure */
 
     VARHeaderPtr = bufp;
     bufp = asn_build_header(bufp, BufLenP,
@@ -207,7 +207,7 @@ snmp_msg_Encode(u_char * Buffer, int *BufLenP,
     /* And build the variables */
     bufp = snmp_var_EncodeVarBind(bufp, BufLenP, PDU->variables, Version);
     if (bufp == NULL)
-        return (NULL);         /* snmp_var_EncodeVarBind registered failure */
+        return (NULL);      /* snmp_var_EncodeVarBind registered failure */
 
     /* Cool.  Now insert the appropriate lengths.
      */
@@ -231,14 +231,14 @@ snmp_msg_Encode(u_char * Buffer, int *BufLenP,
     tmp = asn_build_header(Buffer,
                            &FakeArg,
                            (u_char) (ASN_SEQUENCE | ASN_CONSTRUCTOR),
-                           (bufp - MsgPtr));   /* Length of everything */
+                           (bufp - MsgPtr));    /* Length of everything */
     if (tmp == NULL)
         return (NULL);
 
     tmp = asn_build_header(VARHeaderPtr,
                            &FakeArg,
                            (u_char) (ASN_SEQUENCE | ASN_CONSTRUCTOR),
-                           (bufp - VARDataStart));     /* Length of everything */
+                           (bufp - VARDataStart));  /* Length of everything */
     if (tmp == NULL)
         return (NULL);
 
@@ -301,3 +301,4 @@ snmp_msg_Decode(u_char * Packet, int *PacketLenP,
 
     return (u_char *) bufp;
 }
+
index b10ff0a1830c1b22fdfe7464c18d1ce7847511dd..831aa10fd0b26eacb1b7e94d29d1116c43f920d0 100644 (file)
@@ -404,7 +404,7 @@ snmp_pdu_encode(u_char * DestBuf, int *DestBufLen,
         break;
 #endif
 
-        /**********************************************************************/
+    /**********************************************************************/
 
     case SNMP_PDU_GETBULK:
 
@@ -434,7 +434,7 @@ snmp_pdu_encode(u_char * DestBuf, int *DestBufLen,
             return (NULL);
         break;
 
-        /**********************************************************************/
+    /**********************************************************************/
 
     default:
 
@@ -470,7 +470,7 @@ snmp_pdu_encode(u_char * DestBuf, int *DestBufLen,
         if (bufp == NULL)
             return (NULL);
         break;
-    }                          /* End of encoding */
+    }               /* End of encoding */
 
     return (bufp);
 }
@@ -483,10 +483,10 @@ snmp_pdu_encode(u_char * DestBuf, int *DestBufLen,
  * Variable Bindings start.
  */
 u_char *
-snmp_pdu_decode(u_char * Packet,       /* data */
-                int *Length,           /* &length */
+snmp_pdu_decode(u_char * Packet,    /* data */
+                int *Length,        /* &length */
                 struct snmp_pdu * PDU)
-{                              /* pdu */
+{   /* pdu */
     u_char *bufp;
     u_char PDUType;
     u_char ASNType;
@@ -560,7 +560,7 @@ snmp_pdu_decode(u_char * Packet,    /* data */
         break;
 #endif
 
-        /**********************************************************************/
+    /**********************************************************************/
 
     case SNMP_PDU_GETBULK:
 
@@ -588,7 +588,7 @@ snmp_pdu_decode(u_char * Packet,    /* data */
             ASN_PARSE_ERROR(NULL);
         break;
 
-        /**********************************************************************/
+    /**********************************************************************/
 
     default:
 
@@ -662,3 +662,4 @@ snmp_add_null_var(struct snmp_pdu *pdu, oid * name, int name_length)
 
     return;
 }
+
index 5f068087d401d1d0e8fa76f6c0dee6dbcf9a74ce..303b369ddd840945377be6ab5d346724fae5462b 100644 (file)
@@ -304,7 +304,7 @@ snmp_var_EncodeVarBind(u_char * Buffer, int *BufLenP,
 
         case SMI_COUNTER32:
         case SMI_GAUGE32:
-            /*  case SMI_UNSIGNED32: */
+        /*  case SMI_UNSIGNED32: */
         case SMI_TIMETICKS:
             bufp = asn_build_unsigned_int(bufp, BufLenP,
                                           Vars->type,
@@ -340,7 +340,7 @@ snmp_var_EncodeVarBind(u_char * Buffer, int *BufLenP,
 
         case SMI_COUNTER64:
             snmplib_debug(2, "Unable to encode type SMI_COUNTER64!\n");
-            /* Fall through */
+        /* Fall through */
 
         default:
             snmp_set_api_error(SNMPERR_UNSUPPORTED_TYPE);
@@ -485,7 +485,7 @@ snmp_var_DecodeVarBind(u_char * Buffer, int *BufLen,
 
         case SMI_COUNTER32:
         case SMI_GAUGE32:
-            /*  case SMI_UNSIGNED32: */
+        /*  case SMI_UNSIGNED32: */
         case SMI_TIMETICKS:
             Var->val.integer = (int *) xmalloc(sizeof(u_int));
             if (Var->val.integer == NULL) {
@@ -505,7 +505,7 @@ snmp_var_DecodeVarBind(u_char * Buffer, int *BufLen,
         case ASN_OCTET_STR:
         case SMI_IPADDRESS:
         case SMI_OPAQUE:
-            Var->val_len = *&ThisVarLen;       /* String is this at most */
+            Var->val_len = *&ThisVarLen;    /* String is this at most */
             Var->val.string = (u_char *) xmalloc((unsigned) Var->val_len);
             if (Var->val.string == NULL) {
                 snmp_set_api_error(SNMPERR_OS_ERR);
@@ -555,7 +555,7 @@ snmp_var_DecodeVarBind(u_char * Buffer, int *BufLen,
             snmplib_debug(2, "bad type returned (%x)\n", Var->type);
             snmp_set_api_error(SNMPERR_PDU_PARSE);
             PARSE_ERROR;
-        }                      /* End of var type switch */
+        }           /* End of var type switch */
 
         if (bufp == NULL)
             PARSE_ERROR;
@@ -571,3 +571,4 @@ snmp_var_DecodeVarBind(u_char * Buffer, int *BufLen,
 
     return (bufp);
 }
+
index 7be554af222c974959c6d6ca63021ae5e5492f1f..9d3194631b4a99152472c4197ea0e87804ecdc5b 100644 (file)
@@ -32,3 +32,4 @@ snmplib_debug(int lvl, const char *fmt,...)
     }
     va_end(args);
 }
+
index a41322ac5c28398d4b09c30b60413b215412f5bd..dd437beb08639e9c04c80649da1bc778a727f288 100644 (file)
@@ -579,3 +579,4 @@ const char * WINAPI SSP_ValidateNegotiateCredentials(PVOID PAutenticateBuf, int
         encoded = base64_encode_bin((char *) pServerBuf, cbOut);
     return encoded;
 }
+
index b3491d2d68dff67d1d3e653da91beedec14b8f44..3c649295cf0de7e803e53f321a48dece5608925b 100644 (file)
@@ -15,3 +15,4 @@ statMemoryAccounted(void)
 {
     return -1;
 }
+
index 1fed7a30994c532dee78c0e178ddcf7945906cc2..ee3684ef4e82c402301b5f4b9d0e343a104329e8 100644 (file)
@@ -18,8 +18,8 @@
 CPPUNIT_TEST_SUITE_REGISTRATION( testRFC1035 );
 
 // TODO Test each function in the Library independently
-//     Just because we can for global functions.
-//     It's good for the code too.
+//  Just because we can for global functions.
+//  It's good for the code too.
 
 void testRFC1035::testHeaderUnpack()
 {
@@ -139,3 +139,4 @@ void testRFC1035::testBugPacketHeadersOnly()
     CPPUNIT_ASSERT(res < 0);
     CPPUNIT_ASSERT(msg == NULL);
 }
+
index d6d895be53f99d294453730bc0359bf356bd35af..c6eecb1f768fd1a82960cd894674b7534041acd5 100644 (file)
@@ -37,3 +37,4 @@ protected:
 };
 
 #endif /* SQUID_SRC_TEST_IPADDRESS_H */
+
index 0013246207dc10e812457646a49f7a75441d92e2..640d361baf12fc42a14fd321534f22e7c75d8b22 100644 (file)
@@ -151,3 +151,4 @@ void testRFC1738::PercentZeroNullDecoding()
     CPPUNIT_ASSERT(memcmp(unescaped_str, "w%%00%rd",9)==0);
     xfree(unescaped_str);
 }
+
index 3138167ccd992dd86bb0f98b331c7353484fe20d..b7f684f48db546914f95e1b2afa53e63353861bf 100644 (file)
@@ -34,3 +34,4 @@ protected:
 };
 
 #endif /* SQUID_LIB_TEST_RFC1738_H */
+
index 8ee7bd88798eb1b5f1da21626006404dcb8a66b8..6d8f2b11d994f28c3d3c359603ec75e931ed5ccb 100644 (file)
@@ -78,7 +78,7 @@ xdiv(double nom, double denom)
 const char *
 xitoa(int num)
 {
-    static char buf[24];       /* 2^64 = 18446744073709551616 */
+    static char buf[24];    /* 2^64 = 18446744073709551616 */
     snprintf(buf, sizeof(buf), "%d", num);
     return buf;
 }
@@ -87,7 +87,7 @@ xitoa(int num)
 const char *
 xint64toa(int64_t num)
 {
-    static char buf[24];       /* 2^64 = 18446744073709551616 */
+    static char buf[24];    /* 2^64 = 18446744073709551616 */
     snprintf(buf, sizeof(buf), "%" PRId64, num);
     return buf;
 }
@@ -154,3 +154,4 @@ unsigned int RoundTo(const unsigned int num, const unsigned int what)
 {
     return what * ((num + what -1)/what);
 }
+
index f5c6f4691f124d28c3fb56aa03d7ca82f8391384..d4005b33bd9491ab5e6e8dfe0e2ebbbc27edd8f6 100644 (file)
@@ -70,3 +70,4 @@ uudecode(const char *bufcoded)
     bufplain[nbytesdecoded] = '\0';
     return bufplain;
 }
+
index 1cf17a37b7b4d3c13d437209c4030839f75434e0..e31ae674b31db68c403c367fc20f9540b6c16f19 100644 (file)
@@ -25,3 +25,4 @@ xusleep(unsigned int usec)
     sl.tv_usec = usec % 1000000;
     return select(0, NULL, NULL, NULL, &sl);
 }
+
index 3d40fd2d7d73c5dc4c1a333b3fb58247d4247f2f..43d099d8191a813e0e7ccf42301c9fbaa094403c 100644 (file)
@@ -5,3 +5,4 @@
  * contributions from numerous individuals and organizations.
  * Please see the COPYING and CONTRIBUTORS files for details.
  */
+
index de9d454980ce1d3082b93a0cfb7d42fa412c8ff6..d28aae29f28a5b4ebee97bab6a61d0db56452c58 100644 (file)
@@ -69,3 +69,4 @@ AccessLogEntry::~AccessLogEntry()
     HTTPMSGUNLOCK(icap.request);
 #endif
 }
+
index cf939a5f1a84dcae6f412f064d9e1c0e11ff7e38..24fea169e40a4f120238d17065513b55a7bed150 100644 (file)
@@ -40,7 +40,7 @@ public:
     typedef RefCount<AccessLogEntry> Pointer;
 
     AccessLogEntry() : url(NULL), tcpClient(), reply(NULL), request(NULL),
-            adapted_request(NULL) {}
+        adapted_request(NULL) {}
     ~AccessLogEntry();
 
     /// Fetch the client IP log string into the given buffer.
@@ -64,10 +64,10 @@ public:
 
     public:
         HttpDetails() : method(Http::METHOD_NONE), code(0), content_type(NULL),
-                timedout(false),
-                aborted(false),
-                clientRequestSz(),
-                clientReplySz() {}
+            timedout(false),
+            aborted(false),
+            clientRequestSz(),
+            clientReplySz() {}
 
         HttpRequestMethod method;
         int code;
@@ -138,15 +138,15 @@ public:
 
     public:
         CacheDetails() : caddr(),
-                highOffset(0),
-                objectSize(0),
-                code (LOG_TAG_NONE),
-                rfc931 (NULL),
-                extuser(NULL),
+            highOffset(0),
+            objectSize(0),
+            code (LOG_TAG_NONE),
+            rfc931 (NULL),
+            extuser(NULL),
 #if USE_OPENSSL
-                ssluser(NULL),
+            ssluser(NULL),
 #endif
-                port(NULL)
+            port(NULL)
         {
             caddr.setNoAddr();
             memset(&start_time, 0, sizeof(start_time));
@@ -178,8 +178,8 @@ public:
 
     public:
         Headers() : request(NULL),
-                adapted_request(NULL),
-                reply(NULL) {}
+            adapted_request(NULL),
+            reply(NULL) {}
 
         char *request; //< virgin HTTP request headers
 
@@ -230,8 +230,8 @@ public:
     {
     public:
         IcapLogEntry() : reqMethod(Adaptation::methodNone), bytesSent(0), bytesRead(0),
-                bodyBytesRead(-1), request(NULL), reply(NULL),
-                outcome(Adaptation::Icap::xoUnknown), resStatus(Http::scNone)
+            bodyBytesRead(-1), request(NULL), reply(NULL),
+            outcome(Adaptation::Icap::xoUnknown), resStatus(Http::scNone)
         {
             memset(&trTime, 0, sizeof(trTime));
             memset(&ioTime, 0, sizeof(ioTime));
@@ -283,3 +283,4 @@ void accessLogInit(void);
 const char *accessLogTime(time_t);
 
 #endif /* SQUID_HTTPACCESSLOGENTRY_H */
+
index 2df234ae4cf70db9bb92e3fec5948958d302e9ca..1db9185bffc8dbde4db5e7dc311567c14e1dc567 100644 (file)
@@ -217,3 +217,4 @@ ACLStrategised<HttpRequest *> ACLNote::RegistryEntry_(new ACLNoteData, ACLNoteSt
 ACL::Prototype ACLAdaptationService::RegistryProtoype(&ACLAdaptationService::RegistryEntry_, "adaptation_service");
 ACLStrategised<const char *> ACLAdaptationService::RegistryEntry_(new ACLAdaptationServiceData, ACLAdaptationServiceStrategy::Instance(), "adaptation_service");
 #endif
+
index e952ce1bad0b8a280782bcdd823558652a45ea46..6d6dcba03483c795f2cf67f651c6d3946868f4f2 100644 (file)
@@ -8,3 +8,4 @@
 
 #include "squid.h"
 #include "AsyncEngine.h"
+
index 3229d63d152dc69345367cc1cae841d414025b4a..d6bfdc7581359f4245860cedf56703c494aa24d5 100644 (file)
@@ -56,3 +56,4 @@ public:
 };
 
 #endif /* SQUID_ASYNCENGINE_H */
+
index 7732d9b88c578103cd0ab55a16364960631fbd54..7cee4956b0e23c84c8d00d0baad00f62a5fdde5e 100644 (file)
@@ -54,3 +54,4 @@ Auth::Init()
 }
 
 #endif /* USE_AUTH */
+
index e14a432f2d3e3bdbf0038f692df126b60aac4d62..7d84d1cff4f5b5738776d1dd159d5f11685984d4 100644 (file)
@@ -23,3 +23,4 @@ inline void Init(void) {} /* NOP if not USE_AUTH */
 
 } // namespace Auth
 #endif /* SQUID_AUTHREG_H_ */
+
index f90ef99baca7aad79fa7b11df707155ed024bd73..2807210ceeb8bac9a620839f288db23552baa264 100644 (file)
@@ -51,7 +51,7 @@ public:
 
     BodyProducerDialer(const BodyProducer::Pointer &aProducer,
                        Parent::Method aHandler, BodyPipe::Pointer bp):
-            Parent(aProducer, aHandler, bp) {}
+        Parent(aProducer, aHandler, bp) {}
 
     virtual bool canDial(AsyncCall &call);
 };
@@ -66,7 +66,7 @@ public:
 
     BodyConsumerDialer(const BodyConsumer::Pointer &aConsumer,
                        Parent::Method aHandler, BodyPipe::Pointer bp):
-            Parent(aConsumer, aHandler, bp) {}
+        Parent(aConsumer, aHandler, bp) {}
 
     virtual bool canDial(AsyncCall &call);
 };
@@ -128,9 +128,9 @@ void BodyConsumer::stopConsumingFrom(RefCount<BodyPipe> &p)
 /* BodyPipe */
 
 BodyPipe::BodyPipe(Producer *aProducer): theBodySize(-1),
-        theProducer(aProducer), theConsumer(0),
-        thePutSize(0), theGetSize(0),
-        mustAutoConsume(false), abortedConsumption(false), isCheckedOut(false)
+    theProducer(aProducer), theConsumer(0),
+    thePutSize(0), theGetSize(0),
+    mustAutoConsume(false), abortedConsumption(false), isCheckedOut(false)
 {
     // TODO: teach MemBuf to start with zero minSize
     // TODO: limit maxSize by theBodySize, when known?
@@ -283,7 +283,7 @@ BodyPipe::expectNoConsumption()
         AsyncCall::Pointer call= asyncCall(91, 7,
                                            "BodyProducer::noteBodyConsumerAborted",
                                            BodyProducerDialer(theProducer,
-                                                              &BodyProducer::noteBodyConsumerAborted, this));
+                                                   &BodyProducer::noteBodyConsumerAborted, this));
         ScheduleCallHere(call);
         abortedConsumption = true;
 
@@ -383,7 +383,7 @@ BodyPipe::postConsume(size_t size)
         AsyncCall::Pointer call=  asyncCall(91, 7,
                                             "BodyProducer::noteMoreBodySpaceAvailable",
                                             BodyProducerDialer(theProducer,
-                                                               &BodyProducer::noteMoreBodySpaceAvailable, this));
+                                                    &BodyProducer::noteMoreBodySpaceAvailable, this));
         ScheduleCallHere(call);
     }
 }
@@ -413,7 +413,7 @@ BodyPipe::scheduleBodyDataNotification()
         AsyncCall::Pointer call = asyncCall(91, 7,
                                             "BodyConsumer::noteMoreBodyDataAvailable",
                                             BodyConsumerDialer(theConsumer,
-                                                               &BodyConsumer::noteMoreBodyDataAvailable, this));
+                                                    &BodyConsumer::noteMoreBodyDataAvailable, this));
         ScheduleCallHere(call);
     }
 }
@@ -426,13 +426,13 @@ BodyPipe::scheduleBodyEndNotification()
             AsyncCall::Pointer call = asyncCall(91, 7,
                                                 "BodyConsumer::noteBodyProductionEnded",
                                                 BodyConsumerDialer(theConsumer,
-                                                                   &BodyConsumer::noteBodyProductionEnded, this));
+                                                        &BodyConsumer::noteBodyProductionEnded, this));
             ScheduleCallHere(call);
         } else {
             AsyncCall::Pointer call = asyncCall(91, 7,
                                                 "BodyConsumer::noteBodyProducerAborted",
                                                 BodyConsumerDialer(theConsumer,
-                                                                   &BodyConsumer::noteBodyProducerAborted, this));
+                                                        &BodyConsumer::noteBodyProducerAborted, this));
             ScheduleCallHere(call);
         }
     }
@@ -477,8 +477,8 @@ const char *BodyPipe::status() const
 /* BodyPipeCheckout */
 
 BodyPipeCheckout::BodyPipeCheckout(BodyPipe &aPipe): thePipe(aPipe),
-        buf(aPipe.checkOut()), offset(aPipe.consumedSize()),
-        checkedOutSize(buf.contentSize()), checkedIn(false)
+    buf(aPipe.checkOut()), offset(aPipe.consumedSize()),
+    checkedOutSize(buf.contentSize()), checkedIn(false)
 {
 }
 
@@ -502,8 +502,8 @@ BodyPipeCheckout::checkIn()
 }
 
 BodyPipeCheckout::BodyPipeCheckout(const BodyPipeCheckout &c): thePipe(c.thePipe),
-        buf(c.buf), offset(c.offset), checkedOutSize(c.checkedOutSize),
-        checkedIn(c.checkedIn)
+    buf(c.buf), offset(c.offset), checkedOutSize(c.checkedOutSize),
+    checkedIn(c.checkedIn)
 {
     assert(false); // prevent copying
 }
@@ -514,3 +514,4 @@ BodyPipeCheckout::operator =(const BodyPipeCheckout &)
     assert(false); // prevent assignment
     return *this;
 }
+
index 83f7bcfc35fc3f1f65e3079163280da7de8bdb82..98254a7532c1bc342d6b5dc6c74a40c5c219fec6 100644 (file)
@@ -169,3 +169,4 @@ private:
 };
 
 #endif /* SQUID_BODY_PIPE_H */
+
index 82f3eeb0d3bf33ebb816f86f64143f4d5c9533e1..a9c1efa2f81fe25f516003cddd69ee6f42e363cb 100644 (file)
 /* local types */
 
 typedef struct {
-    int bit_count;             /* total number of bits */
-    int bit_on_count;          /* #bits turned on */
-    int bseq_len_sum;          /* sum of all bit seq length */
-    int bseq_count;            /* number of bit seqs */
+    int bit_count;      /* total number of bits */
+    int bit_on_count;       /* #bits turned on */
+    int bseq_len_sum;       /* sum of all bit seq length */
+    int bseq_count;     /* number of bit seqs */
 } CacheDigestStats;
 
 /* local functions */
@@ -53,7 +53,7 @@ CacheDigest *
 cacheDigestCreate(int capacity, int bpe)
 {
     CacheDigest *cd = (CacheDigest *)memAllocate(MEM_CACHE_DIGEST);
-    assert(SQUID_MD5_DIGEST_LENGTH == 16);     /* our hash functions rely on 16 byte keys */
+    assert(SQUID_MD5_DIGEST_LENGTH == 16);  /* our hash functions rely on 16 byte keys */
     cacheDigestInit(cd, capacity, bpe);
     return cd;
 }
@@ -243,7 +243,7 @@ cacheDigestGuessStatsReport(const CacheDigestGuessStats * stats, StoreEntry * se
     const int tot_count = true_count + false_count;
 
     assert(label);
-    assert(tot_count == hit_count + miss_count);       /* paranoid */
+    assert(tot_count == hit_count + miss_count);    /* paranoid */
 
     if (!tot_count) {
         storeAppendPrintf(sentry, "no guess stats for %s available\n", label);
@@ -320,3 +320,4 @@ cacheDigestHashKey(const CacheDigest * cd, const cache_key * key)
 }
 
 #endif
+
index 46f7478e6c65f1fe5b818fc21238993ea1cbca53..f5c008ad405f999be8ab121df5da160c7a7e4fb0 100644 (file)
@@ -45,3 +45,4 @@ void cacheDigestGuessStatsReport(const CacheDigestGuessStats * stats, StoreEntry
 void cacheDigestReport(CacheDigest * cd, const char *label, StoreEntry * e);
 
 #endif /* SQUID_CACHEDIGEST_H_ */
+
index 2d0d5aec50e81d400bb3e581cc0f802afde4c297..99a7cee1ecf85af7b24dd1de223a1c65cca260fa 100644 (file)
@@ -77,3 +77,4 @@ private:
 };
 
 #endif /* SQUID_CACHEMANAGER_H */
+
index 5b7d9105ee5a08d749a328b9380a6c8729ec331b..57f4652ac62be9bc3d879e01d9b571531d142fa9 100644 (file)
@@ -198,3 +198,4 @@ public:
 };
 
 #endif /* SQUID_CACHEPEER_H_ */
+
index d18cf3eb2c03a021071359904d67a0b6eae98340..0f9d9e0b5705c1e1b18e4ea9a360b9aa5400d32e 100644 (file)
@@ -19,3 +19,4 @@ public:
 };
 
 #endif /* SQUID_CACHEPEERDOMAINLIST_H_ */
+
index d3d0475b7209cbdaba4da2dbc4ccf410fcd97c83..df153d03d8dd4d3cc3527b2fc43b6d3b6d89304a 100644 (file)
@@ -308,3 +308,4 @@ void ChunkedCodingParser::parseLastChunkExtension()
     theIn->consume(crlfEnd);
     theStep = theChunkSize ? psChunkBody : psTrailer;
 }
+
index 1bc6ab81b26710ff3162c132a3e0f29cb86a2ff6..60829fc78d9f902b8c834826821c1de4b97c1621 100644 (file)
@@ -81,3 +81,4 @@ public:
 };
 
 #endif /* SQUID_CHUNKEDCODINGPARSER_H */
+
index 4f130ecfbd7bc65fdbc8570f50dc3cf2967de65e..6c36f99e872b0cdff76612577291d51f1976940c 100644 (file)
@@ -100,3 +100,4 @@ void ClientDelayConfig::clean()
         aclDestroyAccessList(&pools[i].access);
     }
 }
+
index a331c0d8a50c968ad181df54c5b0b3d00026a1d0..5d0ae0ba9b547f1ea10030e5baecf19ab3082e3e 100644 (file)
@@ -23,7 +23,7 @@ class ClientDelayPool
 {
 public:
     ClientDelayPool()
-            :   access(NULL), rate(0), highwatermark(0) {}
+        :   access(NULL), rate(0), highwatermark(0) {}
     void dump (StoreEntry * entry, unsigned int poolNumberMinusOne) const;
     acl_access *access;
     int rate;
@@ -37,7 +37,7 @@ class ClientDelayConfig
 {
 public:
     ClientDelayConfig()
-            :   initial(50) {}
+        :   initial(50) {}
     void freePoolCount();
     void dumpPoolCount(StoreEntry * entry, const char *name) const;
     /* parsing of client_delay_pools - number of pools */
@@ -57,3 +57,4 @@ private:
 };
 
 #endif // SQUID_CLIENTDELAYCONFIG_H
+
index 4c356e48a3e90a1f5273d7b0a4d9614af55f44a5..ef23b9258b048b1c42de68ed555002b2b4814bea 100644 (file)
@@ -114,3 +114,4 @@ private:
 #endif /* USE_DELAY_POOLS */
 
 #endif
+
index 985f359d5ec939317f638afe6e7c73cad705ce18..484b3be295bce15c9230054498ee4561ec33006d 100644 (file)
@@ -84,3 +84,4 @@ public:
 };
 
 #endif /* SQUID_CLIENTREQUESTCONTEXT_H */
+
index 17134b3d0785a9e39e4305befb28e788237e1886..fb6d9d9db08f1b6c95e0cdc85eb26eea6dd34d7d 100644 (file)
@@ -165,3 +165,4 @@ CollapsedForwardingRr::~CollapsedForwardingRr()
 {
     delete owner;
 }
+
index c21d430992fc96b494294720111ab952f0075750..61857bc6671f6e5e6a00ac46765a53fd679bf1b1 100644 (file)
@@ -44,3 +44,4 @@ private:
 };
 
 #endif /* SQUID_COLLAPSED_FORWARDING_H */
+
index 70ee905fe34816f0b597d4c7e10ab9b4a732fe7a..6aca76d13b84982a0aa2ee2dae231de8e0068a69 100644 (file)
 /* CommCommonCbParams */
 
 CommCommonCbParams::CommCommonCbParams(void *aData):
-        data(cbdataReference(aData)), conn(), flag(Comm::OK), xerrno(0), fd(-1)
+    data(cbdataReference(aData)), conn(), flag(Comm::OK), xerrno(0), fd(-1)
 {
 }
 
 CommCommonCbParams::CommCommonCbParams(const CommCommonCbParams &p):
-        data(cbdataReference(p.data)), conn(p.conn), flag(p.flag), xerrno(p.xerrno), fd(p.fd)
+    data(cbdataReference(p.data)), conn(p.conn), flag(p.flag), xerrno(p.xerrno), fd(p.fd)
 {
 }
 
@@ -49,7 +49,7 @@ CommCommonCbParams::print(std::ostream &os) const
 /* CommAcceptCbParams */
 
 CommAcceptCbParams::CommAcceptCbParams(void *aData):
-        CommCommonCbParams(aData), xaction()
+    CommCommonCbParams(aData), xaction()
 {
 }
 
@@ -65,7 +65,7 @@ CommAcceptCbParams::print(std::ostream &os) const
 /* CommConnectCbParams */
 
 CommConnectCbParams::CommConnectCbParams(void *aData):
-        CommCommonCbParams(aData)
+    CommCommonCbParams(aData)
 {
 }
 
@@ -84,7 +84,7 @@ CommConnectCbParams::syncWithComm()
 /* CommIoCbParams */
 
 CommIoCbParams::CommIoCbParams(void *aData): CommCommonCbParams(aData),
-        buf(NULL), size(0)
+    buf(NULL), size(0)
 {
 }
 
@@ -113,21 +113,21 @@ CommIoCbParams::print(std::ostream &os) const
 /* CommCloseCbParams */
 
 CommCloseCbParams::CommCloseCbParams(void *aData):
-        CommCommonCbParams(aData)
+    CommCommonCbParams(aData)
 {
 }
 
 /* CommTimeoutCbParams */
 
 CommTimeoutCbParams::CommTimeoutCbParams(void *aData):
-        CommCommonCbParams(aData)
+    CommCommonCbParams(aData)
 {
 }
 
 /* FdeCbParams */
 
 FdeCbParams::FdeCbParams(void *aData):
-        CommCommonCbParams(aData)
+    CommCommonCbParams(aData)
 {
 }
 
@@ -135,14 +135,14 @@ FdeCbParams::FdeCbParams(void *aData):
 
 CommAcceptCbPtrFun::CommAcceptCbPtrFun(IOACB *aHandler,
                                        const CommAcceptCbParams &aParams):
-        CommDialerParamsT<CommAcceptCbParams>(aParams),
-        handler(aHandler)
+    CommDialerParamsT<CommAcceptCbParams>(aParams),
+    handler(aHandler)
 {
 }
 
 CommAcceptCbPtrFun::CommAcceptCbPtrFun(const CommAcceptCbPtrFun &o):
-        CommDialerParamsT<CommAcceptCbParams>(o.params),
-        handler(o.handler)
+    CommDialerParamsT<CommAcceptCbParams>(o.params),
+    handler(o.handler)
 {
 }
 
@@ -164,8 +164,8 @@ CommAcceptCbPtrFun::print(std::ostream &os) const
 
 CommConnectCbPtrFun::CommConnectCbPtrFun(CNCB *aHandler,
         const CommConnectCbParams &aParams):
-        CommDialerParamsT<CommConnectCbParams>(aParams),
-        handler(aHandler)
+    CommDialerParamsT<CommConnectCbParams>(aParams),
+    handler(aHandler)
 {
 }
 
@@ -186,8 +186,8 @@ CommConnectCbPtrFun::print(std::ostream &os) const
 /* CommIoCbPtrFun */
 
 CommIoCbPtrFun::CommIoCbPtrFun(IOCB *aHandler, const CommIoCbParams &aParams):
-        CommDialerParamsT<CommIoCbParams>(aParams),
-        handler(aHandler)
+    CommDialerParamsT<CommIoCbParams>(aParams),
+    handler(aHandler)
 {
 }
 
@@ -209,8 +209,8 @@ CommIoCbPtrFun::print(std::ostream &os) const
 
 CommCloseCbPtrFun::CommCloseCbPtrFun(CLCB *aHandler,
                                      const CommCloseCbParams &aParams):
-        CommDialerParamsT<CommCloseCbParams>(aParams),
-        handler(aHandler)
+    CommDialerParamsT<CommCloseCbParams>(aParams),
+    handler(aHandler)
 {
 }
 
@@ -232,8 +232,8 @@ CommCloseCbPtrFun::print(std::ostream &os) const
 
 CommTimeoutCbPtrFun::CommTimeoutCbPtrFun(CTCB *aHandler,
         const CommTimeoutCbParams &aParams):
-        CommDialerParamsT<CommTimeoutCbParams>(aParams),
-        handler(aHandler)
+    CommDialerParamsT<CommTimeoutCbParams>(aParams),
+    handler(aHandler)
 {
 }
 
@@ -254,8 +254,8 @@ CommTimeoutCbPtrFun::print(std::ostream &os) const
 /* FdeCbPtrFun */
 
 FdeCbPtrFun::FdeCbPtrFun(FDECB *aHandler, const FdeCbParams &aParams) :
-        CommDialerParamsT<FdeCbParams>(aParams),
-        handler(aHandler)
+    CommDialerParamsT<FdeCbParams>(aParams),
+    handler(aHandler)
 {
 }
 
@@ -272,3 +272,4 @@ FdeCbPtrFun::print(std::ostream &os) const
     params.print(os);
     os << ')';
 }
+
index 7bf47d53569d1342325f80f318ee485e9a3c3a57..72eafa3cc47510ecdfa74d215997e03c745943a4 100644 (file)
@@ -184,8 +184,8 @@ public:
     typedef void (C::*Method)(const Params &io);
 
     CommCbMemFunT(const CbcPointer<C> &aJob, Method aMeth): JobDialer<C>(aJob),
-            CommDialerParamsT<Params_>(aJob->toCbdata()),
-            method(aMeth) {}
+        CommDialerParamsT<Params_>(aJob->toCbdata()),
+        method(aMeth) {}
 
     virtual bool canDial(AsyncCall &c) {
         return JobDialer<C>::canDial(c) &&
@@ -207,7 +207,7 @@ protected:
 
 // accept (IOACB) dialer
 class CommAcceptCbPtrFun: public CallDialer,
-        public CommDialerParamsT<CommAcceptCbParams>
+    public CommDialerParamsT<CommAcceptCbParams>
 {
 public:
     typedef CommAcceptCbParams Params;
@@ -226,7 +226,7 @@ public:
 
 // connect (CNCB) dialer
 class CommConnectCbPtrFun: public CallDialer,
-        public CommDialerParamsT<CommConnectCbParams>
+    public CommDialerParamsT<CommConnectCbParams>
 {
 public:
     typedef CommConnectCbParams Params;
@@ -242,7 +242,7 @@ public:
 
 // read/write (IOCB) dialer
 class CommIoCbPtrFun: public CallDialer,
-        public CommDialerParamsT<CommIoCbParams>
+    public CommDialerParamsT<CommIoCbParams>
 {
 public:
     typedef CommIoCbParams Params;
@@ -258,7 +258,7 @@ public:
 
 // close (CLCB) dialer
 class CommCloseCbPtrFun: public CallDialer,
-        public CommDialerParamsT<CommCloseCbParams>
+    public CommDialerParamsT<CommCloseCbParams>
 {
 public:
     typedef CommCloseCbParams Params;
@@ -273,7 +273,7 @@ public:
 };
 
 class CommTimeoutCbPtrFun:public CallDialer,
-        public CommDialerParamsT<CommTimeoutCbParams>
+    public CommDialerParamsT<CommTimeoutCbParams>
 {
 public:
     typedef CommTimeoutCbParams Params;
@@ -289,7 +289,7 @@ public:
 
 /// FD event (FDECB) dialer
 class FdeCbPtrFun: public CallDialer,
-        public CommDialerParamsT<FdeCbParams>
+    public CommDialerParamsT<FdeCbParams>
 {
 public:
     typedef FdeCbParams Params;
@@ -317,8 +317,8 @@ public:
                              const char *callName, const Dialer &aDialer);
 
     inline CommCbFunPtrCallT(const CommCbFunPtrCallT &o) :
-            AsyncCall(o.debugSection, o.debugLevel, o.name),
-            dialer(o.dialer) {}
+        AsyncCall(o.debugSection, o.debugLevel, o.name),
+        dialer(o.dialer) {}
 
     ~CommCbFunPtrCallT() {}
 
@@ -353,8 +353,8 @@ CommCbFunPtrCallT<Dialer> *commCbCall(int debugSection, int debugLevel,
 template <class Dialer>
 CommCbFunPtrCallT<Dialer>::CommCbFunPtrCallT(int aDebugSection, int aDebugLevel,
         const char *callName, const Dialer &aDialer):
-        AsyncCall(aDebugSection, aDebugLevel, callName),
-        dialer(aDialer)
+    AsyncCall(aDebugSection, aDebugLevel, callName),
+    dialer(aDialer)
 {
 }
 
@@ -385,3 +385,4 @@ CommCbFunPtrCallT<Dialer>::fire()
 }
 
 #endif /* SQUID_COMMCALLS_H */
+
index 1825776671ed4a520d0572712ce911f18b3acc4f..5eb9826df12e11e289c89bbd52d6900aac0dbe46 100644 (file)
@@ -62,3 +62,4 @@ private:
 };
 
 #endif /* COMMREAD_H */
+
index e9a9a13143b614f6d207c6425639f3922845c1f7..236d15ca1ad11c78a39421c1ef7378a378f3eb8e 100644 (file)
@@ -8,3 +8,4 @@
 
 #include "squid.h"
 #include "CompletionDispatcher.h"
+
index aea9531b4eb9951883cb1e9a5a755292e626a0dd..6266199abd33caa35acec6280ef72a74c0181052 100644 (file)
@@ -28,3 +28,4 @@ public:
 };
 
 #endif /* SQUID_COMPLETIONDISPATCHER_H */
+
index 1ccb34f030c3dde4c26bf23a9b946d225ba8c011..679d9073d1f031cd272d8fbcafac8bec8ad47baa 100644 (file)
@@ -61,3 +61,4 @@ protected:
 
 #endif /* USE_DELAY_POOLS */
 #endif /* COMPOSITEPOOLNODE_H */
+
index fd5ae9f4b3ead5bba2344a3cee09ee2c406d6873..e5f20efcc28f66bb3e8359a4c5586ab2a55767f9 100644 (file)
@@ -41,3 +41,4 @@ ConfigOptionVector::dump(StoreEntry * e) const
             i != options.end(); ++i)
         (*i)->dump(e);
 }
+
index 2033cec78cb064f656fa3b7784ae05c0ddbe9493..b97c3b37b3b06aa5d5aacdeb4067591b2b8ddf65 100644 (file)
@@ -61,3 +61,4 @@ private:
 };
 
 #endif /* SQUID_CONFIGOPTION_H */
+
index 6d1b4bcc35b6ea65230fa847d046495132f59a23..413ab7dac1e1840e97a3b556992bd44f637b7528 100644 (file)
@@ -38,18 +38,18 @@ ConfigParser::destruct()
         std::ostringstream message;
         CfgFile *f = CfgFiles.top();
         message << "Bungled " << f->filePath << " line " << f->lineNo <<
-        ": " << f->currentLine << std::endl;
+                ": " << f->currentLine << std::endl;
         CfgFiles.pop();
         delete f;
         while (!CfgFiles.empty()) {
             f = CfgFiles.top();
             message << " included from " << f->filePath << " line " <<
-            f->lineNo << ": " << f->currentLine << std::endl;
+                    f->lineNo << ": " << f->currentLine << std::endl;
             CfgFiles.pop();
             delete f;
         }
         message << " included from " <<  cfg_filename << " line " <<
-        config_lineno << ": " << config_input_line << std::endl;
+                config_lineno << ": " << config_input_line << std::endl;
         std::string msg = message.str();
         fatalf("%s", msg.c_str());
     } else
@@ -280,8 +280,8 @@ ConfigParser::TokenParse(const char * &nextToken, ConfigParser::TokenType &type)
     while (ConfigParser::RecognizeQuotedPair_ && *nextToken == '\\') {
         // NP: do not permit \0 terminator to be escaped.
         if (*(nextToken+1) && *(nextToken+1) != '\r' && *(nextToken+1) != '\n') {
-          nextToken += 2; // skip the quoted-pair (\-escaped) character
-          nextToken += strcspn(nextToken, sep);
+            nextToken += 2; // skip the quoted-pair (\-escaped) character
+            nextToken += strcspn(nextToken, sep);
         } else {
             debugs(3, DBG_CRITICAL, "FATAL: Unescaped '\' character in regex pattern: " << tokenStart);
             self_destruct();
@@ -596,3 +596,4 @@ ConfigParser::CfgFile::~CfgFile()
     if (wordFile)
         fclose(wordFile);
 }
+
index 736101be22c50ba4d268616d8718b85662dbcf74..2cb06d9f1e3c1047c7bcca3667388f784378cb5f 100644 (file)
@@ -24,7 +24,7 @@ class wordlist;
  * The config parser read mechanism can cope, but the other systems
  * receiving the data from its buffers on such lines may not.
  */
-#define CONFIG_LINE_LIMIT      2048
+#define CONFIG_LINE_LIMIT   2048
 
 /**
  * A configuration file Parser. Instances of this class track
@@ -209,10 +209,11 @@ protected:
     static bool ParseQuotedOrToEol_; ///< The next tokens will be handled as quoted or to_eol token
     static bool RecognizeQuotedPair_; ///< The next tokens may contain quoted-pair (\-escaped) characters
     static bool PreviewMode_; ///< The next token will not poped from cfg files, will just previewd.
-    static bool ParseKvPair_; ///<The next token will be handled as kv-pair token 
+    static bool ParseKvPair_; ///<The next token will be handled as kv-pair token
     static enum ParsingStates {atParseKey, atParseValue} KvPairState_; ///< Parsing state while parsing kv-pair tokens
 };
 
 int parseConfigFile(const char *file_name);
 
 #endif /* SQUID_CONFIGPARSER_H */
+
index 7eeb1ecc6397c60d17c1bb234018363ef031caaf..cf1bfb9a48c6ca514a97f343754b04ea952f1055 100644 (file)
@@ -63,3 +63,4 @@ CpuAffinityCheck()
         }
     }
 }
+
index 89d419dc0161343948491231deb842b580068210..2bce1593ff4897f81f505e08d8e7fe63118ad759 100644 (file)
@@ -19,3 +19,4 @@ void CpuAffinityReconfigure();
 void CpuAffinityCheck();
 
 #endif // SQUID_CPU_AFFINITY_H
+
index ca22edaea432608a91b0771ed996a8dd6e7607b1..6886fbe9697e55981c520ea2b2a9de7f8808ead6 100644 (file)
@@ -58,3 +58,4 @@ CpuAffinityMap::calculateSet(const int targetProcess) const
     }
     return cpuAffinitySet;
 }
+
index 700a0bc2c4a07734aec45e270607831eebe688eb..beaff7689f9900d794c7621301af83210a9f53c4 100644 (file)
@@ -35,3 +35,4 @@ private:
 };
 
 #endif // SQUID_CPU_AFFINITY_MAP_H
+
index 16de7b1b7f7b57a13b460c036952f3279149e6f8..64fddea153c5cdb6b72513fd4951b6b2aadba139 100644 (file)
@@ -79,3 +79,4 @@ CpuAffinitySet::set(const cpu_set_t &aCpuSet)
 {
     memcpy(&theCpuSet, &aCpuSet, sizeof(theCpuSet));
 }
+
index 146561cfa579cfc23018f2de0a72959182e9e395..0be762055051921699c472ac42f654a63db85d69 100644 (file)
@@ -35,3 +35,4 @@ private:
 };
 
 #endif // SQUID_CPU_AFFINITY_SET_H
+
index 41ea2fe61058075e3c16f9d426a4bb0bf8520594..c97f31749ca450897b1782088376f3892a72236d 100644 (file)
@@ -38,10 +38,10 @@ void ctx_exit(Ctx ctx);
 #define MAX_DEBUG_SECTIONS 100
 
 /* defined names for Debug Levels */
-#define DBG_CRITICAL   0       /**< critical messages always shown when they occur */
-#define DBG_IMPORTANT  1       /**< important messages always shown when their section is being checked */
+#define DBG_CRITICAL    0   /**< critical messages always shown when they occur */
+#define DBG_IMPORTANT   1   /**< important messages always shown when their section is being checked */
 /* levels 2-8 are still being discussed amongst the developers */
-#define DBG_DATA       9       /**< output is a large data dump only necessary for advanced debugging */
+#define DBG_DATA    9   /**< output is a large data dump only necessary for advanced debugging */
 
 #define DBG_PARSE_NOTE(x) (opt_parse_cfg_only?0:(x)) /**< output is always to be displayed on '-k parse' but at level-x normally. */
 
@@ -151,7 +151,7 @@ class Raw
 {
 public:
     Raw(const char *label, const char *data, const size_t size):
-            level(-1), label_(label), data_(data), size_(size) {}
+        level(-1), label_(label), data_(data), size_(size) {}
 
     /// limit data printing to at least the given debugging level
     Raw &minLevel(const int aLevel) { level = aLevel; return *this; }
@@ -182,3 +182,4 @@ std::ostream &operator <<(std::ostream &os, const Raw &raw)
 }
 
 #endif /* SQUID_DEBUG_H */
+
index 41ecab817c7067d63363d67da4a48f29c44a2b22..b1d5fff219be3057cdd555ff5c8e78702c8314ed 100644 (file)
@@ -51,3 +51,4 @@ DelayBucket::init(DelaySpec const &rate)
 }
 
 #endif /* USE_DELAY_POOLS */
+
index a0424f8381c5ce0304f8870fffaed6f3220d4972..05566dd78a2db449da05e3886cce4a2e4f5557a9 100644 (file)
@@ -36,3 +36,4 @@ private:
 };
 
 #endif /* SQUID_DELAYBUCKET_H */
+
index 610ce369e0e3a125b855ac6d44d3ea5365218437..cc380ef84b230ae1b83fc6d56403a4067ec9f79a 100644 (file)
@@ -113,3 +113,4 @@ DelayConfig::dumpPoolCount(StoreEntry * entry, const char *name) const
 }
 
 #endif /* USE_DELAY_POOLS */
+
index cf520d5a121f4682f0454a032e3bfc766649feb1..c5dc99f1e99ec50aca1b6d0fbad771c95cef2ea2 100644 (file)
@@ -30,3 +30,4 @@ public:
 };
 
 #endif /* SQUID_DELAYCONFIG_H */
+
index a72e1843f7f00dc601cc2a591999df0f4916a26c..c8eb2b6a827b48d8053846bccdcef8c031607018 100644 (file)
@@ -27,7 +27,7 @@ DelayId::DelayId () : pool_ (0), compositeId(NULL), markedAsNoDelay(false)
 {}
 
 DelayId::DelayId (unsigned short aPool) :
-        pool_ (aPool), compositeId (NULL), markedAsNoDelay (false)
+    pool_ (aPool), compositeId (NULL), markedAsNoDelay (false)
 {
     debugs(77, 3, "DelayId::DelayId: Pool " << aPool << "u");
 }
@@ -169,3 +169,4 @@ DelayId::delayRead(DeferredRead const &aRead)
 }
 
 #endif /* USE_DELAY_POOLS */
+
index ad2d74df611602c61f424ade8b603a05fa2b67f4..91fed05612be948942260d04ff5b6abcdbb0f133 100644 (file)
@@ -42,3 +42,4 @@ private:
 
 #endif /* USE_DELAY_POOLS */
 #endif /* SQUID_DELAYID_H */
+
index 6b73340e9215ae88f9c159580201454396da132b..6f2f3100c7fee4a61d5052339f66a4a24b153b61 100644 (file)
@@ -32,3 +32,4 @@ public:
 
 #endif /* USE_DELAY_POOLS */
 #endif /* DELAYIDCOMPOSITE_H */
+
index 1124ea27270656106c67026078985e303782c710..1ef1033ecfee2d7e4c5a8d6131c5c6dcf95a9cb3 100644 (file)
@@ -91,3 +91,4 @@ CompositePoolNode::kickReads()
 }
 
 #endif /* USE_DELAY_POOLS */
+
index 8827783e346a5fb22962b282ab5f4e0fa835778b..847703fb0451e0c4f98c4678b3ad0eb38fd263ac 100644 (file)
@@ -43,3 +43,4 @@ private:
 
 #endif /* USE_DELAY_POOLS */
 #endif /* DELAYPOOL_H */
+
index 458a1623d6d5752536a871557606d8a40c97d6af..c93675e38ee43f2c68193a0b7874367f0f7b4662 100644 (file)
@@ -57,3 +57,4 @@ private:
 };
 
 #endif /* SQUID_DELAYPOOLS_H */
+
index 72ee98c00a7a6b081ba835d32a52be1d9a5a1c91..e066a8e4818fee58a0aa7f2b4032e4bb593bc90e 100644 (file)
@@ -69,3 +69,4 @@ DelaySpec::parse()
 }
 
 #endif
+
index f57f650ec6fef4025ea28d6e9c78e907346483b9..bd674e224b2000621a68babfbae012da1390c6ea 100644 (file)
@@ -25,3 +25,4 @@ public:
 };
 
 #endif /* SQUID_DELAYSPEC_H */
+
index e661a9107d000d54d01e1899dd26f5233f93d7a6..650c9f99c776063e0d620d20fa518d15b6f6976a 100644 (file)
@@ -209,3 +209,4 @@ DelayTagged::Id::delayRead(DeferredRead const &aRead)
 }
 
 #endif
+
index 3193bd063d567beac36421b548128dfe9499f169..38d554d9ce7586d8572a06526d07b1f8c2f36acd 100644 (file)
@@ -81,3 +81,4 @@ private:
 
 #endif /* USE_DELAY_POOLS */
 #endif /* DELAYTAGGED_H */
+
index 26a288abbb7eb9faca76adad60ea43f425f7b541..dfba23634956a5e44b975316298a172326acc4e9 100644 (file)
@@ -209,3 +209,4 @@ DelayUser::Id::bytesIn(int qty)
 }
 
 #endif /* USE_DELAY_POOLS && USE_AUTH */
+
index cfd069c683a614e561bd51833f1e62f37eec45b8..e8ed056c112e9b600981ac0909d98ff08b89ea2a 100644 (file)
@@ -81,3 +81,4 @@ private:
 
 #endif /* USE_DELAY_POOLS && USE_AUTH */
 #endif /* DELAYUSER_H */
+
index 6ed82d212bef3cee150afeb02dce84dda4e1c57e..022a9971191408d653630f6a914c60000f73ec72 100644 (file)
@@ -160,3 +160,4 @@ DelayVector::Id::delayRead(DeferredRead const &aRead)
 }
 
 #endif
+
index 4a2956648f55d7620a5ad8c58eb9c112426ecd52..8d84672b036442e39f20c1be03f31039c4b3764e 100644 (file)
@@ -63,3 +63,4 @@ private:
 
 #endif /* USE_DELAY_POOLS */
 #endif /* SQUID_DELAYVECTOR_H */
+
index 7298bf6d54d6842843d623cb899cb250faaf4144..04379612268a9866bc60c33ddd51942b2b6770f8 100644 (file)
@@ -14,7 +14,7 @@
 
 // pre-allocates descriptor store and index for Squid_MaxFD descriptors
 DescriptorSet::DescriptorSet(): descriptors_(NULL), index_(NULL),
-        capacity_(0), size_(0)
+    capacity_(0), size_(0)
 {
     // we allocate once and never realloc, at least for now
     capacity_ = Squid_MaxFD;
@@ -100,3 +100,4 @@ DescriptorSet::print(std::ostream &os) const
     // \todo add "name" if the set is used for more than just half-closed FDs
     os << size_ << " FDs";
 }
+
index 1b89bff127ef74df17ae886f2059f8adbe77fea0..81150b31dff98b0dccd5f8a240835b509c13a8a2 100644 (file)
@@ -241,3 +241,4 @@ AIODiskFile::ioInProgress() const
 {
     return false;
 }
+
index 7b613cca5a0a87ce67ac40aa7b0ccc84799a817c..caf1d1f0d99655d6d4621b5eb49c75d90fe8128a 100644 (file)
@@ -58,3 +58,4 @@ private:
 
 #endif /* USE_DISKIO_AIO */
 #endif /* SQUID_AIODISKFILE_H */
+
index 26a8e03e0b3bf4010cc40c2e94f058b97cfc63ae..c238ae6aa5df3c77fd1b45b03686f858dd40a155 100644 (file)
@@ -43,3 +43,4 @@ AIODiskIOModule::type () const
 {
     return "AIO";
 }
+
index f7d6b4d2e6acc9012efa56c96ad633cce7375978..e0bd2bcde846df2af48c6adc90c463a35bad1c77 100644 (file)
@@ -30,3 +30,4 @@ private:
 
 #endif /* USE_DISKIO_AIO */
 #endif /* SQUID_AIODISKIOMODULE_H */
+
index 07094e729ebdbb390518655e2259cf42fe9dc604..0fc68c03e0ebe17bed10d74d2f0085aa1d43aed4 100644 (file)
@@ -26,7 +26,7 @@
 #include "DiskIO/WriteRequest.h"
 
 AIODiskIOStrategy::AIODiskIOStrategy() :
-        fd(-1)
+    fd(-1)
 {
     aq.aq_state = AQ_STATE_NONE;
     aq.aq_numpending = 0;
@@ -211,3 +211,4 @@ AIODiskIOStrategy::findSlot()
     /* found nothing */
     return -1;
 }
+
index bf97fa257333f367ae2c5379687f707105c749c4..8f40c18b6a1548dc8a1a3cddc70d47d98a642a36 100644 (file)
@@ -53,3 +53,4 @@ public:
 
 #endif /* USE_DISKIO_AIO */
 #endif /* SQUID_AIODISKIOSTRATEGY_H */
+
index af74f8304d7d8e5f086b1fa5f5177a5b0b3c151f..b260e1ee8248a1670db4f170316e97a7541262c4 100644 (file)
@@ -284,13 +284,13 @@ int aio_open(const char *path, int mode)
     else
         dwCreationDisposition = (mode & O_CREAT) ? OPEN_ALWAYS : OPEN_EXISTING;
 
-    if ((hndl = CreateFile(path,                       /* file name               */
-                           dwDesiredAccess,            /* access mode             */
-                           0,                              /* share mode              */
-                           NULL,                               /* SD                      */
-                           dwCreationDisposition,      /* how to create           */
-                           FILE_FLAG_OVERLAPPED,       /* file attributes         */
-                           NULL                                    /* handle to template file */
+    if ((hndl = CreateFile(path,                    /* file name               */
+                           dwDesiredAccess,         /* access mode             */
+                           0,                       /* share mode              */
+                           NULL,                    /* SD                      */
+                           dwCreationDisposition,   /* how to create           */
+                           FILE_FLAG_OVERLAPPED,    /* file attributes         */
+                           NULL                     /* handle to template file */
                           )) != INVALID_HANDLE_VALUE) {
         ++ statCounter.syscalls.disk.opens;
         fd = _open_osfhandle((long) hndl, 0);
@@ -322,3 +322,4 @@ ssize_t aio_return64(struct aiocb64 * aiocbp)
     return aiocbp->aio_sigevent.sigev_signo;
 }
 #endif /* _SQUID_WINDOWS_ */
+
index ff6036b5f0702fdf866e6247147538a8f65d998a..5cdd3b8829db354c500bfd7e77d969dbddff157e 100644 (file)
@@ -12,7 +12,7 @@
 #if USE_DISKIO_AIO
 
 #ifndef off64_t
-typedef int64_t        off64_t;
+typedef int64_t off64_t;
 #endif
 
 #if _SQUID_WINDOWS_
@@ -80,3 +80,4 @@ void aio_close(int);
 #endif /* _SQUID_WINDOWS_ */
 #endif /* USE_DISKIO_AIO */
 #endif /* __WIN32_AIO_H__ */
+
index cee79876d685b46b153e415163bcc4c72e812235..b871231c00900e1acb2b11bd17090897d59d16e9 100644 (file)
 /* for FREE* */
 #include "typedefs.h"
 
-#define MAX_ASYNCOP            128
+#define MAX_ASYNCOP     128
 
 typedef enum {
-    AQ_STATE_NONE,             /* Not active/uninitialised */
-    AQ_STATE_SETUP             /* Initialised */
+    AQ_STATE_NONE,      /* Not active/uninitialised */
+    AQ_STATE_SETUP      /* Initialised */
 } async_queue_state_t;
 
 typedef enum {
@@ -69,9 +69,10 @@ struct _async_queue_entry {
 
 struct _async_queue {
     async_queue_state_t aq_state;
-    async_queue_entry_t aq_queue[MAX_ASYNCOP]; /* queued ops */
-    int aq_numpending;         /* Num of pending ops */
+    async_queue_entry_t aq_queue[MAX_ASYNCOP];  /* queued ops */
+    int aq_numpending;      /* Num of pending ops */
 };
 
 #endif /* USE_DISKIO_AIO */
 #endif /* __ASYNC_IO_H_ */
+
index 4b880bdc2bc903a840e57366b1e39f1fa25aec60..ffb717fe51143aa00c22f056de285cbf2e9f29cf 100644 (file)
@@ -42,3 +42,4 @@ BlockingDiskIOModule::type () const
 {
     return "Blocking";
 }
+
index b11f19e08b5c4b89757699239329ef04198e38f1..cee699bb1d904cea7fa229731dfe3e4b5f4311c6 100644 (file)
@@ -27,3 +27,4 @@ private:
 };
 
 #endif /* SQUID_BLOCKINGDISKIOMODULE_H */
+
index 8a48ffe13ff479f62b54ab57a4362de6cb8feb40..5ee6162e030a612b268b4a8ccf19889845c7be92 100644 (file)
@@ -161,7 +161,7 @@ BlockingFile::readDone(int rvfd, const char *buf, int len, int errflag)
     }
 
     if (errflag == DISK_EOF)
-        errflag = DISK_OK;     /* EOF is signalled by len == 0, not errors... */
+        errflag = DISK_OK;  /* EOF is signalled by len == 0, not errors... */
 
     ReadRequest::Pointer result = readRequest;
 
index 75f2fee3b157c6032ab68189fdb147e473588ef4..937c6f5416d6b75e8d3626090a5dd2361192c45b 100644 (file)
@@ -50,3 +50,4 @@ private:
 };
 
 #endif /* SQUID_BLOCKINGFILE_H */
+
index 9147561abd745ad428fae9f2966bf4f5342122e4..245899688bfd63e2adc539bf4412c8538f21584f 100644 (file)
@@ -43,3 +43,4 @@ BlockingIOStrategy::unlinkFile(char const *path)
 {
     unlinkdUnlink(path);
 }
+
index 5efdfe15af9717f007877744f720e989dee7587a..76284fea0e2ae109f683c0eeedda4fa51fe1b4ff 100644 (file)
@@ -24,3 +24,4 @@ public:
 };
 
 #endif /* SQUID_BLOCKINGIOSTRATEGY_H */
+
index cc6080148980eb1cda6e1d79d1030640a631e239..5173caad3a9002e7e2254c2108969be2cb20133b 100644 (file)
@@ -7,3 +7,4 @@
  */
 
 #include "squid.h"
+
index 4ffaecd9a0f695ab7987a38f683d0912b5bd8eee..782f9e310239966c61276bab22ed431b2f8d5bd9 100644 (file)
@@ -74,3 +74,4 @@ DiskDaemonDiskIOModule::type () const
 {
     return "DiskDaemon";
 }
+
index 2e65ac2632b1551acb0e1aef3736496da910b9ac..923ca66f2ba53e92e938ecdb875d82aca1d3effd 100644 (file)
@@ -29,3 +29,4 @@ private:
 };
 
 #endif /* SQUID_DISKDAEMONDISKIOMODULE_H */
+
index 72c252c4c04183748aee26ccc910b6cf0100ae06..de389121ffa8cb94158d6119d3b4aadea0a52065 100644 (file)
@@ -63,7 +63,7 @@ DiskdAction::Create(const Mgr::CommandPointer &aCmd)
 }
 
 DiskdAction::DiskdAction(const Mgr::CommandPointer &aCmd):
-        Action(aCmd), data()
+    Action(aCmd), data()
 {
     debugs(79, 5, HERE);
 }
@@ -150,3 +150,4 @@ DiskdAction::unpack(const Ipc::TypedMsgHdr& hdrMsg)
     hdrMsg.checkType(Ipc::mtCacheMgrResponse);
     hdrMsg.getPod(data);
 }
+
index 8fc2f5976eea88ee0b56dcf640e783ae6eb9f2f2..104b49e6da424fe3dcd93387767f73c7ae50c592 100644 (file)
@@ -72,3 +72,4 @@ private:
 };
 
 #endif /* SQUID_DISKD_ACTION_H */
+
index 9b1c0ff374d82cf894166c92981aba523149efb3..36d3ecf2432ee7ca0437ce54fdf4f934d5db8a91 100644 (file)
 CBDATA_CLASS_INIT(DiskdFile);
 
 DiskdFile::DiskdFile(char const *aPath, DiskdIOStrategy *anIO) :
-        errorOccured(false),
-        IO(anIO),
-        mode(0),
-        inProgressIOs(0)
+    errorOccured(false),
+    IO(anIO),
+    mode(0),
+    inProgressIOs(0)
 {
     assert(aPath);
     debugs(79, 3, "DiskdFile::DiskdFile: " << aPath);
@@ -394,3 +394,4 @@ DiskdFile::ioInProgress()const
 {
     return inProgressIOs != 0;
 }
+
index 6d82f856ae638d623bebd9bfcc09029ef887abd6..dbafab53c43b169fa12a1b241bcdafff3a714e68 100644 (file)
@@ -62,3 +62,4 @@ private:
 };
 
 #endif
+
index 89410e26812887330b99b4ed819c0715988c0740..354e02c0852ff34e7e14a21ca5b3e5397c39a55e 100644 (file)
@@ -125,7 +125,7 @@ DiskdIOStrategy::unlinkFile(char const *path)
 
     if (x < 0) {
         debugs(79, DBG_IMPORTANT, "storeDiskdSend UNLINK: " << xstrerror());
-        ::unlink(buf);         /* XXX EWW! */
+        ::unlink(buf);      /* XXX EWW! */
         //        shm.put (shm_offset);
     }
 
@@ -538,7 +538,7 @@ DiskdIOStrategy::callback()
     }
 
     while (1) {
-#ifdef ALWAYS_ZERO_BUFFERS
+#ifdef  ALWAYS_ZERO_BUFFERS
         memset(&M, '\0', sizeof(M));
 #endif
 
@@ -554,7 +554,7 @@ DiskdIOStrategy::callback()
         ++diskd_stats.recv_count;
         --away;
         handle(&M);
-        retval = 1;            /* Return that we've actually done some work */
+        retval = 1;     /* Return that we've actually done some work */
 
         if (M.shm_offset > -1)
             shm.put ((off_t) M.shm_offset);
@@ -568,3 +568,4 @@ DiskdIOStrategy::statfs(StoreEntry & sentry)const
 {
     storeAppendPrintf(&sentry, "Pending operations: %d\n", away);
 }
+
index 191215afc19bda999df32417bb3800803786c73e..0600df3e480d2089808f3ad1a3664d8f4a4939d1 100644 (file)
@@ -124,3 +124,4 @@ struct diskd_stats_t {
 extern diskd_stats_t diskd_stats;
 
 #endif
+
index 9f222ecb7c122756fd4d01b4b93ec36c24fb6647..f779e451d53bbc6905142fc3fdd6cbae29a614fb 100644 (file)
@@ -42,3 +42,4 @@ struct diomsg {
 };
 
 #endif /* SQUID_DIOMSG_H__ */
+
index 267e28c3d6ccb03ecfe64187ac2b3b6e856fe3e3..e6dc654170ae30fc6acd1e17a88010b97d0e97d9 100644 (file)
@@ -418,3 +418,4 @@ main(int argc, char *argv[])
 
     return 0;
 }
+
index d619e4376cc7836205f1f49a058183f4b3033866..2fdfa73434996570e2ba957233711898d34ca7f8 100644 (file)
@@ -59,3 +59,4 @@ public:
 };
 
 #endif /* SQUID_DISKFILE_H */
+
index c192a6bb2f4c96d80c5574692501ea42e7b669b9..5341ed1034c9421e52ff2606c30371848d92ef3b 100644 (file)
@@ -99,3 +99,4 @@ DiskIOModule::FindDefault()
         result = Find("Blocking");
     return result;
 }
+
index 1110c53e06b27cc31bb7e8d3e9a4dd0ceee6d32a..89fd1d67f998d645953f2555c6496aa3738a4ac0 100644 (file)
@@ -60,3 +60,4 @@ private:
 };
 
 #endif /* SQUID_DISKIOMODULE_H */
+
index 20e179098588bba65b112cd875f3e70411330481..e958b63531018631782cc17e7bc8de5123491a6a 100644 (file)
@@ -87,3 +87,4 @@ private:
 };
 
 #endif /* SQUID_DISKIOSTRATEGY_H */
+
index 26140aff5d1aab165ca7aea3754300af56fe088e..34b87832b40a327975add9151300ec2419887e19 100644 (file)
@@ -73,3 +73,4 @@ CommIO::ResetNotifications()
         DoneSignalled = false;
     }
 }
+
index e6d416979f460b9a4993c415a35cde637c1a9c4b..e710aaea79c40116a6d585acd172a5c54a3d4c84 100644 (file)
@@ -46,3 +46,4 @@ CommIO::NotifyIOCompleted()
 };
 
 #endif /* SQUID_SRC_DISKIO_DISKTHREADS_COMMIO_H */
+
index 3bfc61be602d1f0b9a12bd14b5f3ca5065a40a85..f623085aa69e2c791eaaa342d3ab37189acbd78f 100644 (file)
@@ -60,8 +60,8 @@ struct squidaio_result_t {
     int aio_return;
     int aio_errno;
     enum _squidaio_request_type result_type;
-    void *_data;               /* Internal housekeeping */
-    void *data;                        /* Available to the caller */
+    void *_data;        /* Internal housekeeping */
+    void *data;         /* Available to the caller */
 };
 
 struct squidaio_ctrl_t {
@@ -134,3 +134,4 @@ extern AIOCounts squidaio_counts;
 extern dlink_list used_list;
 
 #endif
+
index 7d80b740131fba9fe245c67ea9bc6fe51ba81ea2..1f416ea1523609d1b4d4be821904b10f59b5875a 100644 (file)
@@ -27,7 +27,7 @@
 CBDATA_CLASS_INIT(DiskThreadsDiskFile);
 
 DiskThreadsDiskFile::DiskThreadsDiskFile(char const *aPath, DiskThreadsIOStrategy *anIO):fd(-1), errorOccured (false), IO(anIO),
-        inProgressIOs (0)
+    inProgressIOs (0)
 {
     assert(aPath);
     debugs(79, 3, "UFSFile::UFSFile: " << aPath);
@@ -274,7 +274,7 @@ DiskThreadsDiskFile::readDone(int rvfd, const char *buf, int len, int errflag, R
 #else
 
     if (errflag == DISK_EOF)
-        errflag = DISK_OK;     /* EOF is signalled by len == 0, not errors... */
+        errflag = DISK_OK;  /* EOF is signalled by len == 0, not errors... */
 
 #endif
 
@@ -329,3 +329,4 @@ DiskThreadsDiskFile::writeDone(int rvfd, int errflag, size_t len, RefCount<Write
 template <class RT>
 cbdata_type IoResult<RT>::CBDATA_IoResult = CBDATA_UNKNOWN;
 /** \endcond */
+
index 7906776e0c29f9a87e7b1078edf2254523a1ffa0..3197c765434b3af2479464d1e5b34f48ccb53d0a 100644 (file)
@@ -82,3 +82,4 @@ IoResult<RT>
 IOResult(RefCount<RT> aRequest, RefCount<DiskThreadsDiskFile> aFile) { return IoResult<RT>(aFile, aRequest);}
 
 #endif /* SQUID_DISKTHREADSDISKFILE_H */
+
index 72cc833db5eda82b25be694f7a312fdb8bc1a504..ff693d0e43c86d2ff4e93d811beaee2779dd50c1 100644 (file)
@@ -45,3 +45,4 @@ DiskThreadsDiskIOModule::type () const
 {
     return "DiskThreads";
 }
+
index 9c649192371e8b00db2e79c720ca97d001cf6c98..1eba38bca6e464ca9695f624684e2ee54fcc5420 100644 (file)
@@ -28,3 +28,4 @@ private:
 };
 
 #endif /* SQUID_DISKTHREADSDISKIOMODULE_H */
+
index 5e882dd180e01dbce355766f42c99826dc60b532..6be97a9cc28e63b112e807d7277d11c5e0dd5302 100644 (file)
@@ -112,7 +112,7 @@ DiskThreadsIOStrategy::callback()
         }
 
         if (ctrlp == NULL)
-            continue;          /* XXX Should not happen */
+            continue;       /* XXX Should not happen */
 
         dlinkDelete(&ctrlp->node, &used_list);
 
@@ -122,7 +122,7 @@ DiskThreadsIOStrategy::callback()
             ctrlp->done_handler = NULL;
 
             if (cbdataReferenceValidDone(ctrlp->done_handler_data, &cbdata)) {
-                retval = 1;    /* Return that we've actually done some work */
+                retval = 1; /* Return that we've actually done some work */
                 done_callback(ctrlp->fd, cbdata, ctrlp->bufp,
                               ctrlp->result.aio_return, ctrlp->result.aio_errno);
             } else {
@@ -155,7 +155,7 @@ void
 DiskThreadsIOStrategy::sync()
 {
     if (!initialised)
-        return;                        /* nothing to do then */
+        return;         /* nothing to do then */
 
     /* Flush all pending operations */
     debugs(32, 2, "aioSync: flushing pending I/O operations");
@@ -168,8 +168,8 @@ DiskThreadsIOStrategy::sync()
 }
 
 DiskThreadsIOStrategy::DiskThreadsIOStrategy() :
-        initialised(false),
-        squidaio_ctrl_pool(NULL)
+    initialised(false),
+    squidaio_ctrl_pool(NULL)
 {}
 
 void
@@ -247,3 +247,4 @@ DiskThreadsIOStrategy::unlinkFile(char const *path)
     ++statCounter.syscalls.disk.unlinks;
     aioUnlink(path, NULL, NULL);
 }
+
index 7c3428753f591f90af3f3518b3bebeb4c20f8e30..6a770fd3ccc85b1b99d8cfec495d6428de1a6735 100644 (file)
 #ifndef __STORE_DISKTHREADEDIOSTRATEGY_H__
 #define __STORE_DISKTHREADEDIOSTRATEGY_H__
 
-#define _AIO_OPEN      0
-#define _AIO_READ      1
-#define _AIO_WRITE     2
-#define _AIO_CLOSE     3
-#define _AIO_UNLINK    4
-#define _AIO_OPENDIR   5
-#define _AIO_STAT      6
+#define _AIO_OPEN   0
+#define _AIO_READ   1
+#define _AIO_WRITE  2
+#define _AIO_CLOSE  3
+#define _AIO_UNLINK 4
+#define _AIO_OPENDIR    5
+#define _AIO_STAT   6
 #include "DiskIO/DiskIOStrategy.h"
 
 class DiskThreadsIOStrategy : public DiskIOStrategy
@@ -45,3 +45,4 @@ private:
 };
 
 #endif
+
index 86c5d4be7b4c8c89e2b91d178d9e3a8474aa32c2..0310f3e2fa65a716dae3727551787e13b7a6386e 100644 (file)
@@ -35,7 +35,7 @@
 #include <sched.h>
 #endif
 
-#define RIDICULOUS_LENGTH      4096
+#define RIDICULOUS_LENGTH   4096
 
 enum _squidaio_thread_status {
     _THREAD_STARTING = 0,
@@ -74,7 +74,7 @@ typedef struct squidaio_request_queue_t {
     squidaio_request_t *volatile head;
     squidaio_request_t *volatile *volatile tailp;
     unsigned long requests;
-    unsigned long blocked;     /* main failed to lock the queue */
+    unsigned long blocked;  /* main failed to lock the queue */
 } squidaio_request_queue_t;
 
 typedef struct squidaio_thread_t squidaio_thread_t;
@@ -107,16 +107,16 @@ static squidaio_thread_t *threads = NULL;
 static int squidaio_initialised = 0;
 
 #define AIO_LARGE_BUFS  16384
-#define AIO_MEDIUM_BUFS        AIO_LARGE_BUFS >> 1
-#define AIO_SMALL_BUFS AIO_LARGE_BUFS >> 2
-#define AIO_TINY_BUFS  AIO_LARGE_BUFS >> 3
-#define AIO_MICRO_BUFS 128
+#define AIO_MEDIUM_BUFS AIO_LARGE_BUFS >> 1
+#define AIO_SMALL_BUFS  AIO_LARGE_BUFS >> 2
+#define AIO_TINY_BUFS   AIO_LARGE_BUFS >> 3
+#define AIO_MICRO_BUFS  128
 
-static MemAllocator *squidaio_large_bufs = NULL;       /* 16K */
-static MemAllocator *squidaio_medium_bufs = NULL;      /* 8K */
-static MemAllocator *squidaio_small_bufs = NULL;       /* 4K */
-static MemAllocator *squidaio_tiny_bufs = NULL;        /* 2K */
-static MemAllocator *squidaio_micro_bufs = NULL;       /* 128K */
+static MemAllocator *squidaio_large_bufs = NULL;    /* 16K */
+static MemAllocator *squidaio_medium_bufs = NULL;   /* 8K */
+static MemAllocator *squidaio_small_bufs = NULL;    /* 4K */
+static MemAllocator *squidaio_tiny_bufs = NULL; /* 2K */
+static MemAllocator *squidaio_micro_bufs = NULL;    /* 128K */
 
 static int request_queue_len = 0;
 static MemAllocator *squidaio_request_pool = NULL;
@@ -430,7 +430,7 @@ squidaio_thread_loop(void *ptr)
                 squidaio_do_unlink(request);
                 break;
 
-#if AIO_OPENDIR                        /* Opendir not implemented yet */
+#if AIO_OPENDIR         /* Opendir not implemented yet */
 
             case _AIO_OP_OPENDIR:
                 squidaio_do_opendir(request);
@@ -446,7 +446,7 @@ squidaio_thread_loop(void *ptr)
                 request->err = EINVAL;
                 break;
             }
-        } else {               /* cancelled */
+        } else {        /* cancelled */
             request->ret = -1;
             request->err = EINTR;
         }
@@ -459,10 +459,10 @@ squidaio_thread_loop(void *ptr)
         pthread_mutex_unlock(&done_queue.mutex);
         CommIO::NotifyIOCompleted();
         ++ threadp->requests;
-    }                          /* while forever */
+    }               /* while forever */
 
     return NULL;
-}                              /* squidaio_thread_loop */
+}               /* squidaio_thread_loop */
 
 static void
 squidaio_queue_request(squidaio_request_t * request)
@@ -556,7 +556,7 @@ squidaio_queue_request(squidaio_request_t * request)
         squidaio_sync();
         debugs(43, DBG_CRITICAL, "squidaio_queue_request: Synced");
     }
-}                              /* squidaio_queue_request */
+}               /* squidaio_queue_request */
 
 static void
 squidaio_cleanup_request(squidaio_request_t * requestp)
@@ -619,7 +619,7 @@ squidaio_cleanup_request(squidaio_request_t * requestp)
     }
 
     squidaio_request_pool->freeOne(requestp);
-}                              /* squidaio_cleanup_request */
+}               /* squidaio_cleanup_request */
 
 int
 squidaio_cancel(squidaio_result_t * resultp)
@@ -636,7 +636,7 @@ squidaio_cancel(squidaio_result_t * resultp)
     }
 
     return 1;
-}                              /* squidaio_cancel */
+}               /* squidaio_cancel */
 
 int
 squidaio_open(const char *path, int oflag, mode_t mode, squidaio_result_t * resultp)
@@ -943,7 +943,7 @@ AIO_REPOLL:
         goto AIO_REPOLL;
 
     return resultp;
-}                              /* squidaio_poll_done */
+}               /* squidaio_poll_done */
 
 int
 squidaio_operations_pending(void)
@@ -1019,3 +1019,4 @@ squidaio_stats(StoreEntry * sentry)
         threadp = threadp->next;
     }
 }
+
index dc799d12ca289111690424a55fb48ea06c6d4881..32c617330706a38c91390388306de55ecc39f5d3 100644 (file)
@@ -23,7 +23,7 @@
 #include <fcntl.h>
 #include <dirent.h>
 
-#define RIDICULOUS_LENGTH      4096
+#define RIDICULOUS_LENGTH   4096
 
 enum _squidaio_thread_status {
     _THREAD_STARTING = 0,
@@ -63,7 +63,7 @@ typedef struct squidaio_request_queue_t {
     squidaio_request_t *volatile head;
     squidaio_request_t *volatile *volatile tailp;
     unsigned long requests;
-    unsigned long blocked;     /* main failed to lock the queue */
+    unsigned long blocked;  /* main failed to lock the queue */
 } squidaio_request_queue_t;
 
 typedef struct squidaio_thread_t squidaio_thread_t;
@@ -98,16 +98,16 @@ static squidaio_thread_t *threads = NULL;
 static int squidaio_initialised = 0;
 
 #define AIO_LARGE_BUFS  16384
-#define AIO_MEDIUM_BUFS        AIO_LARGE_BUFS >> 1
-#define AIO_SMALL_BUFS AIO_LARGE_BUFS >> 2
-#define AIO_TINY_BUFS  AIO_LARGE_BUFS >> 3
-#define AIO_MICRO_BUFS 128
+#define AIO_MEDIUM_BUFS AIO_LARGE_BUFS >> 1
+#define AIO_SMALL_BUFS  AIO_LARGE_BUFS >> 2
+#define AIO_TINY_BUFS   AIO_LARGE_BUFS >> 3
+#define AIO_MICRO_BUFS  128
 
-static MemAllocator *squidaio_large_bufs = NULL;       /* 16K */
-static MemAllocator *squidaio_medium_bufs = NULL;      /* 8K */
-static MemAllocator *squidaio_small_bufs = NULL;       /* 4K */
-static MemAllocator *squidaio_tiny_bufs = NULL;        /* 2K */
-static MemAllocator *squidaio_micro_bufs = NULL;       /* 128K */
+static MemAllocator *squidaio_large_bufs = NULL;    /* 16K */
+static MemAllocator *squidaio_medium_bufs = NULL;   /* 8K */
+static MemAllocator *squidaio_small_bufs = NULL;    /* 4K */
+static MemAllocator *squidaio_tiny_bufs = NULL; /* 2K */
+static MemAllocator *squidaio_micro_bufs = NULL;    /* 128K */
 
 static int request_queue_len = 0;
 static MemAllocator *squidaio_request_pool = NULL;
@@ -486,7 +486,7 @@ squidaio_thread_loop(LPVOID lpParam)
                 squidaio_do_unlink(request);
                 break;
 
-#if AIO_OPENDIR                        /* Opendir not implemented yet */
+#if AIO_OPENDIR         /* Opendir not implemented yet */
 
             case _AIO_OP_OPENDIR:
                 squidaio_do_opendir(request);
@@ -502,7 +502,7 @@ squidaio_thread_loop(LPVOID lpParam)
                 request->err = EINVAL;
                 break;
             }
-        } else {               /* cancelled */
+        } else {        /* cancelled */
             request->ret = -1;
             request->err = EINTR;
         }
@@ -527,12 +527,12 @@ squidaio_thread_loop(LPVOID lpParam)
         CommIO::NotifyIOCompleted();
         Sleep(0);
         ++ threadp->requests;
-    }                          /* while forever */
+    }               /* while forever */
 
     CloseHandle(cond);
 
     return 0;
-}                              /* squidaio_thread_loop */
+}               /* squidaio_thread_loop */
 
 static void
 squidaio_queue_request(squidaio_request_t * request)
@@ -632,7 +632,7 @@ squidaio_queue_request(squidaio_request_t * request)
         squidaio_sync();
         debugs(43, DBG_CRITICAL, "squidaio_queue_request: Synced");
     }
-}                              /* squidaio_queue_request */
+}               /* squidaio_queue_request */
 
 static void
 squidaio_cleanup_request(squidaio_request_t * requestp)
@@ -695,7 +695,7 @@ squidaio_cleanup_request(squidaio_request_t * requestp)
     }
 
     squidaio_request_pool->freeOne(requestp);
-}                              /* squidaio_cleanup_request */
+}               /* squidaio_cleanup_request */
 
 int
 squidaio_cancel(squidaio_result_t * resultp)
@@ -712,7 +712,7 @@ squidaio_cancel(squidaio_result_t * resultp)
     }
 
     return 1;
-}                              /* squidaio_cancel */
+}               /* squidaio_cancel */
 
 int
 squidaio_open(const char *path, int oflag, mode_t mode, squidaio_result_t * resultp)
@@ -1045,7 +1045,7 @@ AIO_REPOLL:
         goto AIO_REPOLL;
 
     return resultp;
-}                              /* squidaio_poll_done */
+}               /* squidaio_poll_done */
 
 int
 squidaio_operations_pending(void)
@@ -1121,3 +1121,4 @@ squidaio_stats(StoreEntry * sentry)
         threadp = threadp->next;
     }
 }
+
index 290e72cbe2688fc4959dd50299a4b9cac0390e76..3b25e5e2b2d7b34fbbc6a7dfb5df7baa11bc3b72 100644 (file)
@@ -135,7 +135,7 @@ aioWrite(int fd, off_t offset, char *bufp, size_t len, AIOCB * callback, void *c
     ctrlp->result.data = ctrlp;
     squidaio_write(fd, bufp, len, offset, seekmode, &ctrlp->result);
     dlinkAdd(ctrlp, &ctrlp->node, &used_list);
-}                              /* aioWrite */
+}               /* aioWrite */
 
 void
 aioRead(int fd, off_t offset, size_t len, AIOCB * callback, void *callback_data)
@@ -164,7 +164,7 @@ aioRead(int fd, off_t offset, size_t len, AIOCB * callback, void *callback_data)
     squidaio_read(fd, ctrlp->bufp, len, offset, seekmode, &ctrlp->result);
     dlinkAdd(ctrlp, &ctrlp->node, &used_list);
     return;
-}                              /* aioRead */
+}               /* aioRead */
 
 void
 
@@ -183,7 +183,7 @@ aioStat(char *path, struct stat *sb, AIOCB * callback, void *callback_data)
     squidaio_stat(path, sb, &ctrlp->result);
     dlinkAdd(ctrlp, &ctrlp->node, &used_list);
     return;
-}                              /* aioStat */
+}               /* aioStat */
 
 void
 aioUnlink(const char *path, AIOCB * callback, void *callback_data)
@@ -199,10 +199,11 @@ aioUnlink(const char *path, AIOCB * callback, void *callback_data)
     ctrlp->result.data = ctrlp;
     squidaio_unlink(path, &ctrlp->result);
     dlinkAdd(ctrlp, &ctrlp->node, &used_list);
-}                              /* aioUnlink */
+}               /* aioUnlink */
 
 int
 aioQueueSize(void)
 {
     return DiskThreadsIOStrategy::Instance.squidaio_ctrl_pool->inUseCount();
 }
+
index 31fbcda7340284872ef8ad621024ce794cc4ee77..113535243b78475207ecffe987dcc21a47459d78 100644 (file)
@@ -27,3 +27,4 @@ public:
 };
 
 #endif /* SQUID_IOREQUESTOR_H */
+
index 6926e61d8e41d3d9a432f945af7b45debdd858a5..92027e1ba48fc9566a0714c2b2d415e6bf407eda 100644 (file)
@@ -42,3 +42,4 @@ IpcIoDiskIOModule::type () const
 {
     return "IpcIo";
 }
+
index 95dd3b849490e5ad5144014a55e50f03c80fcad9..be196810528d9969d09c5fd6e6d891b1d630221b 100644 (file)
@@ -27,3 +27,4 @@ private:
 };
 
 #endif /* SQUID_IPC_IODISKIOMODULE_H */
+
index c07d4a813fffcdff0bdcfe4d809cabe6d73bd02a..85a983d92e99494774490f5a70e945f8f390e2af 100644 (file)
@@ -55,7 +55,7 @@ static void DiskerClose(const SBuf &path);
 /// IpcIo wrapper for debugs() streams; XXX: find a better class name
 struct SipcIo {
     SipcIo(int aWorker, const IpcIoMsg &aMsg, int aDisker):
-            worker(aWorker), msg(aMsg), disker(aDisker) {}
+        worker(aWorker), msg(aMsg), disker(aDisker) {}
 
     int worker;
     const IpcIoMsg &msg;
@@ -70,9 +70,9 @@ operator <<(std::ostream &os, const SipcIo &sio)
 }
 
 IpcIoFile::IpcIoFile(char const *aDb):
-        dbName(aDb), diskId(-1), error_(false), lastRequestId(0),
-        olderRequests(&requestMap1), newerRequests(&requestMap2),
-        timeoutCheckScheduled(false)
+    dbName(aDb), diskId(-1), error_(false), lastRequestId(0),
+    olderRequests(&requestMap1), newerRequests(&requestMap2),
+    timeoutCheckScheduled(false)
 {
 }
 
@@ -610,11 +610,11 @@ IpcIoFile::getFD() const
 /* IpcIoMsg */
 
 IpcIoMsg::IpcIoMsg():
-        requestId(0),
-        offset(0),
-        len(0),
-        command(IpcIo::cmdNone),
-        xerrno(0)
+    requestId(0),
+    offset(0),
+    len(0),
+    command(IpcIo::cmdNone),
+    xerrno(0)
 {
     start.tv_sec = 0;
     start.tv_usec = 0;
@@ -623,7 +623,7 @@ IpcIoMsg::IpcIoMsg():
 /* IpcIoPendingRequest */
 
 IpcIoPendingRequest::IpcIoPendingRequest(const IpcIoFile::Pointer &aFile):
-        file(aFile), readRequest(NULL), writeRequest(NULL)
+    file(aFile), readRequest(NULL), writeRequest(NULL)
 {
 }
 
@@ -971,3 +971,4 @@ IpcIoRr::~IpcIoRr()
 {
     delete owner;
 }
+
index 0bddd239e7632d02f1d90e2c3d681d5eebed03ae..3d84f9f289c9d2488e0bbe60161053c06018cdea 100644 (file)
@@ -166,3 +166,4 @@ private:
 };
 
 #endif /* SQUID_IPC_IOFILE_H */
+
index 415bc99d5d911f2202697306159fed5736636ecb..5377cbf95ae95456239961123341cd3b11818b49 100644 (file)
@@ -43,3 +43,4 @@ IpcIoIOStrategy::unlinkFile(char const *path)
 {
     unlinkdUnlink(path);
 }
+
index acb5a06640cadf5dff19497ccc53d3741d601d59..9732191640f69963733c61b789ccce5258c179d6 100644 (file)
@@ -22,3 +22,4 @@ public:
 };
 
 #endif /* SQUID_IPC_IOIOSTRATEGY_H */
+
index 22f4f56c36c6019acdcee3335252f589e1e9eaa1..05c8b71a9ed543427d328feb010635135d223467 100644 (file)
@@ -42,3 +42,4 @@ MmappedDiskIOModule::type () const
 {
     return "Mmapped";
 }
+
index 9eab43de39d85c81d2583e502b5d988764fc809d..f81c9d24a22e7a7afe4aa250090d829a7224a31a 100644 (file)
@@ -27,3 +27,4 @@ private:
 };
 
 #endif /* SQUID_MMAPPEDDISKIOMODULE_H */
+
index 1a5fe5af92f84c052ebdf8e314f64c3a93049849..4ed22d403303be4a3f7452ca6b42c07a3ed7ec53 100644 (file)
@@ -54,7 +54,7 @@ private:
 };
 
 MmappedFile::MmappedFile(char const *aPath): fd(-1),
-        minOffset(0), maxOffset(-1), error_(false)
+    minOffset(0), maxOffset(-1), error_(false)
 {
     assert(aPath);
     path_ = xstrdup(aPath);
@@ -217,8 +217,8 @@ MmappedFile::ioInProgress() const
 }
 
 Mmapping::Mmapping(int aFd, size_t aLength, int aProt, int aFlags, off_t anOffset):
-        fd(aFd), length(aLength), prot(aProt), flags(aFlags), offset(anOffset),
-        delta(-1), buf(NULL)
+    fd(aFd), length(aLength), prot(aProt), flags(aFlags), offset(anOffset),
+    delta(-1), buf(NULL)
 {
 }
 
@@ -269,3 +269,4 @@ Mmapping::unmap()
 }
 
 // TODO: check MAP_NORESERVE, consider MAP_POPULATE and MAP_FIXED
+
index b473bf8a863b960a514e730fd75cfb8d00ae8c1f..453e1e091451aed92123f87b38375b5cd2917e25 100644 (file)
@@ -49,3 +49,4 @@ private:
 };
 
 #endif /* SQUID_MMAPPEDFILE_H */
+
index 1b9a7a7027f1bb63289d5f1d41281ce91d387a56..054bdc607467475146352d28575d2e325970a4a0 100644 (file)
@@ -43,3 +43,4 @@ MmappedIOStrategy::unlinkFile(char const *path)
 {
     unlinkdUnlink(path);
 }
+
index b2a8b6ab233668093037c438b8eb0145fc7453aa..c8aadd487c190239498fd093b546ad1d9fdab865 100644 (file)
@@ -22,3 +22,4 @@ public:
 };
 
 #endif /* SQUID_MMAPPEDIOSTRATEGY_H */
+
index 0638b5487274290bb8efa6ae00ec7691cb7dde55..8022e5d5e44ccd9297adac960bcdbf6b44e94abc 100644 (file)
@@ -12,3 +12,4 @@
 CBDATA_CLASS_INIT(ReadRequest);
 ReadRequest::ReadRequest(char *aBuf, off_t anOffset, size_t aLen) : buf (aBuf), offset(anOffset), len(aLen)
 {}
+
index bbd8e3d67bc1c5f73078b2776b1ead6988b88753..a10af04dbc81dbd98dda98470e733cc1a0d08a4d 100644 (file)
@@ -27,3 +27,4 @@ public:
 };
 
 #endif /* SQUID_READREQUEST_H */
+
index 30764d7845d15f0098c27db98a4deb6cae0dda46..1e8adf9052703634215beca05466f42533c0d457 100644 (file)
@@ -12,3 +12,4 @@
 CBDATA_CLASS_INIT(WriteRequest);
 WriteRequest::WriteRequest(char const *aBuf, off_t anOffset, size_t aLen, FREE *aFree) : buf (aBuf), offset(anOffset), len(aLen), free_func(aFree)
 {}
+
index 3ae936546824c3ba23d9270b04c6c5bf4c149710..ad7aaaf455bc1569789bd7294d799ef708e3e3c5 100644 (file)
@@ -28,3 +28,4 @@ public:
 };
 
 #endif /* SQUID_WRITEREQUEST_H */
+
index ffe068ca5205567bcdaf3f573ab0a6093dc1129d..36ca886ac5127f1ae93e69d38f09074b5187546a 100644 (file)
@@ -16,7 +16,7 @@ DnsLookupDetails::DnsLookupDetails(): wait(-1)
 }
 
 DnsLookupDetails::DnsLookupDetails(const String &e, int w):
-        error(e), wait(w)
+    error(e), wait(w)
 {
 }
 
@@ -29,3 +29,4 @@ DnsLookupDetails::print(std::ostream &os) const
         os << " lookup_err=" << error;
     return os;
 }
+
index b7f4f0b5f8c0ddd28e94aabd34763895228c794a..93b61e8f2b7edcdcf1ef84fc2a0d8b539191153a 100644 (file)
@@ -34,3 +34,4 @@ std::ostream &operator << (std::ostream &os, const DnsLookupDetails &dns)
 }
 
 #endif
+
index d0dee7c1392a49fc24d1b5225d099f53f1152793..ff738a090e3f027d9d5eeaa579f0a4002a6e8d4c 100644 (file)
@@ -56,3 +56,4 @@ etagIsWeakEqual(const ETag &tag1, const ETag &tag2)
 {
     return etagStringsMatch(tag1, tag2);
 }
+
index 177df70630405a76b57a7153c1254882ad74fbc3..f4842ef0740afcb7ae6dfc5b38a5d6fb91c5ee74 100644 (file)
@@ -29,3 +29,4 @@ bool etagIsStrongEqual(const ETag &tag1, const ETag &tag2);
 bool etagIsWeakEqual(const ETag &tag1, const ETag &tag2);
 
 #endif /* _SQUIDETAG_H */
+
index f831bef17864b5eee0b1efa9e392533dcd6f05a2..2df7588f1d5d62b244488dcb18ca1f7ebeb9be47 100644 (file)
 EventLoop *EventLoop::Running = NULL;
 
 EventLoop::EventLoop() : errcount(0), last_loop(false), timeService(NULL),
-        primaryEngine(NULL),
-        loop_delay(EVENT_LOOP_TIMEOUT),
-        error(false),
-        runOnceResult(false)
+    primaryEngine(NULL),
+    loop_delay(EVENT_LOOP_TIMEOUT),
+    error(false),
+    runOnceResult(false)
 {}
 
 void
@@ -169,3 +169,4 @@ EventLoop::stop()
 {
     last_loop = true;
 }
+
index 4e360ee7a18e50ed7fb6ce41eb9edb29e0c5324d..8627979ec7f96a6c1f765311d6fbeb2c7ff2d7d0 100644 (file)
@@ -11,7 +11,7 @@
 
 #include <vector>
 
-#define EVENT_LOOP_TIMEOUT     1000 /* 1s timeout */
+#define EVENT_LOOP_TIMEOUT  1000 /* 1s timeout */
 
 class AsyncEngine;
 class TimeEngine;
@@ -92,3 +92,4 @@ private:
 };
 
 #endif /* SQUID_EVENTLOOP_H */
+
index e34e54844dd7672242063b12fb4ef55ba903c39f..fcaa9a79745975752d891aa241b3b9321c404ea8 100644 (file)
@@ -78,3 +78,4 @@ void externalAclInit(void);
 void externalAclShutdown(void);
 
 #endif /* SQUID_EXTERNALACL_H */
+
index da8e4af9e37df94f630ea697579f53459910b468..18c39db24ad4008668aca7d4439383d6f2f4cdd4 100644 (file)
@@ -17,7 +17,7 @@
  */
 
 ExternalACLEntry::ExternalACLEntry() :
-        notes()
+    notes()
 {
     lru.next = lru.prev = NULL;
     result = ACCESS_DENIED;
@@ -48,3 +48,4 @@ ExternalACLEntry::update(ExternalACLEntryData const &someData)
     tag = someData.tag;
     log = someData.log;
 }
+
index b7ef687aa43099e4747b41c6577dc94a0b411dbf..ae45134b867c7bbffbaf1cba355999dc575b0d73 100644 (file)
@@ -78,3 +78,4 @@ public:
 };
 
 #endif
+
index c861fd0e53c8bb2da7bd0496dd431446eeb94d75..4cd9feb493b76506d496707af0b6aae42107fe41 100644 (file)
@@ -14,7 +14,7 @@
 #include <cmath>
 
 FadingCounter::FadingCounter(): horizon(-1), precision(10), delta(-1),
-        lastTime(0), total(0)
+    lastTime(0), total(0)
 {
     counters.reserve(precision);
     while (counters.size() < static_cast<unsigned int>(precision))
@@ -73,3 +73,4 @@ int FadingCounter::count(int howMany)
 
     return total;
 }
+
index 868cf4cae6f51dee21f80f5f8207bb4f9ec094b9..e22bb461aff48d36a343d5eab98af3241adf3b2a 100644 (file)
@@ -38,3 +38,4 @@ private:
 };
 
 #endif /* SQUID_FADING_COUNTER_H */
+
index a346ee9f48c8a345e24b36c01b35ee7ca80146be..7a4027e41c6823fa9c1a49f2e7f4cca72744035d 100644 (file)
@@ -77,3 +77,4 @@ private:
 };
 
 #endif /* FILEMAP_H_ */
+
index fbca17f96884e0ce220a21ac76aa0741f9ede60c..d74d62661513dbe51521ad46060fae1db6e87297 100644 (file)
@@ -81,7 +81,7 @@ public:
     typedef void (FwdState::*Method)(Ssl::PeerConnectorAnswer &);
 
     FwdStatePeerAnswerDialer(Method method, FwdState *fwd):
-            method_(method), fwd_(fwd), answer_() {}
+        method_(method), fwd_(fwd), answer_() {}
 
     /* CallDialer API */
     virtual bool canDial(AsyncCall &call) { return fwd_.valid(); }
@@ -127,7 +127,7 @@ FwdState::closeServerConnection(const char *reason)
 /**** PUBLIC INTERFACE ********************************************************/
 
 FwdState::FwdState(const Comm::ConnectionPointer &client, StoreEntry * e, HttpRequest * r, const AccessLogEntryPointer &alp):
-        al(alp)
+    al(alp)
 {
     debugs(17, 2, HERE << "Forwarding client request " << client << ", url=" << e->url() );
     entry = e;
@@ -320,7 +320,7 @@ FwdState::Start(const Comm::ConnectionPointer &clientConn, StoreEntry *entry, Ht
                 page_id = ERR_FORWARDING_DENIED;
 
             ErrorState *anErr = new ErrorState(page_id, Http::scForbidden, request);
-            errorAppendEntry(entry, anErr);    // frees anErr
+            errorAppendEntry(entry, anErr); // frees anErr
             return;
         }
     }
@@ -340,7 +340,7 @@ FwdState::Start(const Comm::ConnectionPointer &clientConn, StoreEntry *entry, Ht
     if (shutting_down) {
         /* more yuck */
         ErrorState *anErr = new ErrorState(ERR_SHUTTING_DOWN, Http::scServiceUnavailable, request);
-        errorAppendEntry(entry, anErr);        // frees anErr
+        errorAppendEntry(entry, anErr); // frees anErr
         return;
     }
 
@@ -630,7 +630,7 @@ FwdState::retryOrBail()
         errorAppendEntry(entry, anErr);
     }
 
-    self = NULL;       // refcounted
+    self = NULL;    // refcounted
 }
 
 // If the Server quits before nibbling at the request body, the body sender
@@ -996,7 +996,7 @@ FwdState::dispatch()
             whoisStart(this);
             break;
 
-        case AnyP::PROTO_WAIS: /* Not implemented */
+        case AnyP::PROTO_WAIS:  /* Not implemented */
 
         default:
             debugs(17, DBG_IMPORTANT, "WARNING: Cannot retrieve '" << entry->url() << "'.");
@@ -1303,3 +1303,4 @@ GetMarkingsToServer(HttpRequest * request, Comm::Connection &conn)
     conn.nfmark = 0;
 #endif
 }
+
index b7bead3ffdcbb8b322454668678446a99b91a292..0c3a8c9090c723735863a5124f484ec05eaa6196 100644 (file)
@@ -160,3 +160,4 @@ private:
 void getOutgoingAddress(HttpRequest * request, Comm::ConnectionPointer conn);
 
 #endif /* SQUID_FORWARD_H */
+
index eb4df005988eb92d7ec24ab9a199a0732e2f27f5..f00aa5125a44f97228c69020bc158553b7edec69 100644 (file)
@@ -94,3 +94,4 @@ struct PointerPrinter {
 };
 
 #endif /* SQUID_GENERIC_H */
+
index 9bcd6d000aac6b0e2cea43de7b393fac047cdf30..8f05eff9ac331a226d49f728a4f309b3d5fb7127 100644 (file)
@@ -43,10 +43,10 @@ public:
     hier_code code;
     char host[SQUIDHOSTNAMELEN];
     ping_data ping;
-    char cd_host[SQUIDHOSTNAMELEN];    /* the host of selected by cd peer */
-    lookup_t cd_lookup;                /* cd prediction: none, miss, hit */
-    int n_choices;             /* #peers we selected from (cd only) */
-    int n_ichoices;            /* #peers with known rtt we selected from (cd only) */
+    char cd_host[SQUIDHOSTNAMELEN]; /* the host of selected by cd peer */
+    lookup_t cd_lookup;     /* cd prediction: none, miss, hit */
+    int n_choices;      /* #peers we selected from (cd only) */
+    int n_ichoices;     /* #peers with known rtt we selected from (cd only) */
 
     struct timeval peer_select_start;
 
@@ -64,3 +64,4 @@ private:
 };
 
 #endif /* SQUID_HTTPHIERARCHYLOGENTRY_H */
+
index 0661add43ba9d020961705bf88b2b2a21de15d54..ac61026c43a78c4790ce98f003ca64561d6dc68f 100644 (file)
@@ -35,7 +35,7 @@ HttpBody::setMb(MemBuf * mb_)
      * as MemBuf doesn't have a copy-constructor. If such a constructor
      * is ever added, add such protection here.
      */
-    mb = mb_;          /* absorb */
+    mb = mb_;       /* absorb */
 }
 
 void
@@ -46,3 +46,4 @@ HttpBody::packInto(Packer * p) const
     if (mb->contentSize())
         packerAppend(p, mb->content(), mb->contentSize());
 }
+
index cfb31db619e095d719071be58dfd4c4359892ff6..b9cb4852c82847b546948f0a478c0e6cff588883 100644 (file)
@@ -52,3 +52,4 @@ private:
 };
 
 #endif /* HTTPBODY_H_ */
+
index 69ae999a0f5606cf02ab88dd43bc98a21465e271..2ce2f0b26f254f4116c539673a13313407c260bf 100644 (file)
@@ -40,7 +40,7 @@ public:
     typedef AsyncCall::Pointer Callback;
 
     HttpControlMsg(const HttpReply::Pointer &aReply, const Callback &aCallback):
-            reply(aReply), cbSuccess(aCallback) {}
+        reply(aReply), cbSuccess(aCallback) {}
 
 public:
     HttpReply::Pointer reply; ///< the 1xx message being forwarded
@@ -58,3 +58,4 @@ operator <<(std::ostream &os, const HttpControlMsg &msg)
 }
 
 #endif /* SQUID_HTTP_CONTROL_MSG_H */
+
index 70ed06c4a929f70ae93e28145ef776b71ff373a3..f85909ed324a404d49a6d95491614a86913ca9fc 100644 (file)
@@ -89,7 +89,7 @@ bool
 HttpHdrCc::parse(const String & str)
 {
     const char *item;
-    const char *p;             /* '=' parameter */
+    const char *p;      /* '=' parameter */
     const char *pos = NULL;
     http_hdr_cc_type type;
     int ilen;
@@ -301,7 +301,7 @@ httpHdrCcUpdateStats(const HttpHdrCc * cc, StatHist * hist)
 void
 httpHdrCcStatDumper(StoreEntry * sentry, int idx, double val, double size, int count)
 {
-    extern const HttpHeaderStat *dump_stat;    /* argh! */
+    extern const HttpHeaderStat *dump_stat; /* argh! */
     const int id = (int) val;
     const int valid_id = id >= 0 && id < CC_ENUM_END;
     const char *name = valid_id ? CcAttrs[id].name : "INVALID";
@@ -314,3 +314,4 @@ httpHdrCcStatDumper(StoreEntry * sentry, int idx, double val, double size, int c
 #if !_USE_INLINE_
 #include "HttpHdrCc.cci"
 #endif
+
index b4bdd5b7524a51a96afa7915400a64603e5fe7ec..77bcda737e99deef7152fdac7ec5d3a95dc4e563 100644 (file)
@@ -45,3 +45,4 @@ HttpHdrCc::setValue(int32_t &value, int32_t new_value, http_hdr_cc_type hdr, boo
     value=new_value;
     setMask(hdr,setting);
 }
+
index 88262c5f0bfaf86b22d4a89e7f8799f2181de3f4..3a743679ba4cf1a0fb697c33da3d02dec6e4cd06 100644 (file)
@@ -34,9 +34,9 @@ public:
     static const int32_t MIN_FRESH_UNKNOWN=-1; //min_fresh is unset
 
     HttpHdrCc() :
-            mask(0), max_age(MAX_AGE_UNKNOWN), s_maxage(S_MAXAGE_UNKNOWN),
-            max_stale(MAX_STALE_UNKNOWN), stale_if_error(STALE_IF_ERROR_UNKNOWN),
-            min_fresh(MIN_FRESH_UNKNOWN) {}
+        mask(0), max_age(MAX_AGE_UNKNOWN), s_maxage(S_MAXAGE_UNKNOWN),
+        max_stale(MAX_STALE_UNKNOWN), stale_if_error(STALE_IF_ERROR_UNKNOWN),
+        min_fresh(MIN_FRESH_UNKNOWN) {}
 
     /// reset data-members to default state
     void clear();
@@ -185,3 +185,4 @@ void httpHdrCcStatDumper(StoreEntry * sentry, int idx, double val, double size,
 #endif
 
 #endif /* SQUID_HTTPHDRCC_H */
+
index d28057c3f65d03ed4969726e9e00763b076f931c..9114aa08c8a8cdb8857fbee71ec8d4df5f3841e0 100644 (file)
@@ -220,3 +220,4 @@ httpHdrContRangeSet(HttpHdrContRange * cr, HttpHdrRangeSpec spec, int64_t ent_le
     cr->spec = spec;
     cr->elength = ent_len;
 }
+
index 9155572d910d105a39508d4ea693380642a9df06..51e4f20a9cd45ddf196fefd5fdb47a916814ff11 100644 (file)
@@ -20,7 +20,7 @@ class HttpHdrContRange
 
 public:
     HttpHdrRangeSpec spec;
-    int64_t elength;           /**< entity length, not content length */
+    int64_t elength;        /**< entity length, not content length */
 };
 
 /** \todo CLEANUP: Move httpHdrContRange* functions into the class methods */
@@ -37,3 +37,4 @@ void httpHdrContRangeSet(HttpHdrContRange *, HttpHdrRangeSpec, int64_t);
 void httpHeaderAddContRange(HttpHeader *, HttpHdrRangeSpec, int64_t);
 
 #endif /* SQUID_HTTPHDRCONTRANGE_H */
+
index 0df454a2860833549c334d6ee9ce27d6488e6bcf..f3736d569ebf4f945478c67d4495bcd27a4038fd 100644 (file)
@@ -107,11 +107,11 @@ HttpHdrRangeSpec::parseInit(const char *field, int flen)
 void
 HttpHdrRangeSpec::packInto(Packer * packer) const
 {
-    if (!known_spec(offset))   /* suffix */
+    if (!known_spec(offset))    /* suffix */
         packerPrintf(packer, "-%" PRId64,  length);
-    else if (!known_spec(length))              /* trailer */
+    else if (!known_spec(length))       /* trailer */
         packerPrintf(packer, "%" PRId64 "-", offset);
-    else                       /* range */
+    else            /* range */
         packerPrintf(packer, "%" PRId64 "-%" PRId64,
                      offset, offset + length - 1);
 }
@@ -134,10 +134,10 @@ HttpHdrRangeSpec::canonize(int64_t clen)
     outputInfo ("have");
     HttpRange object(0, clen);
 
-    if (!known_spec(offset)) { /* suffix */
+    if (!known_spec(offset)) {  /* suffix */
         assert(known_spec(length));
         offset = object.intersection(HttpRange (clen - length, clen)).start;
-    } else if (!known_spec(length)) {  /* trailer */
+    } else if (!known_spec(length)) {   /* trailer */
         assert(known_spec(offset));
         HttpRange newRange = object.intersection(HttpRange (offset, clen));
         length = newRange.size();
@@ -164,8 +164,8 @@ HttpHdrRangeSpec::mergeWith(const HttpHdrRangeSpec * donor)
     bool merged (false);
 #if MERGING_BREAKS_NOTHING
     /* Note: this code works, but some clients may not like its effects */
-    int64_t rhs = offset + length;             /* no -1 ! */
-    const int64_t donor_rhs = donor->offset + donor->length;   /* no -1 ! */
+    int64_t rhs = offset + length;      /* no -1 ! */
+    const int64_t donor_rhs = donor->offset + donor->length;    /* no -1 ! */
     assert(known_spec(offset));
     assert(known_spec(donor->offset));
     assert(length > 0);
@@ -173,13 +173,13 @@ HttpHdrRangeSpec::mergeWith(const HttpHdrRangeSpec * donor)
     /* do we have a left hand side overlap? */
 
     if (donor->offset < offset && offset <= donor_rhs) {
-        offset = donor->offset;        /* decrease left offset */
+        offset = donor->offset; /* decrease left offset */
         merged = 1;
     }
 
     /* do we have a right hand side overlap? */
     if (donor->offset <= rhs && rhs < donor_rhs) {
-        rhs = donor_rhs;       /* increase right offset */
+        rhs = donor_rhs;    /* increase right offset */
         merged = 1;
     }
 
@@ -267,8 +267,8 @@ HttpHdrRange::~HttpHdrRange()
 }
 
 HttpHdrRange::HttpHdrRange(HttpHdrRange const &old) :
-        specs(),
-        clen(HttpHdrRangeSpec::UnknownPosition)
+    specs(),
+    clen(HttpHdrRangeSpec::UnknownPosition)
 {
     specs.reserve(old.specs.size());
 
@@ -332,11 +332,11 @@ HttpHdrRange::merge (std::vector<HttpHdrRangeSpec *> &basis)
             /* merged with current so get rid of the prev one */
             delete specs.back();
             specs.pop_back();
-            continue;  /* re-iterate */
+            continue;   /* re-iterate */
         }
 
         specs.push_back (*i);
-        ++i;                   /* progress */
+        ++i;            /* progress */
     }
 
     debugs(64, 3, "HttpHdrRange::merge: had " << basis.size() <<
@@ -430,7 +430,7 @@ HttpHdrRange::willBeComplex() const
     int64_t offset = 0;
 
     for (const_iterator pos (begin()); pos != end(); ++pos) {
-        if (!known_spec((*pos)->offset))       /* ignore unknowns */
+        if (!known_spec((*pos)->offset))    /* ignore unknowns */
             continue;
 
         /* Ensure typecasts is safe */
@@ -441,7 +441,7 @@ HttpHdrRange::willBeComplex() const
 
         offset = (*pos)->offset;
 
-        if (known_spec((*pos)->length))        /* avoid  unknowns */
+        if (known_spec((*pos)->length)) /* avoid  unknowns */
             offset += (*pos)->length;
     }
 
@@ -486,7 +486,7 @@ HttpHdrRange::lowestOffset(int64_t size) const
 
         if (!known_spec(current)) {
             if ((*pos)->length > size || !known_spec((*pos)->length))
-                return 0;      /* Unknown. Assume start of file */
+                return 0;   /* Unknown. Assume start of file */
 
             current = size - (*pos)->length;
         }
@@ -575,3 +575,4 @@ void HttpHdrRangeIter::debt(int64_t newDebt)
     debugs(64, 3, "HttpHdrRangeIter::debt: was " << debt_size << " now " << newDebt);
     debt_size = newDebt;
 }
+
index 1343835fd5b9ca6b08efd78db477914b8d8a22ce..0322ebe4050c59ee51a248925f6862d46157e990 100644 (file)
@@ -36,7 +36,7 @@ static const HttpHeaderFieldAttrs ScAttrs[SC_ENUM_END] = {
     {"no-store-remote", (http_hdr_type)SC_NO_STORE_REMOTE},
     {"max-age", (http_hdr_type)SC_MAX_AGE},
     {"content", (http_hdr_type)SC_CONTENT},
-    {"Other,", (http_hdr_type)SC_OTHER}        /* ',' will protect from matches */
+    {"Other,", (http_hdr_type)SC_OTHER} /* ',' will protect from matches */
 };
 
 HttpHeaderFieldInfo *ScFieldsInfo = NULL;
@@ -90,7 +90,7 @@ HttpHdrSc::parse(const String * str)
 {
     HttpHdrSc * sc=this;
     const char *item;
-    const char *p;             /* '=' parameter */
+    const char *p;      /* '=' parameter */
     const char *pos = NULL;
     const char *target = NULL; /* ;foo */
     const char *temp = NULL; /* temp buffer */
@@ -318,7 +318,7 @@ httpHdrScTargetStatDumper(StoreEntry * sentry, int idx, double val, double size,
 void
 httpHdrScStatDumper(StoreEntry * sentry, int idx, double val, double size, int count)
 {
-    extern const HttpHeaderStat *dump_stat;    /* argh! */
+    extern const HttpHeaderStat *dump_stat; /* argh! */
     const int id = (int) val;
     const int valid_id = id >= 0 && id < SC_ENUM_END;
     const char *name = valid_id ? ScFieldsInfo[id].name.termedBuf() : "INVALID";
@@ -368,3 +368,4 @@ HttpHdrSc::getMergedTarget(const char *ourtarget)
 
     return NULL;
 }
+
index e542a94af79704c042c11529f0b24014b64178e7..675f3ad2924e6be389183a27f978106cabc2e997 100644 (file)
@@ -50,3 +50,4 @@ HttpHdrSc *httpHdrScParseCreate(String const &);
 void httpHdrScSetMaxAge(HttpHdrSc *, char const *, int);
 
 #endif /* SQUID_HTTPHDRSURROGATECONTROL_H */
+
index 606f844b9403db19bca61935de47179d24a94478..3b2da9fe53c27baa7d1a89982943b511833a5bdc 100644 (file)
@@ -47,3 +47,4 @@ HttpHdrScTarget::updateStats(StatHist * hist) const
         if (isSet(c))
             hist->count(c);
 }
+
index 234100df1959b4eacc3cb918b26ac385394d1d45..01b9d573c318a54199f60733c1b575dc871f3e78 100644 (file)
@@ -34,12 +34,12 @@ public:
     static const int MAX_STALE_UNSET=0; //max-stale is unset
 
     HttpHdrScTarget(const char *target_):
-            mask(0), max_age(MAX_AGE_UNSET), max_stale(MAX_STALE_UNSET),target(target_) {}
+        mask(0), max_age(MAX_AGE_UNSET), max_stale(MAX_STALE_UNSET),target(target_) {}
     HttpHdrScTarget(const String &target_):
-            mask(0), max_age(MAX_AGE_UNSET), max_stale(MAX_STALE_UNSET),target(target_) {}
+        mask(0), max_age(MAX_AGE_UNSET), max_stale(MAX_STALE_UNSET),target(target_) {}
     HttpHdrScTarget(const HttpHdrScTarget &t):
-            mask(t.mask), max_age(t.max_age), max_stale(t.max_stale),
-            content_(t.content_), target(t.target) {}
+        mask(t.mask), max_age(t.max_age), max_stale(t.max_stale),
+        content_(t.content_), target(t.target) {}
 
     bool hasNoStore() const {return isSet(SC_NO_STORE); }
     void noStore(bool v) { setMask(SC_NO_STORE,v); }
@@ -107,3 +107,4 @@ private:
 void httpHdrScTargetStatDumper(StoreEntry * sentry, int idx, double val, double size, int count);
 
 #endif /* SQUID_HTTPHDRSURROGATECONTROLTARGET_H */
+
index e029a8add7faaf9eb699644a0ef273bae10aceee..4d24035a8c619eca017ee80fda4438649c3bcf92 100644 (file)
@@ -74,7 +74,7 @@ static const HttpHeaderFieldAttrs HeadersAttrs[] = {
     {"Age", HDR_AGE, ftInt},
     {"Allow", HDR_ALLOW, ftStr},
     {"Alternate-Protocol", HDR_ALTERNATE_PROTOCOL, ftStr},
-    {"Authorization", HDR_AUTHORIZATION, ftStr},       /* for now */
+    {"Authorization", HDR_AUTHORIZATION, ftStr},    /* for now */
     {"Cache-Control", HDR_CACHE_CONTROL, ftPCc},
     {"Connection", HDR_CONNECTION, ftStr},
     {"Content-Base", HDR_CONTENT_BASE, ftStr},
@@ -83,7 +83,7 @@ static const HttpHeaderFieldAttrs HeadersAttrs[] = {
     {"Content-Language", HDR_CONTENT_LANGUAGE, ftStr},
     {"Content-Length", HDR_CONTENT_LENGTH, ftInt64},
     {"Content-Location", HDR_CONTENT_LOCATION, ftStr},
-    {"Content-MD5", HDR_CONTENT_MD5, ftStr},   /* for now */
+    {"Content-MD5", HDR_CONTENT_MD5, ftStr},    /* for now */
     {"Content-Range", HDR_CONTENT_RANGE, ftPContRange},
     {"Content-Type", HDR_CONTENT_TYPE, ftStr},
     {"Cookie", HDR_COOKIE, ftStr},
@@ -96,9 +96,9 @@ static const HttpHeaderFieldAttrs HeadersAttrs[] = {
     {"From", HDR_FROM, ftStr},
     {"Host", HDR_HOST, ftStr},
     {"HTTP2-Settings", HDR_HTTP2_SETTINGS, ftStr}, /* for now */
-    {"If-Match", HDR_IF_MATCH, ftStr}, /* for now */
+    {"If-Match", HDR_IF_MATCH, ftStr},  /* for now */
     {"If-Modified-Since", HDR_IF_MODIFIED_SINCE, ftDate_1123},
-    {"If-None-Match", HDR_IF_NONE_MATCH, ftStr},       /* for now */
+    {"If-None-Match", HDR_IF_NONE_MATCH, ftStr},    /* for now */
     {"If-Range", HDR_IF_RANGE, ftDate_1123_or_ETag},
     {"If-Unmodified-Since", HDR_IF_UNMODIFIED_SINCE, ftDate_1123},
     {"Keep-Alive", HDR_KEEP_ALIVE, ftStr},
@@ -107,7 +107,7 @@ static const HttpHeaderFieldAttrs HeadersAttrs[] = {
     {"Link", HDR_LINK, ftStr},
     {"Location", HDR_LOCATION, ftStr},
     {"Max-Forwards", HDR_MAX_FORWARDS, ftInt64},
-    {"Mime-Version", HDR_MIME_VERSION, ftStr}, /* for now */
+    {"Mime-Version", HDR_MIME_VERSION, ftStr},  /* for now */
     {"Negotiate", HDR_NEGOTIATE, ftStr},
     {"Origin", HDR_ORIGIN, ftStr},
     {"Pragma", HDR_PRAGMA, ftStr},
@@ -119,8 +119,8 @@ static const HttpHeaderFieldAttrs HeadersAttrs[] = {
     {"Public", HDR_PUBLIC, ftStr},
     {"Range", HDR_RANGE, ftPRange},
     {"Referer", HDR_REFERER, ftStr},
-    {"Request-Range", HDR_REQUEST_RANGE, ftPRange},    /* usually matches HDR_RANGE */
-    {"Retry-After", HDR_RETRY_AFTER, ftStr},   /* for now (ftDate_1123 or ftInt!) */
+    {"Request-Range", HDR_REQUEST_RANGE, ftPRange}, /* usually matches HDR_RANGE */
+    {"Retry-After", HDR_RETRY_AFTER, ftStr},    /* for now (ftDate_1123 or ftInt!) */
     {"Server", HDR_SERVER, ftStr},
     {"Set-Cookie", HDR_SET_COOKIE, ftStr},
     {"Set-Cookie2", HDR_SET_COOKIE2, ftStr},
@@ -128,13 +128,13 @@ static const HttpHeaderFieldAttrs HeadersAttrs[] = {
     {"Title", HDR_TITLE, ftStr},
     {"Trailer", HDR_TRAILER, ftStr},
     {"Transfer-Encoding", HDR_TRANSFER_ENCODING, ftStr},
-    {"Translate", HDR_TRANSLATE, ftStr},       /* for now. may need to crop */
+    {"Translate", HDR_TRANSLATE, ftStr},    /* for now. may need to crop */
     {"Unless-Modified-Since", HDR_UNLESS_MODIFIED_SINCE, ftStr},  /* for now ignore. may need to crop */
-    {"Upgrade", HDR_UPGRADE, ftStr},   /* for now */
+    {"Upgrade", HDR_UPGRADE, ftStr},    /* for now */
     {"User-Agent", HDR_USER_AGENT, ftStr},
-    {"Vary", HDR_VARY, ftStr}, /* for now */
-    {"Via", HDR_VIA, ftStr},   /* for now */
-    {"Warning", HDR_WARNING, ftStr},   /* for now */
+    {"Vary", HDR_VARY, ftStr},  /* for now */
+    {"Via", HDR_VIA, ftStr},    /* for now */
+    {"Warning", HDR_WARNING, ftStr},    /* for now */
     {"WWW-Authenticate", HDR_WWW_AUTHENTICATE, ftStr},
     {"Authentication-Info", HDR_AUTHENTICATION_INFO, ftStr},
     {"X-Cache", HDR_X_CACHE, ftStr},
@@ -156,7 +156,7 @@ static const HttpHeaderFieldAttrs HeadersAttrs[] = {
     {"FTP-Pre", HDR_FTP_PRE, ftStr},
     {"FTP-Status", HDR_FTP_STATUS, ftInt},
     {"FTP-Reason", HDR_FTP_REASON, ftStr},
-    {"Other:", HDR_OTHER, ftStr}       /* ':' will not allow matches */
+    {"Other:", HDR_OTHER, ftStr}    /* ':' will not allow matches */
 };
 
 static HttpHeaderFieldInfo *Headers = NULL;
@@ -172,7 +172,7 @@ http_hdr_type &operator++ (http_hdr_type &aHeader)
  * headers with field values defined as #(values) in HTTP/1.1
  * Headers that are currently not recognized, are commented out.
  */
-static HttpHeaderMask ListHeadersMask; /* set run-time using  ListHeadersArr */
+static HttpHeaderMask ListHeadersMask;  /* set run-time using  ListHeadersArr */
 static http_hdr_type ListHeadersArr[] = {
     HDR_ACCEPT,
     HDR_ACCEPT_CHARSET,
@@ -248,7 +248,7 @@ static http_hdr_type EntityHeadersArr[] = {
 };
 
 /* request-only headers */
-static HttpHeaderMask RequestHeadersMask;      /* set run-time using RequestHeaders */
+static HttpHeaderMask RequestHeadersMask;   /* set run-time using RequestHeaders */
 static http_hdr_type RequestHeadersArr[] = {
     HDR_ACCEPT,
     HDR_ACCEPT_CHARSET,
@@ -276,7 +276,7 @@ static http_hdr_type RequestHeadersArr[] = {
 };
 
 /* reply-only headers */
-static HttpHeaderMask ReplyHeadersMask;                /* set run-time using ReplyHeaders */
+static HttpHeaderMask ReplyHeadersMask;     /* set run-time using ReplyHeaders */
 static http_hdr_type ReplyHeadersArr[] = {
     HDR_ACCEPT_ENCODING,
     HDR_ACCEPT_RANGES,
@@ -426,7 +426,7 @@ httpHeaderStatInit(HttpHeaderStat * hs, const char *label)
     assert(label);
     memset(hs, 0, sizeof(HttpHeaderStat));
     hs->label = label;
-    hs->hdrUCountDistr.enumInit(32);   /* not a real enum */
+    hs->hdrUCountDistr.enumInit(32);    /* not a real enum */
     hs->fieldTypeDistr.enumInit(HDR_ENUM_END);
     hs->ccTypeDistr.enumInit(CC_ENUM_END);
     hs->scTypeDistr.enumInit(SC_ENUM_END);
@@ -623,10 +623,10 @@ HttpHeader::parse(const char *header_start, size_t hdrLen)
 
             field_end = field_ptr;
 
-            ++field_ptr;       /* Move to next line */
+            ++field_ptr;    /* Move to next line */
 
             if (field_end > this_line && field_end[-1] == '\r') {
-                --field_end;   /* Ignore CR LF */
+                --field_end;    /* Ignore CR LF */
 
                 if (owner == hoRequest && field_end > this_line) {
                     bool cr_only = true;
@@ -650,7 +650,7 @@ HttpHeader::parse(const char *header_start, size_t hdrLen)
                        getStringPrefix(field_start, field_end-field_start) << "}");
 
                 if (Config.onoff.relaxed_header_parser) {
-                    char *p = (char *) this_line;      /* XXX Warning! This destroys original header content and violates specifications somewhat */
+                    char *p = (char *) this_line;   /* XXX Warning! This destroys original header content and violates specifications somewhat */
 
                     while ((p = (char *)memchr(p, '\r', field_end - p)) != NULL) {
                         *p = ' ';
@@ -678,7 +678,7 @@ HttpHeader::parse(const char *header_start, size_t hdrLen)
                 return reset();
             }
 
-            break;             /* terminating blank line */
+            break;      /* terminating blank line */
         }
 
         if ((e = HttpHeaderEntry::parse(field_start, field_end)) == NULL) {
@@ -750,7 +750,7 @@ HttpHeader::parse(const char *header_start, size_t hdrLen)
     }
 
     PROF_stop(HttpHeaderParse);
-    return 1;                  /* even if no fields where found, it is a valid header */
+    return 1;           /* even if no fields where found, it is a valid header */
 }
 
 /* packs all the entries using supplied packer */
@@ -839,7 +839,7 @@ HttpHeader::findEntry(http_hdr_type id) const
     /* hm.. we thought it was there, but it was not found */
     assert(0);
 
-    return NULL;               /* not reached */
+    return NULL;        /* not reached */
 }
 
 /*
@@ -865,7 +865,7 @@ HttpHeader::findLastEntry(http_hdr_type id) const
             result = e;
     }
 
-    assert(result);            /* must be there! */
+    assert(result);     /* must be there! */
     return result;
 }
 
@@ -878,7 +878,7 @@ HttpHeader::delByName(const char *name)
     int count = 0;
     HttpHeaderPos pos = HttpHeaderInitPos;
     HttpHeaderEntry *e;
-    httpHeaderMaskInit(&mask, 0);      /* temporal inconsistency */
+    httpHeaderMaskInit(&mask, 0);   /* temporal inconsistency */
     debugs(55, 9, "deleting '" << name << "' fields in hdr " << this);
 
     while ((e = getEntry(&pos))) {
@@ -900,7 +900,7 @@ HttpHeader::delById(http_hdr_type id)
     HttpHeaderEntry *e;
     debugs(55, 8, this << " del-by-id " << id);
     assert_eid(id);
-    assert(id != HDR_OTHER);           /* does not make sense */
+    assert(id != HDR_OTHER);        /* does not make sense */
 
     if (!CBIT_TEST(mask, id))
         return 0;
@@ -1199,7 +1199,7 @@ void
 HttpHeader::putInt(http_hdr_type id, int number)
 {
     assert_eid(id);
-    assert(Headers[id].type == ftInt); /* must be of an appropriate type */
+    assert(Headers[id].type == ftInt);  /* must be of an appropriate type */
     assert(number >= 0);
     addEntry(new HttpHeaderEntry(id, NULL, xitoa(number)));
 }
@@ -1208,7 +1208,7 @@ void
 HttpHeader::putInt64(http_hdr_type id, int64_t number)
 {
     assert_eid(id);
-    assert(Headers[id].type == ftInt64);       /* must be of an appropriate type */
+    assert(Headers[id].type == ftInt64);    /* must be of an appropriate type */
     assert(number >= 0);
     addEntry(new HttpHeaderEntry(id, NULL, xint64toa(number)));
 }
@@ -1217,7 +1217,7 @@ void
 HttpHeader::putTime(http_hdr_type id, time_t htime)
 {
     assert_eid(id);
-    assert(Headers[id].type == ftDate_1123);   /* must be of an appropriate type */
+    assert(Headers[id].type == ftDate_1123);    /* must be of an appropriate type */
     assert(htime >= 0);
     addEntry(new HttpHeaderEntry(id, NULL, mkrfc1123(htime)));
 }
@@ -1226,7 +1226,7 @@ void
 HttpHeader::insertTime(http_hdr_type id, time_t htime)
 {
     assert_eid(id);
-    assert(Headers[id].type == ftDate_1123);   /* must be of an appropriate type */
+    assert(Headers[id].type == ftDate_1123);    /* must be of an appropriate type */
     assert(htime >= 0);
     insertEntry(new HttpHeaderEntry(id, NULL, mkrfc1123(htime)));
 }
@@ -1235,7 +1235,7 @@ void
 HttpHeader::putStr(http_hdr_type id, const char *str)
 {
     assert_eid(id);
-    assert(Headers[id].type == ftStr); /* must be of an appropriate type */
+    assert(Headers[id].type == ftStr);  /* must be of an appropriate type */
     assert(str);
     addEntry(new HttpHeaderEntry(id, NULL, str));
 }
@@ -1344,7 +1344,7 @@ int
 HttpHeader::getInt(http_hdr_type id) const
 {
     assert_eid(id);
-    assert(Headers[id].type == ftInt); /* must be of an appropriate type */
+    assert(Headers[id].type == ftInt);  /* must be of an appropriate type */
     HttpHeaderEntry *e;
 
     if ((e = findEntry(id)))
@@ -1357,7 +1357,7 @@ int64_t
 HttpHeader::getInt64(http_hdr_type id) const
 {
     assert_eid(id);
-    assert(Headers[id].type == ftInt64);       /* must be of an appropriate type */
+    assert(Headers[id].type == ftInt64);    /* must be of an appropriate type */
     HttpHeaderEntry *e;
 
     if ((e = findEntry(id)))
@@ -1372,7 +1372,7 @@ HttpHeader::getTime(http_hdr_type id) const
     HttpHeaderEntry *e;
     time_t value = -1;
     assert_eid(id);
-    assert(Headers[id].type == ftDate_1123);   /* must be of an appropriate type */
+    assert(Headers[id].type == ftDate_1123);    /* must be of an appropriate type */
 
     if ((e = findEntry(id))) {
         value = parse_rfc1123(e->value.termedBuf());
@@ -1388,10 +1388,10 @@ HttpHeader::getStr(http_hdr_type id) const
 {
     HttpHeaderEntry *e;
     assert_eid(id);
-    assert(Headers[id].type == ftStr); /* must be of an appropriate type */
+    assert(Headers[id].type == ftStr);  /* must be of an appropriate type */
 
     if ((e = findEntry(id))) {
-        httpHeaderNoteParsedEntry(e->id, e->value, 0); /* no errors are possible */
+        httpHeaderNoteParsedEntry(e->id, e->value, 0);  /* no errors are possible */
         return e->value.termedBuf();
     }
 
@@ -1404,10 +1404,10 @@ HttpHeader::getLastStr(http_hdr_type id) const
 {
     HttpHeaderEntry *e;
     assert_eid(id);
-    assert(Headers[id].type == ftStr); /* must be of an appropriate type */
+    assert(Headers[id].type == ftStr);  /* must be of an appropriate type */
 
     if ((e = findLastEntry(id))) {
-        httpHeaderNoteParsedEntry(e->id, e->value, 0); /* no errors are possible */
+        httpHeaderNoteParsedEntry(e->id, e->value, 0);  /* no errors are possible */
         return e->value.termedBuf();
     }
 
@@ -1506,23 +1506,23 @@ HttpHeader::getAuth(http_hdr_type id, const char *auth_scheme) const
     assert(auth_scheme);
     field = getStr(id);
 
-    if (!field)                        /* no authorization field */
+    if (!field)         /* no authorization field */
         return NULL;
 
     l = strlen(auth_scheme);
 
-    if (!l || strncasecmp(field, auth_scheme, l))      /* wrong scheme */
+    if (!l || strncasecmp(field, auth_scheme, l))   /* wrong scheme */
         return NULL;
 
     field += l;
 
-    if (!xisspace(*field))     /* wrong scheme */
+    if (!xisspace(*field))  /* wrong scheme */
         return NULL;
 
     /* skip white space */
     for (; field && xisspace(*field); ++field);
 
-    if (!*field)               /* no authorization cookie */
+    if (!*field)        /* no authorization cookie */
         return NULL;
 
     static char decodedAuthToken[8192];
@@ -1536,7 +1536,7 @@ HttpHeader::getETag(http_hdr_type id) const
 {
     ETag etag = {NULL, -1};
     HttpHeaderEntry *e;
-    assert(Headers[id].type == ftETag);                /* must be of an appropriate type */
+    assert(Headers[id].type == ftETag);     /* must be of an appropriate type */
 
     if ((e = findEntry(id)))
         etagParseInit(&etag, e->value.termedBuf());
@@ -1549,7 +1549,7 @@ HttpHeader::getTimeOrTag(http_hdr_type id) const
 {
     TimeOrTag tot;
     HttpHeaderEntry *e;
-    assert(Headers[id].type == ftDate_1123_or_ETag);   /* must be of an appropriate type */
+    assert(Headers[id].type == ftDate_1123_or_ETag);    /* must be of an appropriate type */
     memset(&tot, 0, sizeof(tot));
 
     if ((e = findEntry(id))) {
@@ -1567,7 +1567,7 @@ HttpHeader::getTimeOrTag(http_hdr_type id) const
         }
     }
 
-    assert(tot.time < 0 || !tot.tag.str);      /* paranoid */
+    assert(tot.time < 0 || !tot.tag.str);   /* paranoid */
     return tot;
 }
 
@@ -1617,7 +1617,7 @@ HttpHeaderEntry::parse(const char *field_start, const char *field_end)
     /* note: name_start == field_start */
     const char *name_end = (const char *)memchr(field_start, ':', field_end - field_start);
     int name_len = name_end ? name_end - field_start :0;
-    const char *value_start = field_start + name_len + 1;      /* skip ':' */
+    const char *value_start = field_start + name_len + 1;   /* skip ':' */
     /* note: value_end == field_end */
 
     ++ HeaderEntryParsedCount;
@@ -1753,7 +1753,7 @@ httpHeaderNoteParsedEntry(http_hdr_type id, String const &context, int error)
  */
 
 /* tmp variable used to pass stat info to dumpers */
-extern const HttpHeaderStat *dump_stat;                /* argh! */
+extern const HttpHeaderStat *dump_stat;     /* argh! */
 const HttpHeaderStat *dump_stat = NULL;
 
 void
@@ -1979,3 +1979,4 @@ HttpHeader::removeConnectionHeaderEntries()
             refreshMask();
     }
 }
+
index 63659fdcb52b05bc685b5d05642f46e819da4c82..9e0e0a16102d0745455915de159da5980b74ca5a 100644 (file)
@@ -28,7 +28,7 @@ class SBuf;
 
 /** possible types for http header fields */
 typedef enum {
-    ftInvalid = HDR_ENUM_END,  /**< to catch nasty errors with hdr_id<->fld_type clashes */
+    ftInvalid = HDR_ENUM_END,   /**< to catch nasty errors with hdr_id<->fld_type clashes */
     ftInt,
     ftInt64,
     ftStr,
@@ -157,10 +157,10 @@ public:
     inline bool chunked() const; ///< whether message uses chunked Transfer-Encoding
 
     /* protected, do not use these, use interface functions instead */
-    std::vector<HttpHeaderEntry *> entries;            /**< parsed fields in raw format */
-    HttpHeaderMask mask;       /**< bit set <=> entry present */
-    http_hdr_owner_type owner; /**< request or reply */
-    int len;                   /**< length when packed, not counting terminating null-byte */
+    std::vector<HttpHeaderEntry *> entries;     /**< parsed fields in raw format */
+    HttpHeaderMask mask;    /**< bit set <=> entry present */
+    http_hdr_owner_type owner;  /**< request or reply */
+    int len;            /**< length when packed, not counting terminating null-byte */
 
 protected:
     /** \deprecated Public access replaced by removeHopByHopEntries() */
@@ -190,3 +190,4 @@ void httpHeaderInitModule(void);
 void httpHeaderCleanModule(void);
 
 #endif /* SQUID_HTTPHEADER_H */
+
index 58287591dfc7810ad967db7d7bcd04cb214b59be..2191d97d0cf2452b519d1e36544f6ebc67731573 100644 (file)
@@ -25,3 +25,4 @@ public:
 };
 
 #endif /* SQUID_HTTPHEADERFIELDINFO_H_ */
+
index d304e81044ed4d23866393d586e22c4b69418908..74931942a7fd42f64fc3c46e29bf15c34d88126d 100644 (file)
@@ -23,3 +23,4 @@ public:
 };
 
 #endif /* SQUID_HTTPHEADERFIELDSTAT_H_ */
+
index 608d428ce69a50cb46456234f8b5c7719f2d6efb..54324b210e433e0d0acbf5249f6774e89c415ceb 100644 (file)
@@ -15,3 +15,4 @@ typedef char HttpHeaderMask[12];
 void httpHeaderMaskInit(HttpHeaderMask * mask, int value);
 
 #endif /* SQUID_HTTPHEADERMASK_H */
+
index 482a21ec413378f4854f84627edb0e6031511a35..751d6095e5e3abb09138150081ca9206df13d10a 100644 (file)
@@ -99,9 +99,10 @@ public:
     void updateSpec();
     int64_t debt() const;
     void debt(int64_t);
-    int64_t debt_size;         /* bytes left to send from the current spec */
-    String boundary;           /* boundary for multipart responses */
+    int64_t debt_size;      /* bytes left to send from the current spec */
+    String boundary;        /* boundary for multipart responses */
     bool valid;
 };
 
 #endif /* SQUID_HTTPHEADERRANGE_H */
+
index c8326dd8aafee06ac3ef7eda64188fb4348b8620..e441efd4983a32e1fa325475f521e3f60c51e62e 100644 (file)
@@ -31,3 +31,4 @@ public:
 };
 
 #endif /* HTTPHEADERSTAT_H_ */
+
index 4d19e65d530297c524bf95775750a075b9f7abf6..681a24d69e7f9e98f27d245aa7f376d9fa4c2c61 100644 (file)
@@ -54,7 +54,7 @@ httpHeaderBuildFieldsInfo(const HttpHeaderFieldAttrs * attrs, int count)
         /* sanity checks */
         assert(id >= 0 && id < count);
         assert(attrs[i].name);
-        assert(info->id == HDR_ACCEPT && info->type == ftInvalid);     /* was not set before */
+        assert(info->id == HDR_ACCEPT && info->type == ftInvalid);  /* was not set before */
         /* copy and init fields */
         info->id = id;
         info->type = attrs[i].type;
@@ -89,10 +89,10 @@ httpHeaderCalcMask(HttpHeaderMask * mask, http_hdr_type http_hdr_type_enums[], s
     size_t i;
     const int * enums = (const int *) http_hdr_type_enums;
     assert(mask && enums);
-    assert(count < sizeof(*mask) * 8); /* check for overflow */
+    assert(count < sizeof(*mask) * 8);  /* check for overflow */
 
     for (i = 0; i < count; ++i) {
-        assert(!CBIT_TEST(*mask, enums[i]));   /* check for duplicates */
+        assert(!CBIT_TEST(*mask, enums[i]));    /* check for duplicates */
         CBIT_SET(*mask, enums[i]);
     }
 }
@@ -192,7 +192,7 @@ httpHeaderParseOffset(const char *start, int64_t * value)
 {
     errno = 0;
     int64_t res = strtoll(start, NULL, 10);
-    if (!res && EINVAL == errno)       /* maybe not portable? */
+    if (!res && EINVAL == errno)    /* maybe not portable? */
         return 0;
     *value = res;
     return 1;
@@ -545,3 +545,4 @@ httpHdrAdd(HttpHeader *heads, HttpRequest *request, const AccessLogEntryPointer
         }
     }
 }
+
index e39c4f179c4f1c1a746aa7fdec9ae1288bdb7faa..514f046cc41132b43a94f12c069557b0702b58ba 100644 (file)
@@ -129,3 +129,4 @@ const char *getStringPrefix(const char *str, size_t len);
 void httpHdrMangleList(HttpHeader *, HttpRequest *, int req_or_rep);
 
 #endif
+
index 7094447e23d05189284fc1f9415bb0a746b796c8..8bf77337d2d817e8f39f7caa80adcc2b9b4cb777 100644 (file)
 #include "SquidConfig.h"
 
 HttpMsg::HttpMsg(http_hdr_owner_type owner):
-        http_ver(Http::ProtocolVersion()),
-        header(owner),
-        cache_control(NULL),
-        hdr_sz(0),
-        content_length(0),
-        pstate(psReadyToParseStartLine)
+    http_ver(Http::ProtocolVersion()),
+    header(owner),
+    cache_control(NULL),
+    hdr_sz(0),
+    content_length(0),
+    pstate(psReadyToParseStartLine)
 {}
 
 HttpMsg::~HttpMsg()
@@ -73,7 +73,7 @@ httpMsgIsolateHeaders(const char **parse_start, int l, const char **blk_start, c
      * NOT point to a CR or NL character, then return failure
      */
     if (**parse_start != '\r' && **parse_start != '\n')
-        return 0;              /* failure */
+        return 0;       /* failure */
 
     /*
      * If we didn't find the end of headers, and parse_start does point
@@ -340,3 +340,4 @@ void HttpMsg::firstLineBuf(MemBuf& mb)
     packFirstLineInto(&p, true);
     packerClean(&p);
 }
+
index 1e222d9978dabba15cd58e8db9e7b710042a928b..ba9f87fa1bba08febd1dbeb976887df3fa24b733 100644 (file)
@@ -102,3 +102,4 @@ protected:
 #define HTTPMSGLOCK(a) (a)->lock()
 
 #endif /* SQUID_HTTPMSG_H */
+
index 7552d1f9a0de972893f258f5d7f65abace55d92a..2301ec8ea60dda700f895375af1adc6d2282c0c5 100644 (file)
@@ -59,8 +59,8 @@ httpReplyInitModule(void)
 }
 
 HttpReply::HttpReply() : HttpMsg(hoReply), date (0), last_modified (0),
-        expires (0), surrogate_control (NULL), content_range (NULL), keep_alive (0),
-        protoPrefix("HTTP/"), bodySizeMax(-2)
+    expires (0), surrogate_control (NULL), content_range (NULL), keep_alive (0),
+    protoPrefix("HTTP/"), bodySizeMax(-2)
 {
     init();
 }
@@ -198,7 +198,7 @@ HttpReply::setHeaders(Http::StatusCode status, const char *reason,
     if (expiresTime >= 0)
         hdr->putTime(HDR_EXPIRES, expiresTime);
 
-    if (lmt > 0)               /* this used to be lmt != 0 @?@ */
+    if (lmt > 0)        /* this used to be lmt != 0 @?@ */
         hdr->putTime(HDR_LAST_MODIFIED, lmt);
 
     date = squid_curtime;
@@ -393,7 +393,7 @@ HttpReply::bodySize(const HttpRequestMethod& method) const
     else if (method.id() == Http::METHOD_HEAD)
         return 0;
     else if (sline.status() == Http::scOkay)
-        (void) 0;              /* common case, continue */
+        (void) 0;       /* common case, continue */
     else if (sline.status() == Http::scNoContent)
         return 0;
     else if (sline.status() == Http::scNotModified)
@@ -657,3 +657,4 @@ String HttpReply::removeStaleWarningValues(const String &value)
 
     return newValue;
 }
+
index 93aca6615a7c185919444d021c10fcb55490f341..00a829255afdee47960b4d23a61b0d88ac97e71d 100644 (file)
@@ -59,7 +59,7 @@ public:
     /** \par public, writable, but use httpReply* interfaces when possible */
     Http::StatusLine sline;
 
-    HttpBody body;             /**< for small constant memory-resident text bodies only */
+    HttpBody body;      /**< for small constant memory-resident text bodies only */
 
     String protoPrefix;         /**< e.g., "HTTP/"  */
 
@@ -145,3 +145,4 @@ protected:
 };
 
 #endif /* SQUID_HTTPREPLY_H */
+
index df92ff28def7dc25bfe3d508a6c0be9d235f575f..851b1aee482660abde081683da080634835b9ffc 100644 (file)
 #endif
 
 HttpRequest::HttpRequest() :
-        HttpMsg(hoRequest)
+    HttpMsg(hoRequest)
 {
     init();
 }
 
 HttpRequest::HttpRequest(const HttpRequestMethod& aMethod, AnyP::ProtocolType aProtocol, const char *aUrlpath) :
-        HttpMsg(hoRequest)
+    HttpMsg(hoRequest)
 {
     static unsigned int id = 1;
     debugs(93,7, HERE << "constructed, this=" << this << " id=" << ++id);
@@ -89,8 +89,8 @@ HttpRequest::init()
     dnsWait = -1;
     errType = ERR_NONE;
     errDetail = ERR_DETAIL_NONE;
-    peer_login = NULL;         // not allocated/deallocated by this class
-    peer_domain = NULL;                // not allocated/deallocated by this class
+    peer_login = NULL;      // not allocated/deallocated by this class
+    peer_domain = NULL;     // not allocated/deallocated by this class
     peer_host = NULL;
     vary_headers = NULL;
     myportname = null_string;
@@ -599,7 +599,7 @@ HttpRequest::maybeCacheable()
     case AnyP::PROTO_CACHE_OBJECT:
         return false;
 
-        //case AnyP::PROTO_FTP:
+    //case AnyP::PROTO_FTP:
     default:
         break;
     }
@@ -699,3 +699,4 @@ HttpRequest::storeId()
 
     return urlCanonical(this);
 }
+
index 0df54cf1cc7dad190be5b116e30b1b4c2340287b..de12e77907eae4e3d4be035df6ddb51275a4879c 100644 (file)
@@ -171,29 +171,29 @@ public:
     err_type errType;
     int errDetail; ///< errType-specific detail about the transaction error
 
-    char *peer_login;          /* Configured peer login:password */
+    char *peer_login;       /* Configured peer login:password */
 
     char *peer_host;           /* Selected peer host*/
 
-    time_t lastmod;            /* Used on refreshes */
+    time_t lastmod;     /* Used on refreshes */
 
-    const char *vary_headers;  /* Used when varying entities are detected. Changes how the store key is calculated */
+    const char *vary_headers;   /* Used when varying entities are detected. Changes how the store key is calculated */
 
-    char *peer_domain;         /* Configured peer forceddomain */
+    char *peer_domain;      /* Configured peer forceddomain */
 
     String myportname; // Internal tag name= value from port this requests arrived in.
 
     NotePairs::Pointer notes; ///< annotations added by the note directive and helpers
 
-    String tag;                        /* Internal tag for this request */
+    String tag;         /* Internal tag for this request */
 
-    String extacl_user;                /* User name returned by extacl lookup */
+    String extacl_user;     /* User name returned by extacl lookup */
 
-    String extacl_passwd;      /* Password returned by extacl lookup */
+    String extacl_passwd;   /* Password returned by extacl lookup */
 
-    String extacl_log;         /* String to be used for access.log purposes */
+    String extacl_log;      /* String to be used for access.log purposes */
 
-    String extacl_message;     /* String to be used for error page purposes */
+    String extacl_message;  /* String to be used for error page purposes */
 
 #if FOLLOW_X_FORWARDED_FOR
     String x_forwarded_for_iterator; /* XXX a list of IP addresses */
@@ -265,3 +265,4 @@ protected:
 };
 
 #endif /* SQUID_HTTPREQUEST_H */
+
index a3e5ce98ec2419171afac01501577e4c22303865..c8c7be057a4eba58ee3b569755c10fdec5387148 100644 (file)
@@ -31,3 +31,4 @@ public:
 };
 
 #endif /* SQUID_HTTPSTATEFLAGS_H_ */
+
index 85ba4a133ac6d77def9c6a45708bbc7147c2b017..d2520ae028b6a17c2e594adeec5a03df5b86cdb4 100644 (file)
--- a/src/ICP.h
+++ b/src/ICP.h
@@ -44,7 +44,7 @@ struct _icp_common_t {
     uint32_t shostid;
 
 /// \todo I don't believe this header is included in non-c++ code anywhere
-///            the struct should become a public POD class and kill these ifdef.
+///     the struct should become a public POD class and kill these ifdef.
 #ifdef __cplusplus
 
     _icp_common_t();
@@ -159,3 +159,4 @@ int icpSetCacheKey(const cache_key * key);
 const cache_key *icpGetCacheKey(const char *url, int reqnum);
 
 #endif /* SQUID_ICP_H */
+
index 726bf2e2516a1c4208294222e2ca5b73c14054c3..10cf70c28ae92cfeecd4ac82e1a88ff263f1dc55 100644 (file)
@@ -26,3 +26,4 @@ public:
 };
 
 #endif /* SQUID_IOSTATS_H_ */
+
index 701d7e565b91e22d494551619ab88833a2668700..0c7aaee3d25ada1842bd05148fa02ac66de2aee5 100644 (file)
@@ -23,9 +23,9 @@
 /* ========================================================================= */
 
 LeakFinderPtr::LeakFinderPtr(void *p , const char *f, const int l) :
-        file(f),
-        line(l),
-        when(squid_curtime)
+    file(f),
+    line(l),
+    when(squid_curtime)
 {
     // XXX: these bits should be done by hash_link()
     key = p;
@@ -35,8 +35,8 @@ LeakFinderPtr::LeakFinderPtr(void *p , const char *f, const int l) :
 /* ========================================================================= */
 
 LeakFinder::LeakFinder() :
-        count(0),
-        last_dump(0)
+    count(0),
+    last_dump(0)
 {
     debugs(45, 3, "LeakFinder constructed");
     table = hash_create(cmp, 1 << 8, hash);
@@ -123,3 +123,4 @@ LeakFinder::dump()
 }
 
 #endif /* USE_LEAKFINDER */
+
index 2ea08bdcad093e3f87848df2182882bacc9ae374..61e7b8a228b8bf12bfcd928e08434afa70cc79ce 100644 (file)
@@ -65,3 +65,4 @@ class LeakFinder {};
 #endif /* USE_LEAKFINDER */
 
 #endif /* SQUID_LEAKFINDER_H */
+
index 120cb6c89c5fa06912ca9bc7a7ea2c596d7c3b99..868d5f14804c82a14c85082808dd0f888a582883 100644 (file)
 
 LoadableModule::LoadableModule(const String &aName): theName(aName), theHandle(0)
 {
-#      if XSTD_USE_LIBLTDL
+#   if XSTD_USE_LIBLTDL
     // Initialise preloaded symbol lookup table.
     LTDL_SET_PRELOADED_SYMBOLS();
     if (lt_dlinit() != 0)
         throw TexcHere("internal error: cannot initialize libtool module loader");
-#      endif
+#   endif
 }
 
 LoadableModule::~LoadableModule()
 {
     if (loaded())
         unload();
-#      if XSTD_USE_LIBLTDL
+#   if XSTD_USE_LIBLTDL
     assert(lt_dlexit() == 0); // XXX: replace with a warning
-#      endif
+#   endif
 }
 
 bool LoadableModule::loaded() const
@@ -74,29 +74,30 @@ void LoadableModule::unload()
 
 void *LoadableModule::openModule(int mode)
 {
-#      if XSTD_USE_LIBLTDL
+#   if XSTD_USE_LIBLTDL
     return lt_dlopen(theName.termedBuf());
-#      else
+#   else
     return dlopen(theName.termedBuf(),
                   mode == lmNow ? RTLD_NOW : RTLD_LAZY);
-#      endif
+#   endif
 }
 
 bool LoadableModule::closeModule()
 {
-#      if XSTD_USE_LIBLTDL
+#   if XSTD_USE_LIBLTDL
     // we cast to avoid including ltdl.h in LoadableModule.h
     return lt_dlclose(static_cast<lt_dlhandle>(theHandle)) == 0;
-#      else
+#   else
     return dlclose(theHandle) == 0;
-#      endif
+#   endif
 }
 
 const char *LoadableModule::errorMsg()
 {
-#      if XSTD_USE_LIBLTDL
+#   if XSTD_USE_LIBLTDL
     return lt_dlerror();
-#      else
+#   else
     return dlerror();
-#      endif
+#   endif
 }
+
index 6ef2d3beef5f42f8bde3c28ae96e9f422fe8bcb8..f5a6c420df5c1ef333dcc92ac970819919815923 100644 (file)
@@ -40,3 +40,4 @@ private:
 };
 
 #endif
+
index c6d0917ebd654f468a4423fe513406efecae16b9..54f14a69405a49d232d4b125f972d17122c03d7b 100644 (file)
@@ -32,3 +32,4 @@ LoadableModulesConfigure(const wordlist *names)
         LoadModule(i->key);
     debugs(1, DBG_IMPORTANT, "Squid plugin modules loaded: " << count);
 }
+
index 18238b0165fb5723597b7090a64eaf387ab7dd7c..4ba6bf8b8361b9c1f115300919fa74ca747e1b2c 100644 (file)
@@ -16,3 +16,4 @@ class wordlist;
 void LoadableModulesConfigure(const wordlist *names);
 
 #endif /* SQUID_LOADABLE_MODULES_H */
+
index c489b35722355d147a6ef4f9ec853fb30ca95446..66018ba0f4b0e2323bb9ddcffbfd6aedd646ed4a 100644 (file)
@@ -69,3 +69,4 @@ inline LogTags &operator++ (LogTags &aLogType)
 }
 
 #endif
+
index 047fe384acd1f497885b8b44d6d60831670ade43..8c730ae16fb2b896d1dfe269e9fb6b891f20b9ee 100644 (file)
@@ -10,3 +10,4 @@
 #include "MasterXaction.h"
 
 InstanceIdDefinitions(MasterXaction, "MXID_");
+
index f27715f1b449ffe5c8a2ebf90521df0e2bb7cc4f..a814b9bfd24aad823f6f5eb1309a32c2417bd289 100644 (file)
@@ -51,3 +51,4 @@ public:
 };
 
 #endif /* SQUID_SRC_MASTERXACTION_H */
+
index 8b343276471229994db3d6e589211759de8a02e0..7b5e3d9e071ffee4c8555b5a333532ec94772252 100644 (file)
@@ -37,19 +37,19 @@ std::ostream&
 MemBlobStats::dump(std::ostream &os) const
 {
     os <<
-    "MemBlob created: " << alloc <<
-    "\nMemBlob alive: " << live <<
-    "\nMemBlob append calls: " << append <<
-    "\nMemBlob currently allocated size: " << liveBytes <<
-    "\nlive MemBlob mean current allocation size: " <<
-    (static_cast<double>(liveBytes)/(live?live:1)) << std::endl;
+       "MemBlob created: " << alloc <<
+       "\nMemBlob alive: " << live <<
+       "\nMemBlob append calls: " << append <<
+       "\nMemBlob currently allocated size: " << liveBytes <<
+       "\nlive MemBlob mean current allocation size: " <<
+       (static_cast<double>(liveBytes)/(live?live:1)) << std::endl;
     return os;
 }
 
 /* MemBlob */
 
 MemBlob::MemBlob(const MemBlob::size_type reserveSize) :
-        mem(NULL), capacity(0), size(0) // will be set by memAlloc
+    mem(NULL), capacity(0), size(0) // will be set by memAlloc
 {
     debugs(MEMBLOB_DEBUGSECTION,9, HERE << "constructed, this="
            << static_cast<void*>(this) << " id=" << id
@@ -58,7 +58,7 @@ MemBlob::MemBlob(const MemBlob::size_type reserveSize) :
 }
 
 MemBlob::MemBlob(const char *buffer, const MemBlob::size_type bufSize) :
-        mem(NULL), capacity(0), size(0) // will be set by memAlloc
+    mem(NULL), capacity(0), size(0) // will be set by memAlloc
 {
     debugs(MEMBLOB_DEBUGSECTION,9, HERE << "constructed, this="
            << static_cast<void*>(this) << " id=" << id
@@ -134,9 +134,10 @@ std::ostream&
 MemBlob::dump(std::ostream &os) const
 {
     os << "id @" << (void *)this
-    << "mem:" << static_cast<void*>(mem)
-    << ",capacity:" << capacity
-    << ",size:" << size
-    << ",refs:" << LockCount() << "; ";
+       << "mem:" << static_cast<void*>(mem)
+       << ",capacity:" << capacity
+       << ",size:" << size
+       << ",refs:" << LockCount() << "; ";
     return os;
 }
+
index 63b18802bdcce150e055a6d1dceee64ad3f3e16d..f0fb073798feb99c106002bd6515943f681089c2 100644 (file)
@@ -121,3 +121,4 @@ private:
 };
 
 #endif /* SQUID_MEMBLOB_H_ */
+
index 051b19e1636232868a62d628ee20a88bf7bbffcc..bde466313badbc3ca9bb16e3049d5120d25b6f71 100644 (file)
@@ -125,7 +125,7 @@ MemBuf::clean()
         // nothing to do
     } else {
         assert(buf);
-        assert(!stolen);       /* not frozen */
+        assert(!stolen);    /* not frozen */
 
         memFreeBuf(capacity, buf);
         buf = NULL;
@@ -143,7 +143,7 @@ MemBuf::reset()
     if (isNull()) {
         init();
     } else {
-        assert(!stolen);       /* not frozen */
+        assert(!stolen);    /* not frozen */
         /* reset */
         memset(buf, 0, capacity);
         size = 0;
@@ -157,9 +157,9 @@ int
 MemBuf::isNull()
 {
     if (!buf && !max_capacity && !capacity && !size)
-        return 1;              /* is null (not initialized) */
+        return 1;       /* is null (not initialized) */
 
-    assert(buf && max_capacity && capacity);   /* paranoid */
+    assert(buf && max_capacity && capacity);    /* paranoid */
 
     return 0;
 }
@@ -285,7 +285,7 @@ MemBuf::vPrintf(const char *fmt, va_list vargs)
     int sz = 0;
     assert(fmt);
     assert(buf);
-    assert(!stolen);   /* not frozen */
+    assert(!stolen);    /* not frozen */
     /* assert in Grow should quit first, but we do not want to have a scary infinite loop */
 
     while (capacity <= max_capacity) {
@@ -339,10 +339,10 @@ MemBuf::freeFunc()
 {
     FREE *ff;
     assert(buf);
-    assert(!stolen);   /* not frozen */
+    assert(!stolen);    /* not frozen */
 
     ff = memFreeBufFunc((size_t) capacity);
-    stolen = 1;                /* freeze */
+    stolen = 1;     /* freeze */
     return ff;
 }
 
@@ -366,7 +366,7 @@ MemBuf::grow(mb_size_t min_cap)
         new_cap = 64 * 1024;
 
         while (new_cap < (size_t) min_cap)
-            new_cap += 64 * 1024;      /* increase in reasonable steps */
+            new_cap += 64 * 1024;   /* increase in reasonable steps */
     } else {
         new_cap = (size_t) min_cap;
     }
@@ -375,9 +375,9 @@ MemBuf::grow(mb_size_t min_cap)
     if (new_cap > (size_t) max_capacity)
         new_cap = (size_t) max_capacity;
 
-    assert(new_cap <= (size_t) max_capacity);  /* no overflow */
+    assert(new_cap <= (size_t) max_capacity);   /* no overflow */
 
-    assert(new_cap > (size_t) capacity);       /* progress */
+    assert(new_cap > (size_t) capacity);    /* progress */
 
     buf_cap = (size_t) capacity;
 
@@ -399,3 +399,4 @@ memBufReport(MemBuf * mb)
     assert(mb);
     mb->Printf("memBufReport is not yet implemented @?@\n");
 }
+
index 337c53b4a36f2a00f9557228d7c5639d59176766..b37495a91c9f8bb49757429093715f6644c1f483 100644 (file)
@@ -44,8 +44,8 @@ public:
 
     /**
      * Whether the buffer contains any data.
-     \retval true      if data exists in the buffer
-     \retval false     if data exists in the buffer
+     \retval true   if data exists in the buffer
+     \retval false  if data exists in the buffer
      */
     bool hasContent() const { return size > 0; }
 
@@ -62,8 +62,8 @@ public:
 
     /**
      * Whether the buffer contains any data space available.
-     \retval true      if data can be added to the buffer
-     \retval false     if the buffer is full
+     \retval true   if data can be added to the buffer
+     \retval false  if the buffer is full
      */
     bool hasSpace() const { return size+1 < capacity; }
 
@@ -151,11 +151,11 @@ public:
      */
     mb_size_t capacity;
 
-    unsigned stolen:1;         /* the buffer has been stolen for use by someone else */
+    unsigned stolen:1;      /* the buffer has been stolen for use by someone else */
 
 #if 0
 
-    unsigned valid:1;          /* to be used for debugging only! */
+    unsigned valid:1;       /* to be used for debugging only! */
 #endif
 };
 
@@ -165,3 +165,4 @@ void memBufReport(MemBuf * mb);
 void packerToMemInit(Packer * p, MemBuf * mb);
 
 #endif /* SQUID_MEMBUF_H */
+
index f4cd481b670d2645a1bf6feaac887adac8bb9a1a..be689b27f0953e2822262d465521cb3b627cf314 100644 (file)
@@ -403,7 +403,7 @@ MemObject::trimSwappable()
         new_mem_lo = on_disk - 1;
 
     if (new_mem_lo == -1)
-        new_mem_lo = 0;        /* the above might become -1 */
+        new_mem_lo = 0; /* the above might become -1 */
 
     data_hdr.freeDataUpto(new_mem_lo);
 
@@ -510,3 +510,4 @@ MemObject::availableForSwapOut() const
 {
     return endOffset() - swapout.queue_offset;
 }
+
index 44047966f4bdaaf5420cfaff84f78c57b98c46cf..a95345b38886ce0cf95a889aa56babb3bdfddb83 100644 (file)
@@ -185,3 +185,4 @@ private:
 extern RemovalPolicy *mem_policy;
 
 #endif /* SQUID_MEMOBJECT_H */
+
index b6c3394f5db2e67e1289d41f2a4d564ba29bf268..ae9d55f48fb59f904fd3b3a8ce726099d4bf873b 100644 (file)
@@ -235,7 +235,7 @@ MemStore::anchorCollapsed(StoreEntry &collapsed, bool &inSync)
 
     sfileno index;
     const Ipc::StoreMapAnchor *const slot = map->openForReading(
-                                                reinterpret_cast<cache_key*>(collapsed.key), index);
+            reinterpret_cast<cache_key*>(collapsed.key), index);
     if (!slot)
         return false;
 
@@ -853,3 +853,4 @@ MemStoreRr::~MemStoreRr()
     delete mapOwner;
     delete spaceOwner;
 }
+
index 6683ad9bfea9aa30cb03b63d0bf2dde4e49224a5..f1375b1641f8e7cf646fcece36ec96bea1d5d991 100644 (file)
@@ -113,3 +113,4 @@ private:
 // would hurt because we can support synchronous get/put, unlike the disks.
 
 #endif /* SQUID_MEMSTORE_H */
+
index 7646dd8193bdb4c2ca00701d0981247b340f5cf8..0f7b1026db5bb50bfb31d46cee830496fdd7fab0 100644 (file)
@@ -30,3 +30,4 @@ public:
 };
 
 #endif  /* SQUID_SRC_MESSAGESIZES_H */
+
index 95ac0c8a86a1dca1f25180446b0675d54027a8e4..75fcc2dad6af119a898d2895a7c7e03d16239399 100644 (file)
@@ -19,3 +19,4 @@ public:
 };
 
 #endif /* SQUID_NEIGHBORTYPEDOMAINLIST_H_ */
+
index 1dc77657bf920c0815f4d53ea9731d8f01a7e799..b1649e24f7a2627d6697c9eb95cd0c68843653e3 100644 (file)
@@ -274,3 +274,4 @@ UpdateRequestNotes(ConnStateData *csd, HttpRequest &request, NotePairs const &he
         request.notes = new NotePairs;
     request.notes->replaceOrAdd(&helperNotes);
 }
+
index 9a292d442ce4a5af55a7b66c8f4fd0d5c387f8ec..e9599d605eeb734138641fc232a80844ff81b55f 100644 (file)
@@ -200,7 +200,7 @@ public:
      */
     bool empty() const {return entries.empty();}
 
-    std::vector<NotePairs::Entry *> entries;     ///< The key/value pair entries
+    std::vector<NotePairs::Entry *> entries;      ///< The key/value pair entries
 
 private:
     NotePairs &operator = (NotePairs const &); // Not implemented
@@ -219,3 +219,4 @@ class ConnStateData;
  */
 void UpdateRequestNotes(ConnStateData *csd, HttpRequest &request, NotePairs const &notes);
 #endif
+
index 3e66b1ab49c2c249b4cd0d1129146ea0ee8c0a96..81f0cbbeaabe2d438103129507969d3f8e7a8a3f 100644 (file)
@@ -29,3 +29,4 @@ NullDelayId::operator delete (void *address)
 }
 
 #endif /* USE_DELAY_POOLS */
+
index 3b54a561e010e176ed3a78d387a3bd2cd5a553f5..0aafe4265a19894f1329e910dc35b412835e70df 100644 (file)
@@ -27,3 +27,4 @@ public:
 };
 #endif
 #endif /* NULLDELAYID_H */
+
index 8f1dd99768b0bffe32ad204afb9fbb14cd9b0a5c..651293a16398cfe65a357dab4ad94b6374384e1c 100644 (file)
@@ -28,3 +28,4 @@ protected:
 };
 
 #endif /* _SQUID_SRC_OUTOFBOUNDSEXCEPTION_H */
+
index a815fece5de5f846b906473a93aac44e0b294e27..125a267827bad0126ea5a35a7ff6d28543100f26 100644 (file)
@@ -138,3 +138,4 @@ packerPrintf(Packer * p, const char *fmt,...)
     p->packer_vprintf(p->real_handler, fmt, args);
     va_end(args);
 }
+
index e9ec163710279d2de8a4843e6e3c98a01386d852..31c7ac14400855bcb039631f436fa382d2cfdb79 100644 (file)
@@ -26,7 +26,7 @@ public:
     /* protected, use interface functions instead */
     append_f append;
     vprintf_f packer_vprintf;
-    void *real_handler;                /* first parameter to real append and vprintf */
+    void *real_handler;     /* first parameter to real append and vprintf */
 };
 
 void packerClean(Packer * p);
@@ -34,3 +34,4 @@ void packerAppend(Packer * p, const char *buf, int size);
 void packerPrintf(Packer * p, const char *fmt,...) PRINTF_FORMAT_ARG2;
 
 #endif /* SQUID_PACKER_H */
+
index 7a71bafb597a2a7f63a3ace783466cbe36fda348..bf56cf0036ee1c3b7903ee6658fda4f67580c03b 100644 (file)
@@ -290,3 +290,4 @@ GetHostWithPort(char *token, Ip::Address *ipa)
 
     return true;
 }
+
index f36320d1dd1ca95dd7957d25c186d29380d12c18..a1f44858b769fd48c9f587bf9dbca32bfe2fa024 100644 (file)
@@ -56,3 +56,4 @@ bool StringToInt64(const char *str, int64_t &result, const char **p, int base);
 bool GetHostWithPort(char *token, Ip::Address *ipa);
 
 #endif /* SQUID_PARSING_H */
+
index 6e2de11a3366471d2c1583495cde93103dce93c2..b2e539def7659df4e64058b21de6f81aaaafa340 100644 (file)
@@ -18,8 +18,8 @@
 class Version
 {
 public:
-    short int current;         /* current version */
-    short int required;                /* minimal version that can safely handle current version */
+    short int current;      /* current version */
+    short int required;     /* minimal version that can safely handle current version */
 };
 
 /* digest control block; used for transmission and storage */
@@ -86,14 +86,14 @@ public:
 
     struct {
         /* all times are absolute unless augmented with _delay */
-        time_t initialized;    /* creation */
-        time_t needed;         /* first lookup/use by a peer */
-        time_t next_check;     /* next scheduled check/refresh event */
-        time_t retry_delay;    /* delay before re-checking _invalid_ digest */
-        time_t requested;      /* requested a fresh copy of a digest */
-        time_t req_delay;      /* last request response time */
-        time_t received;       /* received the current copy of a digest */
-        time_t disabled;       /* disabled for good */
+        time_t initialized; /* creation */
+        time_t needed;      /* first lookup/use by a peer */
+        time_t next_check;  /* next scheduled check/refresh event */
+        time_t retry_delay; /* delay before re-checking _invalid_ digest */
+        time_t requested;   /* requested a fresh copy of a digest */
+        time_t req_delay;   /* last request response time */
+        time_t received;    /* received the current copy of a digest */
+        time_t disabled;    /* disabled for good */
     } times;
 
     struct {
@@ -117,3 +117,4 @@ void peerDigestStatsReport(const PeerDigest * pd, StoreEntry * e);
 #endif /* USE_CACHE_DIGESTS */
 
 #endif /* SQUID_PEERDIGEST_H */
+
index e64cd1a7e7445887794ec0f584115bf7c8ffae41..17da4184e5cb44f85d38eda63e27b2f82a6d262f 100644 (file)
@@ -31,11 +31,11 @@ CBDATA_CLASS_INIT(PeerPoolMgr);
 #if USE_OPENSSL
 /// Gives Ssl::PeerConnector access to Answer in the PeerPoolMgr callback dialer.
 class MyAnswerDialer: public UnaryMemFunT<PeerPoolMgr, Ssl::PeerConnectorAnswer, Ssl::PeerConnectorAnswer&>,
-        public Ssl::PeerConnector::CbDialer
+    public Ssl::PeerConnector::CbDialer
 {
 public:
     MyAnswerDialer(const JobPointer &aJob, Method aMethod):
-            UnaryMemFunT<PeerPoolMgr, Ssl::PeerConnectorAnswer, Ssl::PeerConnectorAnswer&>(aJob, aMethod, Ssl::PeerConnectorAnswer()) {}
+        UnaryMemFunT<PeerPoolMgr, Ssl::PeerConnectorAnswer, Ssl::PeerConnectorAnswer&>(aJob, aMethod, Ssl::PeerConnectorAnswer()) {}
 
     /* Ssl::PeerConnector::CbDialer API */
     virtual Ssl::PeerConnectorAnswer &answer() { return arg1; }
@@ -43,12 +43,12 @@ public:
 #endif
 
 PeerPoolMgr::PeerPoolMgr(CachePeer *aPeer): AsyncJob("PeerPoolMgr"),
-        peer(cbdataReference(aPeer)),
-        request(),
-        opener(),
-        securer(),
-        closer(),
-        addrUsed(0)
+    peer(cbdataReference(aPeer)),
+    request(),
+    opener(),
+    securer(),
+    closer(),
+    addrUsed(0)
 {
 }
 
@@ -297,3 +297,4 @@ PeerPoolMgrsRr::syncConfig()
         }
     }
 }
+
index 6fa33a7e32a28539e5646af6b34924e9ff13e68c..b78141d543c32ae35834e44476d01bdfb4413b6f 100644 (file)
@@ -75,3 +75,4 @@ private:
 };
 
 #endif /* SQUID_PEERPOOLMGR_H */
+
index d18b3e83a89c45003540189e9213113eb05a62a4..e6bab4d9fb63d9a8c0bc775205403ff208b00a4c 100644 (file)
@@ -90,3 +90,4 @@ public:
 };
 
 #endif /* SQUID_PEERSELECTSTATE_H */
+
index 29c4cd1fad12a4614792700b6220d9325854b667..565cabc4f86a04374c4b782cf9d64ab53a1da8b1 100644 (file)
@@ -21,10 +21,11 @@ public:
     int n_sent;
     int n_recv;
     int n_replies_expected;
-    int timeout;               /* msec */
+    int timeout;        /* msec */
     int timedout;
     int w_rtt;
     int p_rtt;
 };
 
 #endif /* SQUID_PINGDATA_H */
+
index 1a80ca9ccf20beb5f1b3f85565bda55ccf1d35e5..cbf0b55181024dbe0d3e03d166820152005f462c 100644 (file)
@@ -172,7 +172,7 @@ xprof_average(TimersArray ** list, int secs)
     for (i = 0; i < XPROF_LAST; ++i) {
         hist[i]->name = head[i]->name;
         hist[i]->accu.summ += head[i]->accu.summ;
-        hist[i]->accu.count += head[i]->accu.count;    /* accumulate multisec */
+        hist[i]->accu.count += head[i]->accu.count; /* accumulate multisec */
 
         if (!hist[i]->accu.best)
             hist[i]->accu.best = head[i]->accu.best;
@@ -305,3 +305,4 @@ xprof_event(void *data)
 }
 
 #endif /* USE_XPROF_STATS */
+
index 48ed6d55fa6561c55eb66d19a15975ec879a711a..7a8e4f679fa79fc1d4211a5f598c287fcae6cba0 100644 (file)
@@ -41,3 +41,4 @@ public:
 };
 
 #endif /* SQUID_REFRESHPATTERN_H_ */
+
index 022e190f903c6941e8e03a0ae4a63618b617e188..41c163b2c80ba8260d83742b4feb07d7b7bf1cd9 100644 (file)
@@ -20,3 +20,4 @@ public:
 };
 
 #endif /* SQUID_REGEXLIST_H_ */
+
index 34830f66e315504b5c8ee8b7c78f5f670c6345f7..68c063a40084c56679012c85b315e8d0845a39ef 100644 (file)
@@ -14,3 +14,4 @@
 CBDATA_CLASS_INIT(RemovalPolicy);
 CBDATA_CLASS_INIT(RemovalPolicyWalker);
 CBDATA_CLASS_INIT(RemovalPurgeWalker);
+
index d4d35ce07662c8a6a8d61757e3d0ceae0faf6a5d..784620bd82e045ec98aec2455482f8ad83565ebc 100644 (file)
@@ -78,3 +78,4 @@ RemovalPolicy *createRemovalPolicy(RemovalPolicySettings * settings);
 typedef RemovalPolicy *REMOVALPOLICYCREATE(wordlist * args);
 
 #endif /* SQUID_REMOVALPOLICY_H */
+
index 124eaa57513e629fbf2fc6306060a84ebd850c3c..016f011783b4d017b1ad9e081dab3aad87bec90f 100644 (file)
@@ -22,3 +22,4 @@ RequestFlags::cloneAdaptationImmune() const
     // are flags that are different, they should be cleared in the clone.
     return *this;
 }
+
index b3080cc35035ef5f0a03a0732b137e0c50d1f767..0969fd6c5c178b275bc5bad0899b4f1100379210 100644 (file)
@@ -131,3 +131,4 @@ public:
 };
 
 #endif /* SQUID_REQUESTFLAGS_H_ */
+
index 11848943810936cc4723c6ec39974c1630552254..24282995379fe20e7ef7782dd8c64752bcba9a75 100644 (file)
@@ -36,11 +36,11 @@ const SBuf::size_type SBuf::npos;
 const SBuf::size_type SBuf::maxSize;
 
 SBufStats::SBufStats()
-        : alloc(0), allocCopy(0), allocFromString(0), allocFromCString(0),
-        assignFast(0), clear(0), append(0), toStream(0), setChar(0),
-        getChar(0), compareSlow(0), compareFast(0), copyOut(0),
-        rawAccess(0), nulTerminate(0), chop(0), trim(0), find(0), scanf(0),
-        caseChange(0), cowFast(0), cowSlow(0), live(0)
+    : alloc(0), allocCopy(0), allocFromString(0), allocFromCString(0),
+      assignFast(0), clear(0), append(0), toStream(0), setChar(0),
+      getChar(0), compareSlow(0), compareFast(0), copyOut(0),
+      rawAccess(0), nulTerminate(0), chop(0), trim(0), find(0), scanf(0),
+      caseChange(0), cowFast(0), cowSlow(0), live(0)
 {}
 
 SBufStats&
@@ -74,7 +74,7 @@ SBufStats::operator +=(const SBufStats& ss)
 }
 
 SBuf::SBuf()
-        : store_(GetStorePrototype()), off_(0), len_(0)
+    : store_(GetStorePrototype()), off_(0), len_(0)
 {
     debugs(24, 8, id << " created");
     ++stats.alloc;
@@ -82,7 +82,7 @@ SBuf::SBuf()
 }
 
 SBuf::SBuf(const SBuf &S)
-        : store_(S.store_), off_(S.off_), len_(S.len_)
+    : store_(S.store_), off_(S.off_), len_(S.len_)
 {
     debugs(24, 8, id << " created from id " << S.id);
     ++stats.alloc;
@@ -91,7 +91,7 @@ SBuf::SBuf(const SBuf &S)
 }
 
 SBuf::SBuf(const String &S)
-        : store_(GetStorePrototype()), off_(0), len_(0)
+    : store_(GetStorePrototype()), off_(0), len_(0)
 {
     debugs(24, 8, id << " created from string");
     assign(S.rawBuf(), S.size());
@@ -101,7 +101,7 @@ SBuf::SBuf(const String &S)
 }
 
 SBuf::SBuf(const std::string &s)
-        : store_(GetStorePrototype()), off_(0), len_(0)
+    : store_(GetStorePrototype()), off_(0), len_(0)
 {
     debugs(24, 8, id << " created from std::string");
     lowAppend(s.data(),s.length());
@@ -111,7 +111,7 @@ SBuf::SBuf(const std::string &s)
 }
 
 SBuf::SBuf(const char *S, size_type n)
-        : store_(GetStorePrototype()), off_(0), len_(0)
+    : store_(GetStorePrototype()), off_(0), len_(0)
 {
     append(S,n);
     ++stats.alloc;
@@ -317,21 +317,21 @@ std::ostream&
 SBuf::dump(std::ostream &os) const
 {
     os << id
-    << ": ";
+       << ": ";
     store_->dump(os);
     os << ", offset:" << off_
-    << ", len:" << len_
-    << ") : '";
+       << ", len:" << len_
+       << ") : '";
     print(os);
     os << '\'' << std::endl;
     return os;
 # if 0
     // alternate implementation, based on Raw() API.
     os << Raw("SBuf", buf(), length()) <<
-    ". id: " << id <<
-    ", offset:" << off_ <<
-    ", len:" << len_ <<
-    ", store: ";
+       ". id: " << id <<
+       ", offset:" << off_ <<
+       ", len:" << len_ <<
+       ", store: ";
     store_->dump(os);
     os << std::endl;
     return os;
@@ -791,32 +791,32 @@ SBufStats::dump(std::ostream& os) const
 {
     MemBlobStats ststats = MemBlob::GetStats();
     os <<
-    "SBuf stats:\nnumber of allocations: " << alloc <<
-    "\ncopy-allocations: " << allocCopy <<
-    "\ncopy-allocations from SquidString: " << allocFromString <<
-    "\ncopy-allocations from C String: " << allocFromCString <<
-    "\nlive references: " << live <<
-    "\nno-copy assignments: " << assignFast <<
-    "\nclearing operations: " << clear <<
-    "\nappend operations: " << append <<
-    "\ndump-to-ostream: " << toStream <<
-    "\nset-char: " << setChar <<
-    "\nget-char: " << getChar <<
-    "\ncomparisons with data-scan: " << compareSlow <<
-    "\ncomparisons not requiring data-scan: " << compareFast <<
-    "\ncopy-out ops: " << copyOut <<
-    "\nraw access to memory: " << rawAccess <<
-    "\nNULL terminate C string: " << nulTerminate <<
-    "\nchop operations: " << chop <<
-    "\ntrim operations: " << trim <<
-    "\nfind: " << find <<
-    "\nscanf: " << scanf <<
-    "\ncase-change ops: " << caseChange <<
-    "\nCOW not actually requiring a copy: " << cowFast <<
-    "\nCOW: " << cowSlow <<
-    "\naverage store share factor: " <<
-    (ststats.live != 0 ? static_cast<float>(live)/ststats.live : 0) <<
-    std::endl;
+       "SBuf stats:\nnumber of allocations: " << alloc <<
+       "\ncopy-allocations: " << allocCopy <<
+       "\ncopy-allocations from SquidString: " << allocFromString <<
+       "\ncopy-allocations from C String: " << allocFromCString <<
+       "\nlive references: " << live <<
+       "\nno-copy assignments: " << assignFast <<
+       "\nclearing operations: " << clear <<
+       "\nappend operations: " << append <<
+       "\ndump-to-ostream: " << toStream <<
+       "\nset-char: " << setChar <<
+       "\nget-char: " << getChar <<
+       "\ncomparisons with data-scan: " << compareSlow <<
+       "\ncomparisons not requiring data-scan: " << compareFast <<
+       "\ncopy-out ops: " << copyOut <<
+       "\nraw access to memory: " << rawAccess <<
+       "\nNULL terminate C string: " << nulTerminate <<
+       "\nchop operations: " << chop <<
+       "\ntrim operations: " << trim <<
+       "\nfind: " << find <<
+       "\nscanf: " << scanf <<
+       "\ncase-change ops: " << caseChange <<
+       "\nCOW not actually requiring a copy: " << cowFast <<
+       "\nCOW: " << cowSlow <<
+       "\naverage store share factor: " <<
+       (ststats.live != 0 ? static_cast<float>(live)/ststats.live : 0) <<
+       std::endl;
     return os;
 }
 
@@ -918,3 +918,4 @@ SBuf::cow(SBuf::size_type newsize)
     }
     reAlloc(newsize);
 }
+
index cdec25dd397926385008f9af48ed7c450d8d4caa..286b73a2962fef9e0eb7620dd489ce9f3dc4ce49 100644 (file)
@@ -620,3 +620,4 @@ ToLower(SBuf buf)
 }
 
 #endif /* SQUID_SBUF_H */
+
index 3b3a53df600d2890ae0a0ed1e063af896793f318..784a2ddba2aea73c7dfefbd8868cd14419dd651f 100644 (file)
@@ -19,7 +19,7 @@ class SBufEqual
 {
 public:
     explicit SBufEqual(const SBuf &reference, SBufCaseSensitive sensitivity = caseSensitive) :
-            reference_(reference), sensitivity_(sensitivity) {}
+        reference_(reference), sensitivity_(sensitivity) {}
     bool operator() (const SBuf & checking) { return checking.compare(reference_,sensitivity_) == 0; }
 private:
     SBuf reference_;
@@ -31,7 +31,7 @@ class SBufStartsWith
 {
 public:
     explicit SBufStartsWith(const SBuf &prefix, SBufCaseSensitive sensitivity = caseSensitive) :
-            prefix_(prefix), sensitivity_(sensitivity) {}
+        prefix_(prefix), sensitivity_(sensitivity) {}
     bool operator() (const SBuf & checking) { return checking.startsWith(prefix_,sensitivity_); }
 private:
     SBuf prefix_;
@@ -46,7 +46,7 @@ class SBufAddLength
 {
 public:
     explicit SBufAddLength(const SBuf &separator) :
-            separatorLen_(separator.length()) {}
+        separatorLen_(separator.length()) {}
     SBuf::size_type operator()(const SBuf::size_type sz, const SBuf & item) {
         return sz + item.length() + separatorLen_;
     }
@@ -82,3 +82,4 @@ SBufContainerJoin(const Container &items, const SBuf& separator)
 }
 
 #endif /* SQUID_SBUFALGOS_H_ */
+
index 1f2227f2d5aed6bdf831fa46a1148c585ae3207c..991431a20273587e68e558c4f85b361aca55f5fe 100644 (file)
@@ -53,3 +53,4 @@ collectMemBlobDestructTimeStats()
 {
     return &memblobDestructTimeStats;
 }
+
index bf19185b6307c558480a6d579f6b4339206549a6..f56f01fd77baf15699a1c45fc766d98be88c6029 100644 (file)
@@ -32,3 +32,4 @@ void recordMemBlobSizeAtDestruct(MemBlob::size_type sz);
 const StatHist * collectMemBlobDestructTimeStats();
 
 #endif /* SQUID_SBUFDETAILEDSTATS_H */
+
index a17d0f0f5c4b2f20498bdc191d90532a6307f075..cab2743ef1df7ac748e1092fa0bbdf1d9c4ccefb 100644 (file)
@@ -14,9 +14,9 @@
 OutOfBoundsException::OutOfBoundsException(const SBuf &throwingBuf,
         SBuf::size_type &pos,
         const char *aFileName, int aLineNo)
-        : TextException(NULL, aFileName, aLineNo),
-        theThrowingBuf(throwingBuf),
-        accessedPosition(pos)
+    : TextException(NULL, aFileName, aLineNo),
+      theThrowingBuf(throwingBuf),
+      accessedPosition(pos)
 {
     SBuf explanatoryText("OutOfBoundsException");
     if (aLineNo != -1)
@@ -34,9 +34,10 @@ OutOfBoundsException::~OutOfBoundsException() throw()
 { }
 
 InvalidParamException::InvalidParamException(const char *aFilename, int aLineNo)
-        : TextException("Invalid parameter", aFilename, aLineNo)
+    : TextException("Invalid parameter", aFilename, aLineNo)
 { }
 
 SBufTooBigException::SBufTooBigException(const char *aFilename, int aLineNo)
-        : TextException("Trying to create an oversize SBuf", aFilename, aLineNo)
+    : TextException("Trying to create an oversize SBuf", aFilename, aLineNo)
 { }
+
index 681da411572181d64bc298ad2ce1ec883d2fa876..8a0348500037728efd36e33eccea51b504e7f7f4 100644 (file)
@@ -31,3 +31,4 @@ public:
 };
 
 #endif /* SQUID_SBUFEXCEPTIONS_H */
+
index eade722f9776e3185e1bf83071b6ebcb982c26ed..80f118162cbae52ac47d734ed324b9e5b14e013c 100644 (file)
@@ -15,3 +15,4 @@ IsMember(const SBufList & sl, const SBuf &S, const SBufCaseSensitive case_sensit
 {
     return std::find_if(sl.begin(), sl.end(), SBufEqual(S,case_sensitive)) != sl.end();
 }
+
index 7cc7469ddfdb9edfa1ef003e1357c84e3a577078..5e655a7daf168fe368785dbab53e608e148dd4fe 100644 (file)
@@ -23,3 +23,4 @@ typedef std::list<SBuf> SBufList;
 bool IsMember(const SBufList &, const SBuf &, const SBufCaseSensitive isCaseSensitive = caseSensitive);
 
 #endif /* SQUID_SBUFLIST_H */
+
index 22bf6512709fee90f31795e1d9c482569dac129f..1e7551fe233450565c63842d59c1572094d5c164 100644 (file)
@@ -15,7 +15,7 @@
 #include "StoreEntryStream.h"
 
 SBufStatsAction::SBufStatsAction(const Mgr::CommandPointer &cmd_):
-        Action(cmd_)
+    Action(cmd_)
 { } //default constructor is OK for data member
 
 SBufStatsAction::Pointer
@@ -55,8 +55,8 @@ SBufStatsAction::dump(StoreEntry* entry)
 {
     StoreEntryStream ses(entry);
     ses << "\n\n\nThese statistics are experimental; their format and contents "
-    "should not be relied upon, they are bound to change as "
-    "the SBuf feature is evolved\n";
+        "should not be relied upon, they are bound to change as "
+        "the SBuf feature is evolved\n";
     sbdata.dump(ses);
     mbdata.dump(ses);
     ses << "\n";
@@ -85,3 +85,4 @@ SBufStatsAction::unpack(const Ipc::TypedMsgHdr& msg)
 static const bool Registered = (Mgr::RegisterAction("sbuf",
                                 "String-Buffer statistics", &SBufStatsAction::Create, 0 , 1),
                                 true);
+
index 1bcd63fd3f75ea3525089688127a5617db54d610..8209596e86c15182446ac72941f3783c35b9e628 100644 (file)
@@ -41,3 +41,4 @@ private:
 };
 
 #endif /* SQUID_SBUFSTATSACTION_H */
+
index be7731ca295631fef45f7d5d724ea412d95d3d15..9e9639c3cb3fe8b359d36af6f648c6b6e46c41a4 100644 (file)
@@ -119,3 +119,4 @@ private:
 };
 
 #endif /* SQUID_SBUFSTREAM_H */
+
index 8f07003f16857ceaa34f4aaaa1efe5903415e318..b19b09aae590bef4b36fd381db68c1fdffa4f2bf 100644 (file)
@@ -35,3 +35,4 @@ public:
 #endif /* SQUID_SNMP */
 
 #endif /* SQUID_SNMPREQUEST_H_ */
+
index 0c73a58a73763a8c4a28c87af0acf37e81e0b252..eea6d84354a90b6bdcceef75e1abb73e10bcfb56 100644 (file)
@@ -558,3 +558,4 @@ public:
 extern SquidConfig2 Config2;
 
 #endif /* SQUID_SQUIDCONFIG_H_ */
+
index 81f64597833629894a5811c5fbadf439c67308bc..8c2ca50d4b35f262bb9d241ffca542c676196b2f 100644 (file)
@@ -23,3 +23,4 @@ void idnsALookup(const char *, IDNSCB *, void *);
 void idnsPTRLookup(const Ip::Address &, IDNSCB *, void *);
 
 #endif /* SQUID_DNS_H */
+
index e024ef122e50e39e450dcce26ca91273a660b493..f501c0d99bee72e808da0908604153dae294e3a5 100644 (file)
@@ -25,3 +25,4 @@ pid_t ipcCreate(int type,
                 void **hIpc);
 
 #endif /* SQUID_SQUIDIPC_H_ */
+
index 090a21cd37dc9c024ddee4ecada97ed713850718..6c50cce928fbbf1ac5c4ee9b4c5e2effdc530152 100644 (file)
@@ -22,3 +22,4 @@ void linklistPush(link_list **, void *);
 void *linklistShift(link_list **);
 
 #endif /* SQUID_SQUIDLIST_H_ */
+
index 5bcc9c1acef63fcc7bb5e711b9be1b13e3e96a12..4df341ac5d9c30188a8b37cd698fb359e2130758 100644 (file)
@@ -44,3 +44,4 @@ Math::intAverage(const int cur, const int newI, int n, const int max)
 
     return (cur * (n - 1) + newI) / n;
 }
+
index c25f6519313dadeb4fa725f3de1f0edce6842382..fe10d4b5658d3de5ead63be8c53b4c9159c800dc 100644 (file)
@@ -22,3 +22,4 @@ double doubleAverage(const double, const double, int, const int);
 } // namespace Math
 
 #endif /* _SQUID_SRC_SQUIDMATH_H */
+
index 3cf4d930f25de31b70f41c609b9318701ffb736b..d25f1f31765cad9ce29b84c90cc80e8d7710a4de 100644 (file)
@@ -33,3 +33,4 @@ void operator delete[] (void *address) throw()
 }
 
 #endif /* __SUNPRO_CC */
+
index b1849f25ea94c46f94c552d2ab653176da0a3387..c68848c74389811af9068e59e9a6c36bb77d1155 100644 (file)
@@ -38,7 +38,7 @@ public:
 
     /**
      * Retrieve a single character in the string.
-     \param pos        Position of character to retrieve.
+     \param pos Position of character to retrieve.
      */
     _SQUID_INLINE_ char operator [](unsigned int pos) const;
 
@@ -120,3 +120,4 @@ int stringHasCntl(const char *);
 char *strwordtok(char *buf, char **t);
 
 #endif /* SQUID_STRING_H */
+
index 585eab84b6c2bcf8083d0e19ce062b426ac05c5d..333c5b6e329b1091654dac8d0f9d2d1d5150eda6 100644 (file)
@@ -75,3 +75,4 @@ const char *FormatHttpd(time_t t);
 } // namespace Time
 
 #endif /* SQUID_TIME_H */
+
index e76b213ccc5c9dc0c4d2e7c07804e936ee728eb1..3748437c3314d5bd948efcb0e12aa2347bfe6108 100644 (file)
@@ -10,3 +10,4 @@
 #include "StatCounters.h"
 
 StatCounters statCounter;
+
index 889c1377309f45cd67a03d57faa45ef089d9cdc7..ffea8834a9709f484e0fb7fd51a87906b56b8606 100644 (file)
@@ -162,3 +162,4 @@ private:
 extern StatCounters statCounter;
 
 #endif /* STATCOUNTERS_H_ */
+
index d65aa167f58707845566fd3efd846354722cc65e..d9cbbf73f5c5fc16c0cd2d7b64e732b576a286f4 100644 (file)
@@ -39,8 +39,8 @@ StatHist::init(unsigned int newCapacity, hbase_f * val_in_, hbase_f * val_out_,
 }
 
 StatHist::StatHist(const StatHist &src) :
-        capacity_(src.capacity_), min_(src.min_), max_(src.max_),
-        scale_(src.scale_), val_in(src.val_in), val_out(src.val_out)
+    capacity_(src.capacity_), min_(src.min_), max_(src.max_),
+    scale_(src.scale_), val_in(src.val_in), val_out(src.val_out)
 {
     if (src.bins!=NULL) {
         bins = static_cast<bins_type *>(xcalloc(src.capacity_, sizeof(bins_type)));
@@ -61,9 +61,9 @@ unsigned int
 StatHist::findBin(double v)
 {
 
-    v -= min_;         /* offset */
+    v -= min_;      /* offset */
 
-    if (v <= 0.0)              /* too small */
+    if (v <= 0.0)       /* too small */
         return 0;
 
     unsigned int bin;
@@ -73,7 +73,7 @@ StatHist::findBin(double v)
         return 0;
     bin = static_cast <unsigned int>(tmp_bin);
 
-    if (bin >= capacity_)      /* too big */
+    if (bin >= capacity_)   /* too big */
         bin = capacity_ - 1;
 
     return bin;
@@ -249,3 +249,4 @@ statHistIntDumper(StoreEntry * sentry, int idx, double val, double size, int cou
     if (count)
         storeAppendPrintf(sentry, "%9d\t%9d\n", (int) val, count);
 }
+
index 9f641ff52f1ab0763630157c35ac1510cf091cf9..25e3e357ac67f414f2700124154a46041f424337 100644 (file)
@@ -144,8 +144,8 @@ StatHist::operator =(const StatHist & src)
 
 inline
 StatHist::StatHist() :
-        bins(NULL), capacity_(0), min_(0), max_(0),
-        scale_(1.0), val_in(NULL), val_out(NULL)
+    bins(NULL), capacity_(0), min_(0), max_(0),
+    scale_(1.0), val_in(NULL), val_out(NULL)
 {}
 
 inline void
@@ -157,3 +157,4 @@ StatHist::clear()
 }
 
 #endif /* STATHIST_H_ */
+
index 445dcfc8cfd3d831ba27ae9dedfee09310c25b12..3ca03c616846274a876cbd1704f75246d39d7c19 100644 (file)
@@ -99,7 +99,7 @@ public:
     void expireNow();
     void releaseRequest();
     void negativeCache();
-    void cacheNegatively();            /** \todo argh, why both? */
+    void cacheNegatively();     /** \todo argh, why both? */
     void invokeHandlers();
     void purgeMem();
     void cacheInMemory(); ///< start or continue storing in memory cache
@@ -230,7 +230,7 @@ private:
 
     static MemAllocator *pool;
 
-    unsigned short lock_count;         /* Assume < 65536! */
+    unsigned short lock_count;      /* Assume < 65536! */
 
 #if USE_ADAPTATION
     /// producer callback registered with deferProducer
@@ -360,7 +360,7 @@ public:
     virtual StoreSearch *search(String const url, HttpRequest *) = 0;
 
     /* pulled up from SwapDir for migration.... probably do not belong here */
-    virtual void reference(StoreEntry &) = 0;  /* Reference this object */
+    virtual void reference(StoreEntry &) = 0;   /* Reference this object */
 
     /// Undo reference(), returning false iff idle e should be destroyed
     virtual bool dereference(StoreEntry &e, bool wantsLocalMemory) = 0;
@@ -512,3 +512,4 @@ void packerToStoreInit(Packer * p, StoreEntry * e);
 void storeGetMemSpace(int size);
 
 #endif /* SQUID_STORE_H */
+
index 28c37d7d1ed8a8f73447413baf5b3df578c596dd..342db9bde05a1eddc230225dc0e046d7f72531e4 100644 (file)
@@ -13,7 +13,7 @@
 #include "StoreIOBuffer.h"
 #include "StoreIOState.h"
 
-typedef void STCB(void *, StoreIOBuffer);      /* store callback */
+typedef void STCB(void *, StoreIOBuffer);   /* store callback */
 
 class StoreEntry;
 
@@ -55,7 +55,7 @@ public:
     void *owner;
 #endif
 
-    StoreEntry *entry;         /* ptr to the parent StoreEntry, argh! */
+    StoreEntry *entry;      /* ptr to the parent StoreEntry, argh! */
     StoreIOState::Pointer swapin_sio;
 
     struct {
@@ -108,3 +108,4 @@ int storePendingNClients(const StoreEntry * e);
 int storeClientIsThisAClient(store_client * sc, void *someClient);
 
 #endif /* SQUID_STORECLIENT_H */
+
index f7def5d50d5716033976ac1d418873132bc462d9..2d557cac21f4396f790ccfb50deed0e219241a3f 100644 (file)
@@ -99,3 +99,4 @@ private:
 };
 
 #endif /* SQUID_STORE_ENTRY_STREAM_H */
+
index 1ef8522b24f705af5e22c92a7a732583dc35dcd6..b3685726fb84829385c0ea393c39f7da223875bd 100644 (file)
@@ -74,3 +74,4 @@ StoreFileSystem::FreeAllFs()
 void
 StoreFileSystem::registerWithCacheManager(void)
 {}
+
index 9810f04d5b9863656c5948f62a40985257e9f560..f73cf6c0fb81af33dfac239984a3f34e9722772b 100644 (file)
@@ -14,7 +14,7 @@
 /* ****** DOCUMENTATION ***** */
 
 /**
- \defgroup FileSystems Storage Filesystems
+ \defgroup FileSystems  Storage Filesystems
  *
  \section Introduction Introduction
  \par
@@ -123,3 +123,4 @@ private:
 typedef StoreFileSystem storefs_entry_t;
 
 #endif /* SQUID_STOREFILESYSTEM_H */
+
index 5d0a646afed8e6236ffbd40ef3fa139d77bcdacb..2c7722e91de073c8857a8b3333a9719b9610b66d 100644 (file)
@@ -66,7 +66,7 @@ private:
 };
 
 class StoreHashIndexEntry : public StoreEntry
-    {};
+{};
 
 class StoreSearchHashIndex : public StoreSearch
 {
@@ -99,3 +99,4 @@ private:
 };
 
 #endif /* SQUID_STOREHASHINDEX_H */
+
index 99f65c2b4e9aa98e64d79d75919d67e8a9d5c032..8abba28cb7b19ef69ef27dd294c9ee218257ce3e 100644 (file)
@@ -20,23 +20,23 @@ public:
     StoreIOBuffer():length(0), offset (0), data (NULL) {flags.error = 0;}
 
     StoreIOBuffer(size_t aLength, int64_t anOffset, char *someData) :
-            length (aLength), offset (anOffset), data (someData) {
+        length (aLength), offset (anOffset), data (someData) {
         flags.error = 0;
     }
 
     /* Create a StoreIOBuffer from a MemBuf and offset */
     /* NOTE that MemBuf still "owns" the pointers, StoreIOBuffer is just borrowing them */
     StoreIOBuffer(MemBuf *aMemBuf, int64_t anOffset) :
-            length(aMemBuf->contentSize()),
-            offset (anOffset),
-            data(aMemBuf->content()) {
+        length(aMemBuf->contentSize()),
+        offset (anOffset),
+        data(aMemBuf->content()) {
         flags.error = 0;
     }
 
     StoreIOBuffer(MemBuf *aMemBuf, int64_t anOffset, size_t anLength) :
-            length(anLength),
-            offset (anOffset),
-            data(aMemBuf->content()) {
+        length(anLength),
+        offset (anOffset),
+        data(aMemBuf->content()) {
         flags.error = 0;
     }
 
@@ -66,3 +66,4 @@ operator <<(std::ostream &os, const StoreIOBuffer &b)
 }
 
 #endif /* SQUID_STOREIOBUFFER_H */
+
index 469497eebed49c8392bc6f4e614d050443852ef6..979f0202aabf0370472d178ef8d5a248dc100377 100644 (file)
@@ -24,8 +24,8 @@ void
 StoreIOState::operator delete (void *address) {assert (0);}
 
 StoreIOState::StoreIOState() :
-        swap_dirn(-1), swap_filen(-1), e(NULL), mode(O_BINARY),
-        offset_(0), file_callback(NULL), callback(NULL), callback_data(NULL)
+    swap_dirn(-1), swap_filen(-1), e(NULL), mode(O_BINARY),
+    offset_(0), file_callback(NULL), callback(NULL), callback_data(NULL)
 {
     read.callback = NULL;
     read.callback_data = NULL;
@@ -48,3 +48,4 @@ StoreIOState::~StoreIOState()
     if (callback_data)
         cbdataReferenceDone(callback_data);
 }
+
index 09e7bc50f0c40e2a2ab31b14d4d855e8c7a5fd49..32cb184b7b6598c348eb86cce0cd638b28c0daf3 100644 (file)
@@ -73,10 +73,10 @@ public:
 
     sdirno swap_dirn;
     sfileno swap_filen;
-    StoreEntry *e;             /* Need this so the FS layers can play god */
+    StoreEntry *e;      /* Need this so the FS layers can play god */
     mode_t mode;
     off_t offset_; ///< number of bytes written or read for this entry so far
-    STFNCB *file_callback;     /* called on delayed sfileno assignments */
+    STFNCB *file_callback;  /* called on delayed sfileno assignments */
     STIOCB *callback;
     void *callback_data;
 
@@ -86,7 +86,7 @@ public:
     } read;
 
     struct {
-        bool closing;  /* debugging aid */
+        bool closing;   /* debugging aid */
     } flags;
 };
 
@@ -97,3 +97,4 @@ void storeRead(StoreIOState::Pointer, char *, size_t, off_t, StoreIOState::STRCB
 void storeIOWrite(StoreIOState::Pointer, char const *, size_t, off_t, FREE *);
 
 #endif /* SQUID_STOREIOSTATE_H */
+
index 30bf0d57b9d3baaf268b9b168be986f0752f3523..ac5a39a868b8912a92a4e6ba965f26928a2a1e95 100644 (file)
@@ -153,7 +153,7 @@ StoreMeta::Add(StoreMeta **tail, StoreMeta *aNode)
 {
     assert (*tail == NULL);
     *tail = aNode;
-    return &aNode->next;               /* return new tail pointer */
+    return &aNode->next;        /* return new tail pointer */
 }
 
 bool
@@ -185,3 +185,4 @@ StoreMeta::checkConsistency(StoreEntry *e) const
 
     return true;
 }
+
index 1c0df77f15abcd0d109588fb589bcb207b5bbefb..69bd7cb46f307b92d2ae5d0bea90ffd7606992ad 100644 (file)
@@ -103,8 +103,8 @@ enum {
 
     STORE_META_OBJSIZE,
 
-    STORE_META_STOREURL,       /* the store url, if different to the normal URL */
-    STORE_META_VARY_ID,                /* Unique ID linking variants */
+    STORE_META_STOREURL,    /* the store url, if different to the normal URL */
+    STORE_META_VARY_ID,     /* Unique ID linking variants */
     STORE_META_END
 };
 
@@ -137,3 +137,4 @@ tlv *storeSwapMetaBuild(StoreEntry * e);
 void storeSwapTLVFree(tlv * n);
 
 #endif /* SQUID_TYPELENGTHVALUE_H */
+
index 6eeb266a387ffe40605781796d91e48eb721ad3e..52ba5fe45fa0114e65d6472c418e1b1d178eecf5 100644 (file)
@@ -43,3 +43,4 @@ StoreMetaMD5::checkConsistency(StoreEntry *e) const
 
     return true;
 }
+
index b5b76231b2fb6a21618bd286a91167cd8b34272e..aaa3fb3400d2be47a0f991423fe1a70f16eb7d2c 100644 (file)
@@ -28,3 +28,4 @@ private:
 };
 
 #endif /* SQUID_STOREMETAMD5_H */
+
index fab1f25eb2513f9d77f95d8ff63ab7424c65bc35..1ce6d278ccbb47f3daacee2a63a4f3f1ddfe6a3b 100644 (file)
@@ -20,3 +20,4 @@ public:
 };
 
 #endif /* SQUID_STOREMETAOBJSIZE_H */
+
index 54dcb7794d5c5ccea955b12b2be3d09fd6c2cc22..f5d9ad4d0d1b9840092f84064bf4d0ee400b1108 100644 (file)
@@ -18,3 +18,4 @@ StoreMetaSTD::validLength(int len) const
 {
     return len == STORE_HDR_METASIZE_OLD;
 }
+
index 327fb0a606f7478ab5807a88c9823b3e582bdb4b..9e2285e71334295893c012356a38b24b98d68bdb 100644 (file)
@@ -23,3 +23,4 @@ public:
 };
 
 #endif /* SQUID_STOREMETASTD_H */
+
index 695f83d7f574fbf2a11549f06c10f2f8c85666f3..dbd1a23354c692e1df74740ea4c1dfef71b46e02 100644 (file)
@@ -18,3 +18,4 @@ StoreMetaSTDLFS::validLength(int len) const
 {
     return len == STORE_HDR_METASIZE;
 }
+
index 593e94e66b420aaeb6d0321bc34da6edccd9f775..7700ebaa2c2dd942f12c4db39ee0b211a110a101 100644 (file)
@@ -23,3 +23,4 @@ public:
 };
 
 #endif /* SQUID_STOREMETASTDLFS_H */
+
index b17eaebc1b78085f0b4d6538696e3db888ff62fd..4c18cb797158f68376aa05e34e41fd4089764ae5 100644 (file)
@@ -29,3 +29,4 @@ StoreMetaURL::checkConsistency(StoreEntry *e) const
 
     return true;
 }
+
index 6be7fcdee5c89c4c963c3999a7d8e6de25cf1e2b..3af12b0ea20399ff8e34975b699429ba0970ba0d 100644 (file)
@@ -22,3 +22,4 @@ public:
 };
 
 #endif /* SQUID_STOREMETAURL_H */
+
index 8576086d0340c0a9714a05f3a3c6719be8f4ff70..72d7201c8f5e456f97eefb7651f7dd5d2a9c895e 100644 (file)
@@ -62,13 +62,13 @@ StoreMetaUnpacker::getBufferLength()
 }
 
 StoreMetaUnpacker::StoreMetaUnpacker(char const *aBuffer, ssize_t aLen, int *anInt) :
-        buf(aBuffer),
-        buflen(aLen),
-        hdr_len(anInt),
-        position(1 + sizeof(int)),
-        type('\0'),
-        length(0),
-        tail(NULL)
+    buf(aBuffer),
+    buflen(aLen),
+    hdr_len(anInt),
+    position(1 + sizeof(int)),
+    type('\0'),
+    length(0),
+    tail(NULL)
 {
     assert(aBuffer != NULL);
 }
@@ -136,3 +136,4 @@ StoreMetaUnpacker::createStoreMeta ()
 
     return TLV;
 }
+
index 3804f812f1b8999f650eb1072224a1348a9d8fcc..848a51370671d4183e5235b8bfde543c244abc81 100644 (file)
@@ -50,3 +50,4 @@ void storeSwapTLVFree(StoreMeta * n);
 StoreMeta ** storeSwapTLVAdd(int type, const void *ptr, size_t len, StoreMeta ** tail);
 
 #endif /* SQUID_TYPELENGTHVALUEUNPACKER_H */
+
index e8f87f042e2855693196f58fe78c333ec7b632c4..cbf74c825196c38e48ff9aca019be7669153c47c 100644 (file)
@@ -30,3 +30,4 @@ StoreMetaVary::checkConsistency(StoreEntry *e) const
 
     return true;
 }
+
index f6a57c9f146e68b5d8b06c2019c6d2a3a79ebdd0..52aae757da201f33778b4ee0c6beb26628f102ab 100644 (file)
@@ -22,3 +22,4 @@ public:
 };
 
 #endif /* SQUID_STOREMETAVARY_H */
+
index 4ca427b5725d964c611aa3a853c11d0afdf2fb97..8a283e233d8b0535a1e553292463fdcb14aefbd5 100644 (file)
@@ -43,3 +43,4 @@ public:
 typedef RefCount<StoreSearch> StoreSearchPointer;
 
 #endif /* SQUID_STORESEARCH_H */
+
index cd01a09dac884c9f304279fea5ce524f31dc655f..98b7011ca7ae93befc9af09a2ed9bfc55d78d9c3 100644 (file)
@@ -69,3 +69,4 @@ public:
 };
 
 #endif /* SQUID_STORE_STATS_H */
+
index 6c94e0da086d8c1faec3e0009b98581b1ddab1de..b4f4a2d063152e9a380dd9b217a6352813182f16 100644 (file)
@@ -79,7 +79,7 @@ StoreSwapLogData::finalize()
 }
 
 StoreSwapLogHeader::StoreSwapLogHeader(): op(SWAP_LOG_VERSION), version(2),
-        record_size(sizeof(StoreSwapLogData))
+    record_size(sizeof(StoreSwapLogData))
 {
     checksum.set(version, record_size, 0);
 }
@@ -102,3 +102,4 @@ StoreSwapLogHeader::gapSize() const
     assert(static_cast<size_t>(record_size) > sizeof(*this));
     return static_cast<size_t>(record_size) - sizeof(*this);
 }
+
index 2b15f6b87df9a9bca5d8afd902133a5b084fecb5..b0d7c82679799cac7c454cd86160df3268f47ad9 100644 (file)
@@ -197,3 +197,4 @@ public:
 };
 
 #endif /* SQUID_STORESWAPLOGDATA_H */
+
index 0a40ab955dacb0af46bd13556dfda5bf4f4e7a24..27d24e49f51bd346bf54237b5627d4e5c202966f 100644 (file)
@@ -19,3 +19,4 @@ int strListIsSubstr(const String * list, const char *s, char del);
 int strListGetItem(const String * str, char del, const char **item, int *ilen, const char **pos);
 
 #endif /* SQUID_STRLIST_H_ */
+
index 91bab6b434e283e6c6707a0529f5b6da59c3590a..2ca7df09eec0da8276df4a8586b76d47f92def91 100644 (file)
@@ -469,3 +469,4 @@ String::rfind(char const ch) const
 #if !_USE_INLINE_
 #include "String.cci"
 #endif
+
index 1a3b4058781ad6e80f75fdb336166fe0af0c1ae8..459072beaa66f33fa677689150c0a616ac8183f8 100644 (file)
@@ -168,3 +168,4 @@ operator<(const String &a, const String &b)
 {
     return a.cmp(b) < 0;
 }
+
index 01492d9309bb368433a2d4d640e0163775b45c89..51b5bc73a5fa676bbca6dead5675124d9923bbdd 100644 (file)
 #include "tools.h"
 
 SwapDir::SwapDir(char const *aType): theType(aType),
-        max_size(0), min_objsize(0), max_objsize (-1),
-        path(NULL), index(-1), disker(-1),
-        repl(NULL), removals(0), scanned(0),
-        cleanLog(NULL)
+    max_size(0), min_objsize(0), max_objsize (-1),
+    path(NULL), index(-1), disker(-1),
+    repl(NULL), removals(0), scanned(0),
+    cleanLog(NULL)
 {
     fs.blksize = 1024;
 }
@@ -259,7 +259,7 @@ SwapDir::parseOptions(int isaReconfig)
         value = strchr(name, '=');
 
         if (value) {
-            *value = '\0';     /* cut on = */
+            *value = '\0';  /* cut on = */
             ++value;
         }
 
@@ -380,3 +380,4 @@ SwapDir::get(String const key, STOREGETCLIENT aCallback, void *aCallbackData)
 {
     fatal("not implemented");
 }
+
index 135430f14ea66bc4cfdd6331a97e210802bdffa4..177086c990475442a1f38b79f77c4b2986f28434 100644 (file)
@@ -69,13 +69,13 @@ public:
     virtual void getStats(StoreInfoStats &stats) const;
     virtual void stat(StoreEntry &) const;
 
-    virtual void sync();       /* Sync the store prior to shutdown */
+    virtual void sync();    /* Sync the store prior to shutdown */
 
     virtual StoreSearch *search(String const url, HttpRequest *);
 
-    virtual void reference(StoreEntry &);      /* Reference this object */
+    virtual void reference(StoreEntry &);   /* Reference this object */
 
-    virtual bool dereference(StoreEntry &, bool);      /* Unreference this object */
+    virtual bool dereference(StoreEntry &, bool);   /* Unreference this object */
 
     /* the number of store dirs being rebuilt. */
     static int store_dirs_rebuilding;
@@ -190,7 +190,7 @@ protected:
 
 public:
     char *path;
-    int index;                 /* This entry's index into the swapDirs array */
+    int index;          /* This entry's index into the swapDirs array */
     int disker; ///< disker kid id dedicated to this SwapDir or -1
     RemovalPolicy *repl;
     int removals;
@@ -201,19 +201,19 @@ public:
         bool selected;
         bool read_only;
     } flags;
-    virtual void init() = 0;   /* Initialise the fs */
-    virtual void create();     /* Create a new fs */
-    virtual void dump(StoreEntry &)const;      /* Dump fs config snippet */
-    virtual bool doubleCheck(StoreEntry &);    /* Double check the obj integrity */
-    virtual void statfs(StoreEntry &) const;   /* Dump fs statistics */
-    virtual void maintain();   /* Replacement maintainence */
+    virtual void init() = 0;    /* Initialise the fs */
+    virtual void create();  /* Create a new fs */
+    virtual void dump(StoreEntry &)const;   /* Dump fs config snippet */
+    virtual bool doubleCheck(StoreEntry &); /* Double check the obj integrity */
+    virtual void statfs(StoreEntry &) const;    /* Dump fs statistics */
+    virtual void maintain();    /* Replacement maintainence */
     /// check whether we can store the entry; if we can, report current load
     virtual bool canStore(const StoreEntry &e, int64_t diskSpaceNeeded, int &load) const = 0;
     /* These two are notifications */
-    virtual void reference(StoreEntry &);      /* Reference this object */
-    virtual bool dereference(StoreEntry &, bool);      /* Unreference this object */
-    virtual int callback();    /* Handle pending callbacks */
-    virtual void sync();       /* Sync the store prior to shutdown */
+    virtual void reference(StoreEntry &);   /* Reference this object */
+    virtual bool dereference(StoreEntry &, bool);   /* Unreference this object */
+    virtual int callback(); /* Handle pending callbacks */
+    virtual void sync();    /* Sync the store prior to shutdown */
     virtual StoreIOState::Pointer createStoreIO(StoreEntry &, StoreIOState::STFNCB *, StoreIOState::STIOCB *, void *) = 0;
     virtual StoreIOState::Pointer openStoreIO(StoreEntry &, StoreIOState::STFNCB *, StoreIOState::STIOCB *, void *) = 0;
     virtual void unlink (StoreEntry &);
@@ -243,3 +243,4 @@ public:
 };
 
 #endif /* SQUID_SWAPDIR_H */
+
index 378eba8e5afbe538f8fe24c8427dd0c0c34e05de..c47205269ac4e1c2941610e51ba2fe2d9ded971b 100644 (file)
@@ -23,3 +23,4 @@ public:
 };
 
 #endif /* _SQUID_TIMEORTAG_H */
+
index a16bd42e63551a77b1dca359a2667605ceb429cc..740de65d13aa0bb42810d08acc3323c0698cb0fe 100644 (file)
@@ -434,3 +434,4 @@ TransientsRr::~TransientsRr()
     delete extrasOwner;
     delete mapOwner;
 }
+
index b119e354b9a60104322d8a98f4765e87ff857ec1..f0090aec66e8bd28f15abc35fe8002229bf58e23 100644 (file)
@@ -100,3 +100,4 @@ private:
 // TODO: Why use Store as a base? We are not really a cache.
 
 #endif /* SQUID_TRANSIENTS_H */
+
index c17d59ab78f5be865f2420b0dda05e027e4f5020..b8700262d268d8e69345ca80a9e026ea3768ca53 100644 (file)
--- a/src/URL.h
+++ b/src/URL.h
@@ -84,3 +84,4 @@ char *urlHostname(const char *url);
 void urlExtMethodConfigure(void);
 
 #endif /* SQUID_SRC_URL_H_H */
+
index 7495078c89767c5c559fa28ac61e18d3f956e5a6..a1a418f124586084488cc7fac13f4523899c83c2 100644 (file)
@@ -82,11 +82,11 @@ static SERVICE_DESCRIPTION Squid_ServiceDescription = { Squid_ServiceDescription
 static SERVICE_FAILURE_ACTIONS Squid_ServiceFailureActions = { INFINITE, NULL, NULL, 1, Squid_SCAction };
 static char REGKEY[256] = SOFTWARE "\\" VENDOR "\\" SOFTWARENAME "\\";
 static char *keys[] = {
-    SOFTWAREString,        /* key[0] */
-    VENDORString,          /* key[1] */
+    SOFTWAREString,     /* key[0] */
+    VENDORString,       /* key[1] */
     SOFTWARENAMEString,   /* key[2] */
-    NULL,          /* key[3] */
-    NULL           /* key[4] */
+    NULL,       /* key[3] */
+    NULL        /* key[4] */
 };
 
 static int Squid_Aborting = 0;
@@ -114,9 +114,9 @@ WIN32_create_key(void)
 
     while (keys[index]) {
         unsigned long result;
-        rv = RegCreateKeyEx(hKey, keys[index], /* subkey */
-                            0,                 /* reserved */
-                            NULL,              /* class */
+        rv = RegCreateKeyEx(hKey, keys[index],  /* subkey */
+                            0,          /* reserved */
+                            NULL,       /* class */
                             REG_OPTION_NON_VOLATILE, KEY_WRITE, NULL, &hKeyNext, &result);
 
         if (rv != ERROR_SUCCESS) {
@@ -199,13 +199,13 @@ WIN32_StoreKey(const char *key, DWORD type, unsigned char *value,
     }
 
     /* Now set the value and data */
-    rv = RegSetValueEx(hKey, key,      /* value key name */
-                       0,                      /* reserved */
-                       type,                   /* type */
-                       value,                  /* value data */
-                       (DWORD) value_size);    /* for size of "value" */
+    rv = RegSetValueEx(hKey, key,   /* value key name */
+                       0,           /* reserved */
+                       type,            /* type */
+                       value,           /* value data */
+                       (DWORD) value_size); /* for size of "value" */
 
-    retval = 0;                        /* Return value */
+    retval = 0;         /* Return value */
 
     if (rv != ERROR_SUCCESS) {
         fprintf(stderr, "RegQueryValueEx(key %s),%d\n", key, (int) rv);
@@ -257,14 +257,14 @@ static void WIN32_build_argv(char *cmd)
         word = cmd;
 
         while (*cmd) {
-            ++cmd;             /* Skip over this character */
+            ++cmd;      /* Skip over this character */
 
-            if (xisspace(*cmd))        /* End of argument if space */
+            if (xisspace(*cmd)) /* End of argument if space */
                 break;
         }
 
         if (*cmd)
-            *cmd++ = '\0';             /* Terminate `word' */
+            *cmd++ = '\0';      /* Terminate `word' */
 
         /* See if we need to allocate more space for argv */
         if (WIN32_argc >= argvlen) {
@@ -658,9 +658,9 @@ WIN32_RemoveService()
 
     keys[4] = const_cast<char*>(service);
 
-    schSCManager = OpenSCManager(NULL, /* machine (NULL == local)    */
-                                 NULL,                 /* database (NULL == default) */
-                                 SC_MANAGER_ALL_ACCESS /* access required            */
+    schSCManager = OpenSCManager(NULL,  /* machine (NULL == local)    */
+                                 NULL,          /* database (NULL == default) */
+                                 SC_MANAGER_ALL_ACCESS  /* access required            */
                                 );
 
     if (!schSCManager)
@@ -738,9 +738,9 @@ WIN32_InstallService()
     }
 
     snprintf(szPath, sizeof(szPath), "%s %s:" SQUIDSBUFPH, ServicePath, _WIN_SQUID_SERVICE_OPTION, SQUIDSBUFPRINT(service_name));
-    schSCManager = OpenSCManager(NULL, /* machine (NULL == local)    */
-                                 NULL,                 /* database (NULL == default) */
-                                 SC_MANAGER_ALL_ACCESS /* access required            */
+    schSCManager = OpenSCManager(NULL,  /* machine (NULL == local)    */
+                                 NULL,          /* database (NULL == default) */
+                                 SC_MANAGER_ALL_ACCESS  /* access required            */
                                 );
 
     if (!schSCManager) {
@@ -748,18 +748,18 @@ WIN32_InstallService()
         exit(1);
     } else {
         schService = CreateService(schSCManager,    /* SCManager database     */
-                                   service,                        /* name of service        */
-                                   service,                        /* name to display        */
-                                   SERVICE_ALL_ACCESS,                     /* desired access         */
-                                   SERVICE_WIN32_OWN_PROCESS,              /* service type           */
-                                   SERVICE_AUTO_START,                     /* start type             */
-                                   SERVICE_ERROR_NORMAL,                   /* error control type     */
-                                   (const char *) szPath,                  /* service's binary       */
-                                   NULL,                                   /* no load ordering group */
-                                   NULL,                                   /* no tag identifier      */
-                                   "Tcpip\0AFD\0",                         /* dependencies           */
-                                   NULL,                                   /* LocalSystem account    */
-                                   NULL);                                  /* no password            */
+                                   service,             /* name of service        */
+                                   service,             /* name to display        */
+                                   SERVICE_ALL_ACCESS,              /* desired access         */
+                                   SERVICE_WIN32_OWN_PROCESS,           /* service type           */
+                                   SERVICE_AUTO_START,              /* start type             */
+                                   SERVICE_ERROR_NORMAL,            /* error control type     */
+                                   (const char *) szPath,           /* service's binary       */
+                                   NULL,                    /* no load ordering group */
+                                   NULL,                    /* no tag identifier      */
+                                   "Tcpip\0AFD\0",              /* dependencies           */
+                                   NULL,                    /* LocalSystem account    */
+                                   NULL);                   /* no password            */
 
         if (schService) {
             if (WIN32_OS_version > _WIN_OS_WINNT) {
@@ -806,9 +806,9 @@ WIN32_sendSignal(int WIN32_signal)
     if (service_name.isEmpty())
         service_name = SBuf(APP_SHORTNAME);
 
-    schSCManager = OpenSCManager(NULL, /* machine (NULL == local)    */
-                                 NULL,                 /* database (NULL == default) */
-                                 SC_MANAGER_ALL_ACCESS /* access required            */
+    schSCManager = OpenSCManager(NULL,  /* machine (NULL == local)    */
+                                 NULL,          /* database (NULL == default) */
+                                 SC_MANAGER_ALL_ACCESS  /* access required            */
                                 );
 
     if (!schSCManager) {
@@ -819,7 +819,7 @@ WIN32_sendSignal(int WIN32_signal)
     /* The required service object access depends on the control. */
     switch (WIN32_signal) {
 
-    case 0:                    /* SIGNULL */
+    case 0:         /* SIGNULL */
         fdwAccess = SERVICE_INTERROGATE;
         fdwControl = _WIN_SQUID_SERVICE_CONTROL_INTERROGATE;
         break;
@@ -856,9 +856,9 @@ WIN32_sendSignal(int WIN32_signal)
     }
 
     /* Open a handle to the service. */
-    schService = OpenService(schSCManager,     /* SCManager database */
-                             service_name.c_str(),     /* name of service    */
-                             fdwAccess);               /* specify access     */
+    schService = OpenService(schSCManager,  /* SCManager database */
+                             service_name.c_str(),  /* name of service    */
+                             fdwAccess);        /* specify access     */
 
     if (schService == NULL) {
         fprintf(stderr, "%s: ERROR: Could not open Service " SQUIDSBUFPH "\n", APP_SHORTNAME, SQUIDSBUFPRINT(service_name));
@@ -866,9 +866,9 @@ WIN32_sendSignal(int WIN32_signal)
     } else {
         /* Send a control value to the service. */
 
-        if (!ControlService(schService,        /* handle of service      */
-                            fdwControl,        /* control value to send  */
-                            &ssStatus)) {      /* address of status info */
+        if (!ControlService(schService, /* handle of service      */
+                            fdwControl, /* control value to send  */
+                            &ssStatus)) {   /* address of status info */
             fprintf(stderr, "%s: ERROR: Could not Control Service " SQUIDSBUFPH "\n",
                     APP_SHORTNAME, SQUIDSBUFPRINT(service_name));
             exit(1);
@@ -990,3 +990,4 @@ void Squid_Win32InvalidParameterHandler(const wchar_t* expression, const wchar_t
 {
     return;
 }
+
index abfee52e198db4456af0a023228a66811fa19c16..340deda987ddb3e68fc58fe1e99479fa4e554aad 100644 (file)
@@ -25,3 +25,4 @@ inline  void WIN32_RemoveService(void) {} /* NOP */
 #endif /* _SQUID_WINDOWS_ */
 
 #endif /* WINSVC_H_ */
+
index 775b6c744be2598289692113869f93b54ffa335c..447c3d67b22bcff53ef831536b7fbc83d8a59384 100644 (file)
@@ -20,3 +20,4 @@ YesNoNone::configure(bool beSet)
 {
     option = beSet ? +1 : -1;
 }
+
index eccb6a1671f09aca8537122bfed12e996c5c1105..f4a23d3b2b9fb4dee4e69fbacbae20cef4b375ce 100644 (file)
@@ -33,3 +33,4 @@ private:
 };
 
 #endif /* SQUID_YESNONONE_H_ */
+
index 83df0c8ff848db39ba31c4d88334e0b5b8e5c4d1..be538c67ccf0c1ce5e8d9b147847e7e4ef67d9c8 100644 (file)
@@ -118,9 +118,9 @@ ACL::Factory (char const *type)
 }
 
 ACL::ACL() :
-        cfgline(NULL),
-        next(NULL),
-        registered(false)
+    cfgline(NULL),
+    next(NULL),
+    registered(false)
 {
     *name = 0;
 }
@@ -255,7 +255,7 @@ ACL::ParseAclLine(ConfigParser &parser, ACL ** head)
      * Here we set AclMatchedName in case we need to use it in a
      * warning message in aclDomainCompare().
      */
-    AclMatchedName = A->name;  /* ugly */
+    AclMatchedName = A->name;   /* ugly */
 
     A->flags.parseFlags();
 
@@ -265,7 +265,7 @@ ACL::ParseAclLine(ConfigParser &parser, ACL ** head)
     /*
      * Clear AclMatchedName from our temporary hack
      */
-    AclMatchedName = NULL;     /* ugly */
+    AclMatchedName = NULL;  /* ugly */
 
     if (!new_acl)
         return;
@@ -302,7 +302,7 @@ ACL::matchForCache(ACLChecklist *checklist)
     /* This is a fatal to ensure that cacheMatchAcl calls are _only_
      * made for supported acl types */
     fatal("aclCacheMatchAcl: unknown or unexpected ACL type");
-    return 0;          /* NOTREACHED */
+    return 0;       /* NOTREACHED */
 }
 
 /*
@@ -455,3 +455,4 @@ ACL::Initialize()
         a = a->next;
     }
 }
+
index 3cdc4fbb1c2bc8840c81cf0c9ad3a53f5587ec91..f2dac250f0d0df3b18376028b8f73bf15d4e2e89 100644 (file)
@@ -218,6 +218,7 @@ public:
 
 /// \ingroup ACLAPI
 /// XXX: find a way to remove or at least use a refcounted ACL pointer
-extern const char *AclMatchedName;     /* NULL */
+extern const char *AclMatchedName;  /* NULL */
 
 #endif /* SQUID_ACL_H */
+
index 27a622733f0014d024ff598eda151b13ff5a8f01..79f9f16b62090405de6a413ae7383953ecb27f13 100644 (file)
@@ -10,3 +10,4 @@
 #include "AclAddress.h"
 
 //TODO: fill in
+
index fea37ec4426dd8239f8d2b6d6790c046b4528c6d..976a4754549914b17b8e195ed3194d5c882b4aa8 100644 (file)
@@ -23,3 +23,4 @@ public:
 };
 
 #endif /* ACLADDRESS_H_ */
+
index 9e2eaa173e5379bc2e5fe04b39fbf132394804ca..e5b49ab443dc30461d6f02a6b846173ac60d8c34 100644 (file)
@@ -24,3 +24,4 @@ public:
 };
 
 #endif /* SQUID_ACLDENYINFOLIST_H_ */
+
index c8b4fbcf6acca9e03b2c73899131a9d77b99b342..c7dec43294bd0c1229687f09b68e6d15ef3fca62 100644 (file)
@@ -21,3 +21,4 @@ public:
 // TODO: convert to a std::list<string>
 
 #endif /* SQUID_ACLNAMELIST_H_ */
+
index fe2a45199fc368dcb0e7f35e2aeeebbca33f9637..d5eac0ea281c5f720e389cb805a7dbd44e4b65bc 100644 (file)
@@ -22,3 +22,4 @@ public:
 };
 
 #endif /* SQUID_ACLSIZELIMIT_H_ */
+
index 8ddecb34f5e0be60398ec8d83ca6f8c069cd9b73..2e07b367058586a98dcf2b9d79ffef6d7a405f06 100644 (file)
@@ -40,3 +40,4 @@ ACLAdaptationServiceStrategy::Instance()
 }
 
 ACLAdaptationServiceStrategy ACLAdaptationServiceStrategy::Instance_;
+
index cd812bdc6c13206cf15d8d5e5d1b4a9b51c0d3c5..fe9ce434120d6eb2c63fb5690b0b74b5a569e7f2 100644 (file)
@@ -41,3 +41,4 @@ private:
 };
 
 #endif /* SQUID_ACLADAPTATIONSERVICE_H */
+
index 99a94e08f34bff7c7651ecb6cb1ec403cdfe8f2b..3633edcf709e14370c11b033704e398fb0df56bc 100644 (file)
@@ -26,3 +26,4 @@ public:
 };
 
 #endif /* SQUID_ADAPTATIONSERVICEDATA_H */
+
index 87a03db33548dc77a337c9cc27a9cbb8f15d1a82..15700e8cbbf1fc39662e4070cd0bbcb1dd9842e1 100644 (file)
@@ -88,3 +88,4 @@ Acl::AllOf::parse()
 
     whole->add(line);
 }
+
index aa3118f95b8274279b6c420ff95f6b1e2e18096a..b653991e0fc6fb32a3d35a07a86968b76ab963a1 100644 (file)
@@ -39,3 +39,4 @@ private:
 } // namespace Acl
 
 #endif /* SQUID_ACL_ALL_OF_H */
+
index fdc7e740390b91464bca23bc1b8d4bd9b25164af..a07182d7fbd619cefe512d5c31971de7545ea5c4 100644 (file)
@@ -29,3 +29,4 @@ Acl::AnyOf::parse()
 {
     lineParse();
 }
+
index c7a7184fb169c17c38566f05c1854d2d1f6aa4d3..75f514e64cc8bfaaf5faad7c9c711a635c55341c 100644 (file)
@@ -33,3 +33,4 @@ private:
 } // namespace Acl
 
 #endif /* SQUID_ACL_ANY_OF_H */
+
index 1aa682d9dec81ae54716ecbfad586a17abaaa92c..27bd7b89f73b8cd9eaeae4a7890b5ef996a6cef1 100644 (file)
@@ -193,3 +193,4 @@ ACLARP::dump() const
 /* ==== END ARP ACL SUPPORT =============================================== */
 
 #endif /* USE_SQUID_EUI */
+
index c6f61847bd41a8006d1f091e82fa2d7cfce4af4e..84cab842615756b8e9fefd05c7961f4878087632 100644 (file)
@@ -44,3 +44,4 @@ protected:
 };
 
 #endif /* SQUID_ACLARP_H */
+
index 10cc067cee58708c7f68b653fe4301bd3c21e88d..74c9687ef2d8ddb44091f04042c8e8d81e094560 100644 (file)
@@ -29,7 +29,7 @@
 #include "StoreClient.h"
 
 #define WHOIS_PORT 43
-#define        AS_REQBUF_SZ    4096
+#define AS_REQBUF_SZ    4096
 
 /* BEGIN of definitions for radix tree entries */
 
@@ -62,7 +62,7 @@ template cbdata_type CbDataList<int>::CBDATA_CbDataList;
  */
 struct as_info {
     CbDataList<int> *as_number;
-    time_t expires;            /* NOTUSED */
+    time_t expires;     /* NOTUSED */
 };
 
 class ASState
@@ -86,13 +86,13 @@ public:
 CBDATA_CLASS_INIT(ASState);
 
 ASState::ASState() :
-        entry(NULL),
-        sc(NULL),
-        request(NULL),
-        as_number(0),
-        offset(0),
-        reqofs(0),
-        dataRead(false)
+    entry(NULL),
+    sc(NULL),
+    request(NULL),
+    as_number(0),
+    offset(0),
+    reqofs(0),
+    dataRead(false)
 {
     memset(reqbuf, 0, AS_REQBUF_SZ);
 }
@@ -122,8 +122,8 @@ static STCB asHandleReply;
 extern "C" {
 #endif
 
-    static int destroyRadixNode(struct squid_radix_node *rn, void *w);
-    static int printRadixNode(struct squid_radix_node *rn, void *sentry);
+static int destroyRadixNode(struct squid_radix_node *rn, void *w);
+static int printRadixNode(struct squid_radix_node *rn, void *sentry);
 
 #if defined(__cplusplus)
 }
@@ -197,7 +197,7 @@ asnRegisterWithCacheManager(void)
 
 /* initialize the radix tree structure */
 
-SQUIDCEXTERN int squid_max_keylen;     /* yuck.. this is in lib/radix.c */
+SQUIDCEXTERN int squid_max_keylen;  /* yuck.. this is in lib/radix.c */
 
 void
 asnInit(void)
@@ -439,7 +439,7 @@ asnAddNet(char *as_string, int as_number)
         e->e_info = asinfo;
     }
 
-    if (rn == 0) {             /* assert might expand to nothing */
+    if (rn == 0) {      /* assert might expand to nothing */
         xfree(asinfo);
         delete q;
         xfree(e);
@@ -633,3 +633,4 @@ ACLDestinationASNStrategy::Instance()
 }
 
 ACLDestinationASNStrategy ACLDestinationASNStrategy::Instance_;
+
index b058888c6aa375f810daf8e51c1f1460e7744af4..1c72871b515a851a6e94a52a2e8f3bfa37e4a9f0 100644 (file)
@@ -47,3 +47,4 @@ private:
 };
 
 #endif /* SQUID_ACLASN_H */
+
index 6df7b37e736123e3f05515d178d3705d785529bf..fdbd805c12a92e2e245d523711319142792706dd 100644 (file)
@@ -36,3 +36,4 @@ ACLAtStepStrategy::Instance()
 ACLAtStepStrategy ACLAtStepStrategy::Instance_;
 
 #endif /* USE_OPENSSL */
+
index 31af8014581ced967728671e76f98a4babccd176..739393eae2bafcc01aa74588b9fef122b6226d3a 100644 (file)
@@ -44,3 +44,4 @@ private:
 #endif /* USE_OPENSSL */
 
 #endif /* SQUID_ACLATSTEP_H */
+
index 2b6a2f6312d5621d4da0005481bd53e707ee7a3f..e2ff673e917c9494f609f1a1184c727a62e198fa 100644 (file)
@@ -80,3 +80,4 @@ ACLAtStepData::clone() const
 }
 
 #endif /* USE_OPENSSL */
+
index bd735061f1fe0ee0439f70ce088fab1335268b35..23fa9287dacb424112cfe0cd28fdce7cb7031378 100644 (file)
@@ -38,3 +38,4 @@ public:
 #endif /* USE_OPENSSL */
 
 #endif /* SQUID_ACLSSL_ERRORDATA_H */
+
index 68628ec19ede176415a4ec35891573838dc8ac35..81ceb8877f38e53d13936210e29efbe80b66cdf5 100644 (file)
@@ -141,3 +141,4 @@ Acl::OrNode::parse()
     // Not implemented: OrNode cannot be configured directly. See Acl::AnyOf.
     assert(false);
 }
+
index a6193047d1246948ecc313a12c5034ddbac9a9a6..466be2fd08d4e1bb2621e747338a4ed80c954612 100644 (file)
@@ -77,3 +77,4 @@ private:
 } // namespace Acl
 
 #endif /* SQUID_ACL_LOGIC_H */
+
index 57cc35e3729167ab97f6b96b2c50c706699602ca..6ad5759cfac36d479037bfcf4f40dcc7b4e629fd 100644 (file)
@@ -24,3 +24,4 @@ private:
 };
 
 #endif /* SQUID_ACLBROWSER_H */
+
index 2402536bf4e68526091724e1d35bbaff95cf7270..07d7de212b7d843bdbccd297f4b7342911e916d1 100644 (file)
@@ -44,3 +44,4 @@ ACLCertificateStrategy::Instance()
 ACLCertificateStrategy ACLCertificateStrategy::Instance_;
 
 #endif /* USE_OPENSSL */
+
index 25e50510bb12b276094da30adf04f421b6e017de..d97f728d0945b706bddb180f73dcdd31c360c96a 100644 (file)
@@ -46,3 +46,4 @@ private:
 };
 
 #endif /* SQUID_ACLCERTIFICATE_H */
+
index ff79c24cf274ca5418bb1085d0e727a73a963923..377f9d71ce344df2396c340effe47fc86695c23f 100644 (file)
@@ -151,3 +151,4 @@ ACLCertificateData::clone() const
     /* Splay trees don't clone yet. */
     return new ACLCertificateData(*this);
 }
+
index 00562afbb24908e235c431a62e26ff6a5c33e221..14491ec47d6f8451d4d369368ff1a84e3b2f8f78 100644 (file)
@@ -51,3 +51,4 @@ private:
 };
 
 #endif /* SQUID_ACLCERTIFICATEDATA_H */
+
index 7460a1b0d588443c2f00ef90139f20dd5f09d05f..a6b8af2be6e7dc9f533a7da3659c918681eb4590 100644 (file)
@@ -173,16 +173,16 @@ ACLChecklist::checkCallback(allow_t answer)
 }
 
 ACLChecklist::ACLChecklist() :
-        accessList (NULL),
-        callback (NULL),
-        callback_data (NULL),
-        asyncCaller_(false),
-        occupied_(false),
-        finished_(false),
-        allow_(ACCESS_DENIED),
-        asyncStage_(asyncNone),
-        state_(NullState::Instance()),
-        asyncLoopDepth_(0)
+    accessList (NULL),
+    callback (NULL),
+    callback_data (NULL),
+    asyncCaller_(false),
+    occupied_(false),
+    finished_(false),
+    allow_(ACCESS_DENIED),
+    asyncStage_(asyncNone),
+    state_(NullState::Instance()),
+    asyncLoopDepth_(0)
 {
 }
 
@@ -390,3 +390,4 @@ ACLChecklist::callerGone()
 {
     return !cbdataReferenceValid(callback_data);
 }
+
index ed8049104c539cede0995a0fee8b298874bd5a67..9fa711496585336d957f49774872e6d3578ef0d6 100644 (file)
@@ -17,8 +17,8 @@ typedef void ACLCB(allow_t, void *);
 
 /** \ingroup ACLAPI
     Base class for maintaining Squid and transaction state for access checks.
-       Provides basic ACL checking methods. Its only child, ACLFilledChecklist,
-       keeps the actual state data. The split is necessary to avoid exposing
+    Provides basic ACL checking methods. Its only child, ACLFilledChecklist,
+    keeps the actual state data. The split is necessary to avoid exposing
     all ACL-related code to virtually Squid data types. */
 class ACLChecklist
 {
@@ -220,3 +220,4 @@ private: /* internal methods */
 };
 
 #endif /* SQUID_ACLCHECKLIST_H */
+
index efb84eece129cd6aad01400591ce9b1f1e1cae55..dc71078420ac26a884cb095f862afa9e281d271a 100644 (file)
@@ -30,3 +30,4 @@ public:
 };
 
 #endif /* SQUID_ACLDATA_H */
+
index b371293b80e7a5422eab4b1627727c34171ecbec..3139b88b0ba04afd53aa12da45226c7639b9265d 100644 (file)
@@ -39,3 +39,4 @@ private:
 };
 
 #endif /* SQUID_ACLDESTINATIONASN_H */
+
index 16d76c0f27e96bacce78935084cafe193c95d199..1216fd84df9c10d383ecb1a2ed047a5a77fafd3c 100644 (file)
@@ -98,3 +98,4 @@ ACLDestinationDomainStrategy::Instance()
 }
 
 ACLDestinationDomainStrategy ACLDestinationDomainStrategy::Instance_;
+
index 0c186ed6009c84d3f6504330637bbaa9c82c9403..02c4d4d2896edce03648acc040c86a6295439c17 100644 (file)
@@ -63,3 +63,4 @@ private:
 };
 
 #endif /* SQUID_ACLDESTINATIONDOMAIN_H */
+
index c7cbe0ef8b498cb5f96b7a8e0b71e34f3a72307f..dc0410c536c34ca7ab0cdd8c10ef0e8c34917d06 100644 (file)
@@ -100,3 +100,4 @@ ACLDestinationIP::clone() const
 {
     return new ACLDestinationIP(*this);
 }
+
index c1e630e9f4f49e54183e1b6c52407b3b4e2082df..11385c0592e6b64478249815b3750f71a866748e 100644 (file)
@@ -44,3 +44,4 @@ private:
 };
 
 #endif /* SQUID_ACLDESTINATIONIP_H */
+
index 1924d661141ac36008516cec854ad4113d8ee953..6f37d80f0f828a8e099d4581b71192f8787f9fe0 100644 (file)
@@ -156,3 +156,4 @@ ACLDomainData::clone() const
     assert (!domains);
     return new ACLDomainData;
 }
+
index 3ab9866f9a2eca260154fc7192dff2646a7bdead..7792e7eef2f142d8ffde4f35573870d500c1c089 100644 (file)
@@ -29,3 +29,4 @@ public:
 };
 
 #endif /* SQUID_ACLDOMAINDATA_H */
+
index 9ecedeaf70f8bea992c250832ad36594b3917fb3..0eedd6978f6ff63e355e34f5346ad55f6d9c8d12 100644 (file)
@@ -165,3 +165,4 @@ ACLEui64::dump() const
 }
 
 #endif /* USE_SQUID_EUI */
+
index d910e6574d5f2e97dc957949dbc809ef0d11b0c8..4b9e049548c02cda4d8fd87996ebfeeb1fa88e2c 100644 (file)
@@ -43,3 +43,4 @@ protected:
 };
 
 #endif /* SQUID_ACLEUI64_H */
+
index e8e36b6c43309a15ad000a106a780e415831a424..aaea5c6b271420d9f94b6797d7deff2d26323b32 100644 (file)
@@ -80,3 +80,4 @@ ACLExtUser::clone() const
 }
 
 #endif /* USE_AUTH */
+
index bb393b92376e0e2b5f02c0a9c5160f7729fe96d8..7a4223d48be750b147d2711723a05412dea76378 100644 (file)
@@ -44,3 +44,4 @@ private:
 
 #endif /* USE_AUTH */
 #endif /* SQUID_EXTUSER_H */
+
index b90577d165058455e6260422088856fbea759d44..11d9d06d702200baabbadcc7ccc3bd5b16f2dd94 100644 (file)
 CBDATA_CLASS_INIT(ACLFilledChecklist);
 
 ACLFilledChecklist::ACLFilledChecklist() :
-        dst_peer(NULL),
-        dst_rdns(NULL),
-        request (NULL),
-        reply (NULL),
+    dst_peer(NULL),
+    dst_rdns(NULL),
+    request (NULL),
+    reply (NULL),
 #if USE_AUTH
-        auth_user_request (NULL),
+    auth_user_request (NULL),
 #endif
 #if SQUID_SNMP
-        snmp_community(NULL),
+    snmp_community(NULL),
 #endif
 #if USE_OPENSSL
-        sslErrors(NULL),
+    sslErrors(NULL),
 #endif
-        conn_(NULL),
-        fd_(-1),
-        destinationDomainChecked_(false),
-        sourceDomainChecked_(false)
+    conn_(NULL),
+    fd_(-1),
+    destinationDomainChecked_(false),
+    sourceDomainChecked_(false)
 {
     my_addr.setEmpty();
     src_addr.setEmpty();
@@ -135,23 +135,23 @@ ACLFilledChecklist::markSourceDomainChecked()
  *    checkCallback() will delete the list (i.e., self).
  */
 ACLFilledChecklist::ACLFilledChecklist(const acl_access *A, HttpRequest *http_request, const char *ident):
-        dst_peer(NULL),
-        dst_rdns(NULL),
-        request(NULL),
-        reply(NULL),
+    dst_peer(NULL),
+    dst_rdns(NULL),
+    request(NULL),
+    reply(NULL),
 #if USE_AUTh
-        auth_user_request(NULL),
+    auth_user_request(NULL),
 #endif
 #if SQUID_SNMP
-        snmp_community(NULL),
+    snmp_community(NULL),
 #endif
 #if USE_OPENSSL
-        sslErrors(NULL),
+    sslErrors(NULL),
 #endif
-        conn_(NULL),
-        fd_(-1),
-        destinationDomainChecked_(false),
-        sourceDomainChecked_(false)
+    conn_(NULL),
+    fd_(-1),
+    destinationDomainChecked_(false),
+    sourceDomainChecked_(false)
 {
     my_addr.setEmpty();
     src_addr.setEmpty();
@@ -182,3 +182,4 @@ ACLFilledChecklist::ACLFilledChecklist(const acl_access *A, HttpRequest *http_re
         xstrncpy(rfc931, ident, USER_IDENT_SZ);
 #endif
 }
+
index fe5be227110b7ebf92d45db069f84c2f39f95399..33695b00e881bab276b6a2b54270a19859a7388a 100644 (file)
@@ -112,3 +112,4 @@ ACLFilledChecklist *Filled(ACLChecklist *checklist)
 }
 
 #endif /* SQUID_ACLFILLED_CHECKLIST_H */
+
index b42b20dc003978603a36060d22a9dce7a8cb4bc1..36c782e1f606d81e8f8aae8a071d7df59f914d95 100644 (file)
@@ -142,7 +142,7 @@ aclParseDenyInfoLine(AclDenyInfoList ** head)
 
     for (B = *head, T = head; B; T = &B->next, B = B->next)
 
-        ;      /* find the tail */
+        ;   /* find the tail */
     *T = A;
 }
 
@@ -321,3 +321,4 @@ aclDestroyDenyInfoList(AclDenyInfoList ** list)
 
     *list = NULL;
 }
+
index 83896bd6627efc7f143a9a0f774eafb73f606f65..8ffc2f401568870aaafb08f7da4dc23772f5bf89 100644 (file)
@@ -63,3 +63,4 @@ void dump_acl_access(StoreEntry * entry, const char *name, acl_access * head);
 void dump_acl_list(StoreEntry * entry, ACLList * head);
 
 #endif /* SQUID_ACL_GADGETS_H */
+
index b1e2a17091457c94e7efd9a2ca002770dad9ba82..8fa163c9055a912899899f889647a9d6094264f5 100644 (file)
@@ -29,3 +29,4 @@ ACLHierCodeStrategy::Instance()
 }
 
 ACLHierCodeStrategy ACLHierCodeStrategy::Instance_;
+
index 1222602c3324e713b4b4f3ec9795c30db49cb4a8..4cb739950999fee1c3490d6736967268b6ccc65f 100644 (file)
@@ -48,3 +48,4 @@ private:
 };
 
 #endif /* SQUID_ACLHIERCODE_H */
+
index 8a6d1621ad057e34f8afb5faaec481c6390ec560..fc0955f3ec18e8a5995c5a5192905dc0d33fd5f4 100644 (file)
@@ -79,3 +79,4 @@ ACLHierCodeData::clone() const
 {
     return new ACLHierCodeData(*this);
 }
+
index 00d8d358d3da44cf4977079c6ddc7ee7269a92d2..6957ebde72b04372efcca6849f70fa9ba5e49f1b 100644 (file)
@@ -33,3 +33,4 @@ public:
 };
 
 #endif /* SQUID_ACLHIERCODEDATA_H */
+
index 60f6de90c2fe34b616ad6c46e0fcac244e65fc72..64a1f507ee3ae871378d7c9e6a3ac997ebd6411c 100644 (file)
@@ -92,3 +92,4 @@ ACLHTTPHeaderData::clone() const
     result->hdrName = hdrName;
     return result;
 }
+
index 33aaed0e8b6a7b57387ebbe6a18eb29ba79131a0..d5e4c154f7aec9a0055a984896eb633925836e8d 100644 (file)
@@ -33,3 +33,4 @@ private:
 };
 
 #endif /* SQUID_ACLHTTPHEADERDATA_H */
+
index 5d3600302214ade585071fd5e2b9de6f77f1b6d6..dc6d31bd24b1f3aa2a3151626a41d06d5c2db43e 100644 (file)
@@ -47,3 +47,4 @@ private:
 };
 
 #endif /* SQUID_ACLHTTPREPHEADER_H */
+
index 002c1f86ca56573bd32a44cc327702399dbeac57..ea0c934acd490f24f29782c62788392886abb7ec 100644 (file)
@@ -44,3 +44,4 @@ private:
 };
 
 #endif /* SQUID_ACLHTTPREQHEADER_H */
+
index 8d7b76c4be3e441a2a21ddf77e89799627601c01..8be1302480f90753e362603c4f8ffc9c2e555f48 100644 (file)
@@ -50,3 +50,4 @@ protected:
 };
 
 #endif /* SQUID_ACLHTTPSTATUS_H */
+
index 01b7ed97354ef72fdabd3c14b6201e5ac8713c24..d4c196f26f28b8fa500f80c9a3e2e63dbe5ad529 100644 (file)
@@ -99,3 +99,4 @@ Acl::InnerNode::resumeMatchingAt(ACLChecklist *checklist, Acl::Nodes::const_iter
     // merges async and failures (-1) into "not matched"
     return result == 1;
 }
+
index b2631741f2dce4d28abd6b378f7a0708164cd55d..a0bc27eafe22512cf16baa59340b04e38d0c94ff 100644 (file)
@@ -55,3 +55,4 @@ protected:
 } // namespace Acl
 
 #endif /* SQUID_ACL_INNER_NODE_H */
+
index 9c4566dc2541975d12439463b134a98c8bc6be15..8291a92a385a0ccf0060a862f441f2be230d8434 100644 (file)
@@ -97,3 +97,4 @@ ACLIntRange::dump() const
 
     return sl;
 }
+
index bca4acffac4f7f54e6edce3086f5a748e1d9ba49..c8fe290a54b3508efcf477e577ac56199073d1af 100644 (file)
@@ -33,3 +33,4 @@ private:
 };
 
 #endif /* SQUID_ACLINTRANGE_H */
+
index b799c7f9b33a84ccce63711038e7fe7e4f72514d..aded60f1e42127dcc70b5a9a7e6eb3d4f8173f80 100644 (file)
@@ -33,8 +33,8 @@ ACLIP::operator delete (void *address)
 /**
  * Writes an IP ACL data into a buffer, then copies the buffer into the wordlist given
  *
- \param ip     ACL data structure to display
- \param state  wordlist structure which is being generated
+ \param ip  ACL data structure to display
+ \param state   wordlist structure which is being generated
  */
 void
 ACLIP::DumpIpListWalkee(acl_ip_data * const & ip, void *state)
@@ -45,8 +45,8 @@ ACLIP::DumpIpListWalkee(acl_ip_data * const & ip, void *state)
 /**
  * print/format an acl_ip_data structure for debugging output.
  *
- \param buf    string buffer to write to
- \param len    size of the buffer available
+ \param buf string buffer to write to
+ \param len size of the buffer available
  */
 void
 acl_ip_data::toStr(char *buf, int len) const
@@ -542,3 +542,4 @@ ACLIP::match(Ip::Address &clientip)
 acl_ip_data::acl_ip_data() :addr1(), addr2(), mask(), next (NULL) {}
 
 acl_ip_data::acl_ip_data(Ip::Address const &anAddress1, Ip::Address const &anAddress2, Ip::Address const &aMask, acl_ip_data *aNext) : addr1(anAddress1), addr2(anAddress2), mask(aMask), next(aNext) {}
+
index 36137ecf983934a849a9e6a42a32aeb5f53bc33b..3995c20d7371720182e7c2082008f7ae0782acfc 100644 (file)
@@ -34,7 +34,7 @@ public:
 
     Ip::Address mask; /**< \todo This should perhapse be stored as a CIDR range now instead of a full IP mask. */
 
-    acl_ip_data *next;         /**< used for parsing, not for storing */
+    acl_ip_data *next;      /**< used for parsing, not for storing */
 
 private:
 
@@ -71,3 +71,4 @@ private:
 };
 
 #endif /* SQUID_ACLIP_H */
+
index 09fb0e3f4ed4ba6d2678f3abefe48d95c29dbc88..a335aa03a305a4afb9933c22b209ebb4eaa0dda3 100644 (file)
@@ -29,3 +29,4 @@ ACLLocalIP::clone() const
 {
     return new ACLLocalIP(*this);
 }
+
index cf1587ac5f508c37413234340018dd05826eaffa..92216375c58fdd55baead8979991c6c755a5b6a5 100644 (file)
@@ -29,3 +29,4 @@ private:
 };
 
 #endif /* SQUID_ACLLOCALIP_H */
+
index f38cbdba5bcd8cb5d9a4c83b5389a7e78de3e808..803a68b8a612b7feb8b962b1ec162f1b4d772e34 100644 (file)
@@ -24,3 +24,4 @@ ACLLocalPortStrategy::Instance()
 }
 
 ACLLocalPortStrategy ACLLocalPortStrategy::Instance_;
+
index da5756b4d0deda23c252abf34adb639b74e05628..b936c496c883f8ef0828b3dac7cdc93ea6f3d1e1 100644 (file)
@@ -44,3 +44,4 @@ private:
 };
 
 #endif /* SQUID_ACLLOCALPORT_H */
+
index 79cf3d60ee7df0eec644a9e3081cc5197cdae583..d4a768ed5d54f6ec8de67349246e0161e174d7ae 100644 (file)
@@ -100,3 +100,4 @@ ACLMaxConnection::prepareForUse()
 
     debugs(22, DBG_CRITICAL, "WARNING: 'maxconn' ACL (" << name << ") won't work with client_db disabled");
 }
+
index 3e06b0b213e158dd98906df46356077af8005169..b3b723bdae12c37a6cd16f61bcf4f96e7b211aed 100644 (file)
@@ -40,3 +40,4 @@ protected:
 };
 
 #endif /* SQUID_ACLMAXCONNECTION_H */
+
index eb4106023482a2972880215be1e2d08b70a5ac04..97c12afde21311755649d1cbff1ff2f98ba73748 100644 (file)
@@ -29,3 +29,4 @@ ACLMethodStrategy::Instance()
 }
 
 ACLMethodStrategy ACLMethodStrategy::Instance_;
+
index a77fece5c84df7c0c630e61764e39548e2a03967..b86f5a1c23310e80c4e697ea12343b4902b658b1 100644 (file)
@@ -48,3 +48,4 @@ private:
 };
 
 #endif /* SQUID_ACLMETHOD_H */
+
index 552315cccbd1d2944460b739452439c261180520..05944962e34ebebb2d7c459b58900326a1387368 100644 (file)
@@ -69,3 +69,4 @@ ACLMethodData::clone() const
     assert(values.empty());
     return new ACLMethodData(*this);
 }
+
index bca112e91861d240ce611417e49ad69ae94b83d0..a84ab156636fc46ff5650a1e08a0c1a3ab9490a1 100644 (file)
@@ -36,3 +36,4 @@ public:
 };
 
 #endif /* SQUID_ACLMETHODDATA_H */
+
index d16998f881879391ecb6f2423bcb0ccc4fef1834..d7db1e8f89595ec7da3a3e9994034eedd10fa5c1 100644 (file)
@@ -33,3 +33,4 @@ ACLMyPortNameStrategy::Instance()
 }
 
 ACLMyPortNameStrategy ACLMyPortNameStrategy::Instance_;
+
index 3a1adf68c425938d955648159b16655222212cd5..b78c0811a8ac088929d750ed8bf84eea73a3f3d6 100644 (file)
@@ -38,3 +38,4 @@ private:
 };
 
 #endif /* SQUID_ACLMYPORTNAME_H */
+
index a08d673e046eafdba09c94501a989c6180a159ca..209363b0c03dd335c23d277c530f4a2258116d7f 100644 (file)
@@ -45,3 +45,4 @@ private:
 };
 
 #endif /* SQUID_ACLNOTE_H */
+
index b2ecf48740ec7e817009a9529db828a8339ac434..4ecedfc26128bf9cf673c8239e1d9b0cbeba236a 100644 (file)
@@ -93,3 +93,4 @@ ACLNoteData::clone() const
     result->name = name;
     return result;
 }
+
index cc362993e83b508ecd3af582dae70603d7b2d2f7..a84b2bbe4f5a4232a1de3600acc883666dbc8652 100644 (file)
@@ -36,3 +36,4 @@ private:
 };
 
 #endif /* SQUID_ACLNOTEDATA_H */
+
index c8f7204c9494559b09736a661192cb3f5a72635e..da2650e0dbab7476d89c0c7ec0054714980e1f7f 100644 (file)
@@ -28,3 +28,4 @@ ACLPeerNameStrategy::Instance()
 }
 
 ACLPeerNameStrategy ACLPeerNameStrategy::Instance_;
+
index eb1b05f9464ed2e48ae142b132384dd46bd76242..31168d22da6be4270636e22e56698cba87aab99e 100644 (file)
@@ -41,3 +41,4 @@ private:
 };
 
 #endif /* SQUID_ACLPEERNAME_H */
+
index 466a4e7db6999ee0043ef7089cce6e930de05744..4adfc53abb0f35ff86fc8f4b343afeb4051b3211 100644 (file)
@@ -29,3 +29,4 @@ ACLProtocolStrategy::Instance()
 }
 
 ACLProtocolStrategy ACLProtocolStrategy::Instance_;
+
index 5197b846cc0c1c724b04aeea8daf8a0dcd91ac69..2e73e773070ca2b2bf0d5c26c6b70b86fe8c0b40 100644 (file)
@@ -42,3 +42,4 @@ private:
 };
 
 #endif /* SQUID_ACLPROTOCOL_H */
+
index d0d96d362d11798ed0b39b9135ef985cb5c8244e..de45bb5d57df6091efe5b0ee71f190aff30a0cc6 100644 (file)
@@ -75,3 +75,4 @@ ACLProtocolData::clone() const
     assert(values.empty());
     return new ACLProtocolData(*this);
 }
+
index 90f263940309acee4e6f5e053e50a19575d2abcf..f6ca23587d5f219a1e2a9760bc643404bd673ee7 100644 (file)
@@ -34,3 +34,4 @@ public:
 };
 
 #endif /* SQUID_ACLPROTOCOLDATA_H */
+
index 4c784d31c8d8caa5c21063480eeb25fee08bac7d..1cdc09d9d8d574117953ecc549bca7b386ba9ef0 100644 (file)
@@ -118,3 +118,4 @@ ACLRandom::dump() const
     sl.push_back(SBuf(pattern));
     return sl;
 }
+
index da0bb54fdf824e33ac686895a8581428cd21ea05..435bd2d5482a80e237c0467e52aa9d593ea6e084 100644 (file)
@@ -39,3 +39,4 @@ protected:
 };
 
 #endif /* SQUID_ACL_RANDOM_H */
+
index 61c36ef98746c1c0605ec4ef8305f3a7c5041ab4..02e39de24174178ba80740bbed996de58ee9a4b2 100644 (file)
@@ -22,3 +22,4 @@ private:
 };
 
 #endif /* SQUID_ACLREFERER_H */
+
index 3256d2d8ed81374da1526c1ccf1ccd6d58e1055a..5d38baeadf7bfb6c7faf56f922a5f6ec2ce9883f 100644 (file)
@@ -339,3 +339,4 @@ ACLRegexData::clone() const
     assert (!data);
     return new ACLRegexData;
 }
+
index 95f84fecb8e5f82d1a2f8fb0ccafe9efab65d2e2..99c9b53d6a7fdf776be1dbc358577e2faa9d45ad 100644 (file)
@@ -30,3 +30,4 @@ private:
 };
 
 #endif /* SQUID_ACLREGEXDATA_H */
+
index b78b3bb4d1296142712597d8990ea2beb373d688..c5be4cb90a050a18eec4209e36cf404419c905a3 100644 (file)
@@ -64,3 +64,4 @@ template <http_hdr_type header>
 ACLReplyHeaderStrategy<header> * ACLReplyHeaderStrategy<header>::Instance_ = NULL;
 
 #endif /* SQUID_REPLYHEADERSTRATEGY_H */
+
index 1bde4d52adc8a0ddbfb2a8489c0fb922b818e582..e2bbc6a250832f04931306ab2258bce4598b1484 100644 (file)
@@ -39,3 +39,4 @@ ACLReplyHeaderStrategy<HDR_CONTENT_TYPE>::match(ACLData<char const *> * &data, A
 }
 
 #endif /* SQUID_ACLREPLYMIMETYPE_H */
+
index bdc08373c9d3895b365bd7ed53d42c8afd7b2aa3..df9cb00ecb11ff2c17acf4c13e99e2ec6cc40eed 100644 (file)
@@ -62,3 +62,4 @@ template <http_hdr_type header>
 ACLRequestHeaderStrategy<header> * ACLRequestHeaderStrategy<header>::Instance_ = NULL;
 
 #endif /* SQUID_REQUESTHEADERSTRATEGY_H */
+
index 0ea8f04534e29cd851f795d2e2dd21f769cc0776..8f1b9132fc7014f27d3a1f8758ce36b6e071ca43 100644 (file)
@@ -39,3 +39,4 @@ ACLRequestHeaderStrategy<HDR_CONTENT_TYPE>::match (ACLData<char const *> * &data
 }
 
 #endif /* SQUID_ACLREQUESTMIMETYPE_H */
+
index 5f814a364eef8060e83e3df44c284d29942f8f0e..dc29711f01096860773ca3d0bd54f27738fbd775 100644 (file)
@@ -41,3 +41,4 @@ ACLServerCertificateStrategy::Instance()
 ACLServerCertificateStrategy ACLServerCertificateStrategy::Instance_;
 
 #endif /* USE_OPENSSL */
+
index 5b5e1bd25f493d157a99ae13ac2e97fb82db1ffe..c720eea1931dcfad1fe548b88cf846698d0d06c2 100644 (file)
@@ -42,3 +42,4 @@ private:
 };
 
 #endif /* SQUID_ACLSERVERCERTIFICATE_H */
+
index de2c3d3108bd9c1647ca9cc1e1f2b16e8cecb813..1ab9c2e961d45fc23a293b2910c652dee6cdac15 100644 (file)
@@ -33,3 +33,4 @@ private:
 };
 
 #endif /* SQUID_ACL_SOURCEASN_H */
+
index b999c5f19b40aa194e7f5c02233150d08b7c5bf9..9354a2ed5d1e2e2db7e2596bd14618b2a97abff2 100644 (file)
@@ -65,3 +65,4 @@ ACLSourceDomainStrategy::Instance()
 }
 
 ACLSourceDomainStrategy ACLSourceDomainStrategy::Instance_;
+
index 73ebdf7864acf181b0f66c96771a091292e51d69..71054f8cba8d09e0f182d3b6823d0fc82b17009b 100644 (file)
@@ -54,3 +54,4 @@ private:
 };
 
 #endif /* SQUID_ACLSOURCEDOMAIN_H */
+
index 08c7f58f0f8fccc15f5cdb7916245b988480ca8f..464acc2806f012b0f6545d0331e0f97e308bc032 100644 (file)
@@ -29,3 +29,4 @@ ACLSourceIP::clone() const
 {
     return new ACLSourceIP(*this);
 }
+
index f4fb77b8df5b0e1ec2686d3f159797e8d738d187..b0452dd7c547567b22f7c209c0b52d5f1c216c57 100644 (file)
@@ -26,3 +26,4 @@ private:
 };
 
 #endif /* SQUID_ACLSOURCEIP_H */
+
index e161020d8d83166308b10d8926b21858513ea042..4381d7144e800bb9953aae1fc1fd8bb7c9e00db9 100644 (file)
@@ -24,3 +24,4 @@ ACLSslErrorStrategy::Instance()
 }
 
 ACLSslErrorStrategy ACLSslErrorStrategy::Instance_;
+
index 4b4eead7f73c160f93eeda7c0e61341b6f82e550..4ecd18dd4b02c31e00a6082a592ce005d2789716 100644 (file)
@@ -39,3 +39,4 @@ private:
 };
 
 #endif /* SQUID_ACLSSL_ERROR_H */
+
index 0c166ed7a6a1e9c146b10aa740864dec2e0a9ffe..8ca619589dd4f02638bc3ca302ef6a7f9ee1c377 100644 (file)
@@ -81,3 +81,4 @@ ACLSslErrorData::clone() const
     assert (!values);
     return new ACLSslErrorData(*this);
 }
+
index 5148864d55668c4095a8ba090aebaf97c1e98022..f918b13f7418734b939f984ddc09c0f63d2429c5 100644 (file)
@@ -35,3 +35,4 @@ public:
 };
 
 #endif /* SQUID_ACLSSL_ERRORDATA_H */
+
index 1a6958f277f5c3cb2385801593135f30f3499adf..fdcd777f1915c82671cb39bd570c98edbf2e1e32 100644 (file)
@@ -28,3 +28,4 @@ template class ACLStrategised<const char *>;
 
 /* ACLLocalPort + ACLSslError */
 template class ACLStrategised<int>;
+
index 810cb31525e1731cf83cdd9aa97e3afd0b2ddc44..508363836d3a5fdaefbf7f7278c85b96bc3bdea1 100644 (file)
@@ -132,3 +132,4 @@ ACLStrategised<MatchType>::clone() const
 }
 
 #endif /* SQUID_ACLSTRATEGISED_H */
+
index 6fde525bb804bddee026acf4f1f87ffd8037a569..16c2bc1f4a7d6663de64e42b146ab3cad51dcac3 100644 (file)
@@ -32,3 +32,4 @@ public:
 };
 
 #endif /* SQUID_ACLSTRATEGY_H */
+
index 733e6b7011d7185ff59e090bd61df98326348aba..f6a43117de79be1bb93b4524223e1824222e38f9 100644 (file)
@@ -103,3 +103,4 @@ ACLStringData::clone() const
     assert (!values);
     return new ACLStringData(*this);
 }
+
index da0ad3b5bba4accfd045e92a5aa7cb05d96826ea..e0dcedceeb1b3eafca82e78d1a5f5bb2a3287dd5 100644 (file)
@@ -34,3 +34,4 @@ public:
 };
 
 #endif /* SQUID_ACLSTRINGDATA_H */
+
index a6afe0a1b1fef05fc6a62855d06a667fde9bb242..c798de5c549923dc2e1d8d8dbf4b936687a2a007 100644 (file)
@@ -27,3 +27,4 @@ ACLTagStrategy::Instance()
 }
 
 ACLTagStrategy ACLTagStrategy::Instance_;
+
index 2898178ec3cc8b65b1bf95ba3d71b71801445602..df2477be0ea86364d3e9d88faae91270925640ac 100644 (file)
@@ -39,3 +39,4 @@ private:
 };
 
 #endif /* SQUID_ACLMYPORTNAME_H */
+
index a5bdb142a22b8a49183e52369c119c97b805f529..bc2911dbfd22dc5727441c849e1277ffeb79e8d0 100644 (file)
@@ -26,3 +26,4 @@ ACLTimeStrategy::Instance()
 }
 
 ACLTimeStrategy ACLTimeStrategy::Instance_;
+
index 2e48944adde099ec8bc798cb21c7d79e4e056f97..3fd87bedbac362d554554c1d76bcd0416c40de23 100644 (file)
@@ -41,3 +41,4 @@ public:
 };
 
 #endif /* SQUID_ACLTIME_H */
+
index fdbddbb5218e0b8719b23c21a81297f2d05aeabb..b7ed19df6f570a1ebc38b2c2945a7e5694266e9a 100644 (file)
@@ -232,3 +232,4 @@ ACLTimeData::clone() const
 {
     return new ACLTimeData(*this);
 }
+
index 1a6f8598a56c2bff4ea87712c37c4ef0fca29748..c0e971b95d69735e909e92fe1407aa418911c60d 100644 (file)
@@ -36,3 +36,4 @@ private:
 };
 
 #endif /* SQUID_ACLTIMEDATA_H */
+
index 33aa45bd8f6e80a209c28d98a0148425d68c8ab8..845cf79a818891467cad88392b5c936c3aeb0d83 100644 (file)
@@ -80,3 +80,4 @@ Acl::Tree::treeDump(const char *prefix, const ActionToString &convert) const
     }
     return text;
 }
+
index 339b1acc18d83af505c775ae4bc68ecc0222276b..9c9faf343511f0e07a2b6c67da5d661597c4f336 100644 (file)
@@ -50,3 +50,4 @@ protected:
 } // namespace Acl
 
 #endif /* SQUID_ACL_TREE_H */
+
index 9954a93d88d9f88b3fbe6c2dc8bbae6d0d25c506..0aaff6357320b67ecc150889a8f78e4ba96983a2 100644 (file)
@@ -32,3 +32,4 @@ ACLUrlStrategy::Instance()
 }
 
 ACLUrlStrategy ACLUrlStrategy::Instance_;
+
index 9f5f32c3d1a56e999d7c49afc9ddf50706dc0284..c8fc09fdc6f50727c5dd226fe123045b1091b773 100644 (file)
@@ -42,3 +42,4 @@ public:
 };
 
 #endif /* SQUID_ACLURL_H */
+
index 5ba3c5a5104c9895a8ea975506423d95d48191e1..51dd6ead9b97787c39ad65395cf0ef73311a67bb 100644 (file)
@@ -38,3 +38,4 @@ ACLUrlLoginStrategy::Instance()
 }
 
 ACLUrlLoginStrategy ACLUrlLoginStrategy::Instance_;
+
index 04c15b7cff4d5b344f85ece3f62102c0d9bc9d58..f54918c83685f4658bdd88b465b7b11ce8441665 100644 (file)
@@ -44,3 +44,4 @@ public:
 };
 
 #endif /* SQUID_ACLURLLOGIN_H */
+
index 8a863516d91d975ac4ae0da86daec31c80744128..debf1804adc3e27d8b218bed85801b4dbdfbdb35 100644 (file)
@@ -35,3 +35,4 @@ ACLUrlPathStrategy::Instance()
 }
 
 ACLUrlPathStrategy ACLUrlPathStrategy::Instance_;
+
index f6eba0fd898f70c2da226fe050371140145a651b..99d0786fde6df79bd3b443976edb6ddbbc4c7644 100644 (file)
@@ -43,3 +43,4 @@ public:
 };
 
 #endif /* SQUID_ACLURLPATH_H */
+
index 61db2f794d2dfebc9bc3d1b19510167fd54caafe..abc3b6295a8cdd45b3227a313a5e687757263841 100644 (file)
@@ -25,3 +25,4 @@ ACLUrlPortStrategy::Instance()
 }
 
 ACLUrlPortStrategy ACLUrlPortStrategy::Instance_;
+
index 85f1835d628cb6259eed0ee7fa04502dac452eb4..022fafa08d37fdac91cb6d5471e481582e300ca6 100644 (file)
@@ -40,3 +40,4 @@ private:
 };
 
 #endif /* SQUID_ACLURLPORT_H */
+
index 1ad700f481cb04151edb9797bf67dc7a15378c26..ce53f75f7f299653015e177b33f21d7b375f6ae4 100644 (file)
@@ -148,3 +148,4 @@ ACLUserData::clone() const
     assert (!names);
     return new ACLUserData;
 }
+
index 6fe94686ab0aee19d127c0d656ad1362681ee3ed..e51ce40f5fa5f22ce7fd9fbf08c1a9c0f3e8158b 100644 (file)
@@ -34,3 +34,4 @@ public:
 };
 
 #endif /* SQUID_ACLUSERDATA_H */
+
index 67d304cdd1140dcb65f0f967f46b8843938c40f7..673fd71c795edf49cdf2002afb54c783085960e0 100644 (file)
@@ -45,3 +45,4 @@ class ExternalACLEntry;
 typedef RefCount<ExternalACLEntry> ExternalACLEntryPointer;
 
 #endif /* SQUID_ACL_FORWARD_H */
+
index 83709fa5d8816a1d1d2fedcb696315e5559e5e14..82ec90ee2d52c1c8ab18cad6d7d45a9b7dd57a35 100644 (file)
@@ -45,9 +45,9 @@ Adaptation::AccessCheck::Start(Method method, VectPoint vp,
 
 Adaptation::AccessCheck::AccessCheck(const ServiceFilter &aFilter,
                                      Adaptation::Initiator *initiator):
-        AsyncJob("AccessCheck"), filter(aFilter),
-        theInitiator(initiator),
-        acl_checklist(NULL)
+    AsyncJob("AccessCheck"), filter(aFilter),
+    theInitiator(initiator),
+    acl_checklist(NULL)
 {
 #if ICAP_CLIENT
     Adaptation::Icap::History::Pointer h = filter.request->icapHistory();
@@ -236,3 +236,4 @@ Adaptation::AccessCheck::isCandidate(AccessRule &r)
     debugs(93,7,HERE << r.groupId << (wants ? " wants" : " ignores"));
     return wants;
 }
+
index 15735b2eb58edfd5c446e270f7e594e538356aeb..5f9a241c8c548f1b4f93f909fbef362fd6e6e693 100644 (file)
@@ -74,3 +74,4 @@ protected:
 } // namespace Adaptation
 
 #endif /* SQUID_ADAPTATION__ACCESS_CHECK_H */
+
index 36fc768d6e2a0dfd1a53a623a7e3f03d0d8d9e1c..87b24f217cdf2aaf42f243b5513b6c2e614deda0 100644 (file)
@@ -88,3 +88,4 @@ Adaptation::FindRuleByGroupId(const String &groupId)
 
     return NULL;
 }
+
index 82185d648fb9f32caa383f1921cc8626a1bf4b9f..2aa82a4e34ea218bc4cc58b580e920f54794c7da 100644 (file)
@@ -52,3 +52,4 @@ AccessRule *FindRuleByGroupId(const String &groupId);
 } // namespace Adaptation
 
 #endif /* SQUID_ADAPTATION__ACCESS_RULE_H */
+
index 42d5c3b83146ef612d5f09626bc21f69f14c58e9..8d0aa25ea2f5f0c0ec24ab6a5d0008bf98455bf6 100644 (file)
@@ -48,3 +48,4 @@ Adaptation::Answer::print(std::ostream &os) const
 Adaptation::Answer::Answer(Kind aKind): final(true), kind(aKind)
 {
 }
+
index 535a98e938ba7f9dde5de4bd337002491418a0e8..666e7c9ae72a61b77acce3da749d629468a0087f 100644 (file)
@@ -53,3 +53,4 @@ std::ostream &operator <<(std::ostream &os, const Answer &answer)
 } // namespace Adaptation
 
 #endif /* SQUID_ADAPTATION__ANSWER_H */
+
index a80cfd6a70fe42de03177c636222305a3f780e0d..39689073c9ffc87d92a9a4216310e56ac558a70a 100644 (file)
@@ -293,8 +293,8 @@ Adaptation::Config::DumpAccess(StoreEntry *entry, const char *name)
 }
 
 Adaptation::Config::Config() :
-        onoff(0), service_failure_limit(0), oldest_service_failure(0),
-        service_revival_delay(0)
+    onoff(0), service_failure_limit(0), oldest_service_failure(0),
+    service_revival_delay(0)
 {}
 
 // XXX: this is called for ICAP and eCAP configs, but deals mostly
@@ -303,3 +303,4 @@ Adaptation::Config::~Config()
 {
     freeService();
 }
+
index 6025cb2c24939094615a75950dd5769d54a2152d..5e286ecdabed5bdc0d84f822fc49da7d9b8d0d5b 100644 (file)
@@ -105,3 +105,4 @@ private:
 } // namespace Adaptation
 
 #endif /* SQUID_ADAPTATION__CONFIG_H */
+
index 3ca7ce269b866fe57f88cae276d86678173a58a7..2aecea39026c380bff2525079368a0f3798746d3 100644 (file)
@@ -28,3 +28,4 @@ Adaptation::DynamicGroupCfg::clear()
     id.clean();
     services.clear();
 }
+
index 423175ff8ce3d1f4e2730b3909d33355310f6bd5..bcd4bb468a630beb54b117aae7c9c0df8f9dfdcc 100644 (file)
@@ -25,3 +25,4 @@ const char *vectPointStr(VectPoint); // TODO: make into a stream op?
 } // namespace Adaptation
 
 #endif /* SQUID_ADAPTATION_ELEMENTS_H */
+
index 0622a42f95c9044dbe41615513ded1fdf1a434f1..31f2be51013b795a2cf8138d12f101feb570b6e1 100644 (file)
 const static char *TheNullServices = ",null,";
 
 Adaptation::History::Entry::Entry(const String &serviceId, const timeval &when):
-        service(serviceId), start(when), theRptm(-1), retried(false)
+    service(serviceId), start(when), theRptm(-1), retried(false)
 {
 }
 
 Adaptation::History::Entry::Entry():
-        start(current_time), theRptm(-1), retried(false)
+    start(current_time), theRptm(-1), retried(false)
 {
 }
 
@@ -41,9 +41,9 @@ int Adaptation::History::Entry::rptm()
 }
 
 Adaptation::History::History():
-        lastMeta(hoReply),
-        allMeta(hoReply),
-        theNextServices(TheNullServices)
+    lastMeta(hoReply),
+    allMeta(hoReply),
+    theNextServices(TheNullServices)
 {
 }
 
@@ -180,3 +180,4 @@ bool Adaptation::History::extractFutureServices(DynamicGroupCfg &value)
     theFutureServices.clear();
     return true;
 }
+
index be35d1f11b7c87dcdbc9d2a57cbc525b4b4f9c5d..82e41c36fd3026f56f23ef37c9e5079ec679a911 100644 (file)
@@ -108,3 +108,4 @@ private:
 } // namespace Adaptation
 
 #endif
+
index ffb72cdedb49a74d387d97745d23e00cfb584682..f52478f154f65f8145ed6ec636c21815f94c33ac 100644 (file)
@@ -24,7 +24,7 @@ class AnswerCall: public AsyncCallT<AnswerDialer>
 {
 public:
     AnswerCall(const char *aName, const AnswerDialer &aDialer) :
-            AsyncCallT<AnswerDialer>(93, 5, aName, aDialer), fired(false) {}
+        AsyncCallT<AnswerDialer>(93, 5, aName, aDialer), fired(false) {}
     virtual void fire() {
         fired = true;
         AsyncCallT<AnswerDialer>::fire();
@@ -93,3 +93,4 @@ const char *Adaptation::Initiate::status() const
 {
     return AsyncJob::status(); // for now
 }
+
index 2f1c9df7af36f4960382181b03711c1bb2b80468..bdb979dc2b71e1b2fc1d024f8d017d2f2982262a 100644 (file)
@@ -58,3 +58,4 @@ private:
 } // namespace Adaptation
 
 #endif /* SQUID_ADAPTATION__INITIATE_H */
+
index 75821770a5ba94f50d010b5b017282986ab92b1e..30579a80f8cffc109b40dd7ba3c8c34a6a919005 100644 (file)
@@ -40,3 +40,4 @@ Adaptation::Initiator::announceInitiatorAbort(CbcPointer<Initiate> &x)
     CallJobHere(93, 5, x, Initiate, noteInitiatorAborted);
     clearAdaptation(x);
 }
+
index 222452b1773dd4762afb7fd002225f9a0c1297ca..c017df504abf1069b1fbf8b108a1e63a2375816e 100644 (file)
@@ -55,3 +55,4 @@ protected:
 } // namespace Adaptation
 
 #endif /* SQUID_ADAPTATION__INITIATOR_H */
+
index bec14a857fb74eb4e94739397fb1340c983ba23a..98e1a1ad00c8848a1afca99e03d33ce125b9a274 100644 (file)
@@ -24,15 +24,15 @@ Adaptation::Iterator::Iterator(
     HttpMsg *aMsg, HttpRequest *aCause,
     AccessLogEntry::Pointer &alp,
     const ServiceGroupPointer &aGroup):
-        AsyncJob("Iterator"),
-        Adaptation::Initiate("Iterator"),
-        theGroup(aGroup),
-        theMsg(aMsg),
-        theCause(aCause),
-        al(alp),
-        theLauncher(0),
-        iterations(0),
-        adapted(false)
+    AsyncJob("Iterator"),
+    Adaptation::Initiate("Iterator"),
+    theGroup(aGroup),
+    theMsg(aMsg),
+    theCause(aCause),
+    al(alp),
+    theLauncher(0),
+    iterations(0),
+    adapted(false)
 {
     if (theCause != NULL)
         HTTPMSGLOCK(theCause);
@@ -288,3 +288,4 @@ Adaptation::ServiceFilter Adaptation::Iterator::filter() const
 }
 
 CBDATA_NAMESPACED_CLASS_INIT(Adaptation, Iterator);
+
index 11c49e8607ba8125672bd67734b2954f12fea4e6..6dacc85287cc3c7eb9eb3569290cc097a699890a 100644 (file)
@@ -78,3 +78,4 @@ protected:
 } // namespace Adaptation
 
 #endif /* SQUID_ADAPTATION__ITERATOR_H */
+
index bdf8f8d647097491b16bd5d5924615db4369b878..912964397029aaf7e3d4e84f7095838075b25542 100644 (file)
@@ -62,3 +62,4 @@ Adaptation::Message::ShortCircuit(Message &src, Message &dest)
     }
     dest.set(src.header->clone());
 }
+
index ddfd7c3781ab50f687bb632d1d7bc46493b3ac9c..60a16ff2f945e5db5461c427a5e34a887119454d 100644 (file)
@@ -55,3 +55,4 @@ private:
 // TODO: replace ICAPInOut with Adaptation::Message (adding one for "cause")
 
 #endif /* SQUID__ADAPTATION__MESSAGE_H */
+
index 58b0f91d2c5e4ec3fd4f641670e774a3e6ecfc0f..b137053401715bf229812c5e8354500e97200f41 100644 (file)
@@ -82,3 +82,4 @@ void Adaptation::DetachServices()
         AllServices().pop_back();
     }
 }
+
index 78ef53b527eba71e48a6be0f3fd2ac4381c23e10..179b99f0d676b063fe4af8e026125dbf9157efac 100644 (file)
@@ -79,3 +79,4 @@ void DetachServices();
 } // namespace Adaptation
 
 #endif /* SQUID_ADAPTATION__SERVICE_H */
+
index 08a50ddea1e54eadb9ef449ea402f4921332b9d4..a785b0d6720b2b9408a0aa173abe7a57e12ca71d 100644 (file)
@@ -17,9 +17,9 @@
 #include <set>
 
 Adaptation::ServiceConfig::ServiceConfig():
-        port(-1), method(methodNone), point(pointNone),
-        bypass(false), maxConn(-1), onOverload(srvWait),
-        routing(false), ipv6(false)
+    port(-1), method(methodNone), point(pointNone),
+    bypass(false), maxConn(-1), onOverload(srvWait),
+    routing(false), ipv6(false)
 {}
 
 const char *
@@ -315,3 +315,4 @@ Adaptation::ServiceConfig::grokExtension(const char *name, const char *value)
            name << '=' << value);
     return false;
 }
+
index ca8f50b07c7367b19aacfada32d9c52db952ed44..956f1ae05f7ef9ddfe778031fa300621dcaf15ab 100644 (file)
@@ -64,3 +64,4 @@ protected:
 } // namespace Adaptation
 
 #endif /* SQUID_ADAPTATION__SERVICE_CONFIG_H */
+
index 8a7b02dfbf8d68d85f033c1c7e370e9d092bd8d0..c853b4985790d37c0c0890af41450f0006c04446 100644 (file)
 #include "HttpRequest.h"
 
 Adaptation::ServiceFilter::ServiceFilter(Method aMethod, VectPoint aPoint, HttpRequest *aReq, HttpReply *aRep, AccessLogEntry::Pointer const &alp):
-        method(aMethod),
-        point(aPoint),
-        request(aReq),
-        reply(aRep),
-        al(alp)
+    method(aMethod),
+    point(aPoint),
+    request(aReq),
+    reply(aRep),
+    al(alp)
 {
     if (reply)
         HTTPMSGLOCK(reply);
@@ -28,11 +28,11 @@ Adaptation::ServiceFilter::ServiceFilter(Method aMethod, VectPoint aPoint, HttpR
 }
 
 Adaptation::ServiceFilter::ServiceFilter(const ServiceFilter &f):
-        method(f.method),
-        point(f.point),
-        request(f.request),
-        reply(f.reply),
-        al(f.al)
+    method(f.method),
+    point(f.point),
+    request(f.request),
+    reply(f.reply),
+    al(f.al)
 {
     if (request)
         HTTPMSGLOCK(request);
@@ -62,3 +62,4 @@ Adaptation::ServiceFilter &Adaptation::ServiceFilter::operator =(const ServiceFi
     }
     return *this;
 }
+
index 857ef716cd7986e826cc0f2d0de3cde395f7fcc9..19693f34092ff8ab2d16f73f9031efb79d336c29 100644 (file)
@@ -39,3 +39,4 @@ public:
 } // namespace Adaptation
 
 #endif /* SQUID_ADAPTATION__SERVICE_FILTER_H */
+
index aa0482170a5507a0826fb4e9ca51caf4d53366cb..fa730ce36bdcc0c0de2d2cbc4a2d0a868da74e56 100644 (file)
@@ -19,8 +19,8 @@
 #include "wordlist.h"
 
 Adaptation::ServiceGroup::ServiceGroup(const String &aKind, bool allSame):
-        kind(aKind), method(methodNone), point(pointNone),
-        allServicesSame(allSame)
+    kind(aKind), method(methodNone), point(pointNone),
+    allServicesSame(allSame)
 {
 }
 
@@ -211,7 +211,7 @@ Adaptation::ServiceSet::ServiceSet(): ServiceGroup("adaptation set", true)
 /* SingleService */
 
 Adaptation::SingleService::SingleService(const String &aServiceId):
-        ServiceGroup("single-service group", false)
+    ServiceGroup("single-service group", false)
 {
     id = aServiceId;
     services.push_back(aServiceId);
@@ -278,7 +278,7 @@ Adaptation::ServicePlan::ServicePlan(): pos(0), atEof(true)
 
 Adaptation::ServicePlan::ServicePlan(const ServiceGroupPointer &g,
                                      const ServiceFilter &filter):
-        group(g), pos(0), atEof(!g || !g->has(pos))
+    group(g), pos(0), atEof(!g || !g->has(pos))
 {
     // this will find the first service because starting pos is zero
     if (!atEof && !group->findService(filter, pos))
@@ -338,3 +338,4 @@ Adaptation::FindGroup(const ServiceGroup::Id &id)
 
     return NULL;
 }
+
index 6d5a84d33871ff94c8f17b25deaf9c3b7ad3fda3..07a1bbb8850312a7b91549afef729bc6a9968bff 100644 (file)
@@ -60,3 +60,4 @@ extern Config TheConfig;
 } // namespace Adaptation
 
 #endif /* SQUID_ECAP_CONFIG_H */
+
index 9a37ca2fa10fc61c4ce935e7ba9fd7deb7e16fcf..c3085fe3a61eb863f4a53d468d8bba76c2d3c222 100644 (file)
@@ -182,3 +182,4 @@ Adaptation::Ecap::Host::Register()
         libecap::RegisterHost(TheHost);
     }
 }
+
index 74dbed34e928e9bece7a6f5bdc14175db2c12354..f6b506e44eb6c855675d193661f7f5cbc9a54334 100644 (file)
@@ -54,3 +54,4 @@ extern const libecap::Name metaBypassable; ///< an ecap_service parameter
 } // namespace Adaptation
 
 #endif /* SQUID_ECAP_HOST_H */
+
index 8bbfeb1ae9393cc93baa06ddf6b0729dc4695b88..7bd27d2f6accbe4abe91280edc1031fe56baf4a8 100644 (file)
@@ -25,7 +25,7 @@
 /* HeaderRep */
 
 Adaptation::Ecap::HeaderRep::HeaderRep(HttpMsg &aMessage): theHeader(aMessage.header),
-        theMessage(aMessage)
+    theMessage(aMessage)
 {
 }
 
@@ -200,7 +200,7 @@ Adaptation::Ecap::FirstLineRep::TranslateProtocolId(const Name &name)
 /* RequestHeaderRep */
 
 Adaptation::Ecap::RequestLineRep::RequestLineRep(HttpRequest &aMessage):
-        FirstLineRep(aMessage), theMessage(aMessage)
+    FirstLineRep(aMessage), theMessage(aMessage)
 {
 }
 
@@ -289,7 +289,7 @@ Adaptation::Ecap::RequestLineRep::protocol(const Name &p)
 /* ReplyHeaderRep */
 
 Adaptation::Ecap::StatusLineRep::StatusLineRep(HttpReply &aMessage):
-        FirstLineRep(aMessage), theMessage(aMessage)
+    FirstLineRep(aMessage), theMessage(aMessage)
 {
 }
 
@@ -365,8 +365,8 @@ Adaptation::Ecap::BodyRep::bodySize() const
 /* MessageRep */
 
 Adaptation::Ecap::MessageRep::MessageRep(HttpMsg *rawHeader):
-        theMessage(rawHeader), theFirstLineRep(NULL),
-        theHeaderRep(NULL), theBodyRep(NULL)
+    theMessage(rawHeader), theFirstLineRep(NULL),
+    theHeaderRep(NULL), theBodyRep(NULL)
 {
     Must(theMessage.header); // we do not want to represent a missing message
 
@@ -457,3 +457,4 @@ const libecap::Body *Adaptation::Ecap::MessageRep::body() const
 {
     return theBodyRep;
 }
+
index 48d86c666f5298d74462e289f7beb45db25144c4..a19e9b997d32749a0f8845f5ad29008f8f27d69e 100644 (file)
@@ -178,3 +178,4 @@ private:
 } // namespace Adaptation
 
 #endif /* SQUID__E_CAP__MESSAGE_REP_H */
+
index d559fadc3b17922cfd8ba5a95018692183596f76..515b10eec656ef85e2bfb29ab69241ceca7b8d10 100644 (file)
@@ -8,3 +8,4 @@
 
 #include "squid.h"
 // TBD
+
index fb13435b2c0538b36158aede8a27f491ea7b3060..b5be71746494d79858ae374b51aeed84269a7867 100644 (file)
@@ -6,4 +6,5 @@
  * Please see the COPYING and CONTRIBUTORS files for details.
  */
 
-// TBD\r
+// TBD
+
index fa609934e68633a5ed05c3a146a5643ae9ef2906..cc042ea5b07fc95a6959ea7c7f004b97c3547311 100644 (file)
@@ -152,8 +152,8 @@ Adaptation::Ecap::Engine::kickAsyncServices(timeval &timeout)
 /* Adaptation::Ecap::ServiceRep */
 
 Adaptation::Ecap::ServiceRep::ServiceRep(const ServiceConfigPointer &cfg):
-        /*AsyncJob("Adaptation::Ecap::ServiceRep"),*/ Adaptation::Service(cfg),
-        isDetached(false)
+/*AsyncJob("Adaptation::Ecap::ServiceRep"),*/ Adaptation::Service(cfg),
+    isDetached(false)
 {
 }
 
@@ -343,3 +343,4 @@ Adaptation::Ecap::CheckUnusedAdapterServices(const Adaptation::Services& cfgs)
                    "ecap_service config option: " << loaded->second->uri());
     }
 }
+
index 7aa207dd88556b04c4caa0793f7c0f20015c8055..ca5638d27ffa3707d70972480f4ab8dc3bdfcec7 100644 (file)
@@ -67,3 +67,4 @@ void CheckUnusedAdapterServices(const Services& services);
 } // namespace Adaptation
 
 #endif /* SQUID_ECAP_SERVICE_REP_H */
+
index c5c7a6f786176017ad25efd1ced6eb87237e1c93..ad55389c83aea1f8df2444288a5ee0c3945cfd0c 100644 (file)
@@ -47,15 +47,15 @@ public:
 Adaptation::Ecap::XactionRep::XactionRep(
     HttpMsg *virginHeader, HttpRequest *virginCause, AccessLogEntry::Pointer &alp,
     const Adaptation::ServicePointer &aService):
-        AsyncJob("Adaptation::Ecap::XactionRep"),
-        Adaptation::Initiate("Adaptation::Ecap::XactionRep"),
-        theService(aService),
-        theVirginRep(virginHeader), theCauseRep(NULL),
-        makingVb(opUndecided), proxyingAb(opUndecided),
-        adaptHistoryId(-1),
-        vbProductionFinished(false),
-        abProductionFinished(false), abProductionAtEnd(false),
-        al(alp)
+    AsyncJob("Adaptation::Ecap::XactionRep"),
+    Adaptation::Initiate("Adaptation::Ecap::XactionRep"),
+    theService(aService),
+    theVirginRep(virginHeader), theCauseRep(NULL),
+    makingVb(opUndecided), proxyingAb(opUndecided),
+    adaptHistoryId(-1),
+    vbProductionFinished(false),
+    abProductionFinished(false), abProductionAtEnd(false),
+    al(alp)
 {
     if (virginCause)
         theCauseRep = new MessageRep(virginCause);
@@ -732,3 +732,4 @@ Adaptation::Ecap::XactionRep::status() const
 
     return buf.content();
 }
+
index 5601636f17c7b30931a13e21eb8e0bf2849358ed..dae329ad4a5ef82ac7c24aeed230723f40e4cfc4 100644 (file)
@@ -30,7 +30,7 @@ namespace Ecap
    xaction that Squid communicates with. One eCAP module may register many
    eCAP xactions. */
 class XactionRep : public Adaptation::Initiate, public libecap::host::Xaction,
-        public BodyConsumer, public BodyProducer
+    public BodyConsumer, public BodyProducer
 {
     CBDATA_CLASS(XactionRep);
 
@@ -129,3 +129,4 @@ private:
 } // namespace Adaptation
 
 #endif /* SQUID_ECAP_XACTION_REP_H */
+
index de0b39fde9d892633d618d1ce508b022474bd1f9..d8136ca8d5c7e79810c6a240717f2a1e1833ab9d 100644 (file)
@@ -43,3 +43,4 @@ typedef RefCount<ServiceGroup> ServiceGroupPointer;
 } // namespace Adaptation
 
 #endif /* SQUID_ADAPTATION__FORWARD_H */
+
index 958c67711c3ba1e1f08d2efcdfec9b7986f295bf..0357e0544d802cc38d39bb4b8103ba0b2dffb115 100644 (file)
@@ -18,3 +18,4 @@ void Adaptation::Icap::InitModule()
 void Adaptation::Icap::CleanModule()
 {
 }
+
index 4ef70d011db34b56e6da160ceebaa4f20cb39e0f..939ce010b22798687401417980bae80a8a39afd0 100644 (file)
@@ -23,3 +23,4 @@ void CleanModule();
 } // namespace Adaptation
 
 #endif /* SQUID_ICAPCLIENT_H */
+
index 3ce95261daa420a86f0dde1f31a3bf5704c727b3..a93eb2c6851809841d253cb40352b6613a283d8c 100644 (file)
 Adaptation::Icap::Config Adaptation::Icap::TheConfig;
 
 Adaptation::Icap::Config::Config() :
-        default_options_ttl(0),
-        preview_enable(0), preview_size(0), allow206_enable(0),
-        connect_timeout_raw(0), io_timeout_raw(0), reuse_connections(0),
-        client_username_header(NULL), client_username_encode(0), repeat(NULL),
-        repeat_limit(0)
+    default_options_ttl(0),
+    preview_enable(0), preview_size(0), allow206_enable(0),
+    connect_timeout_raw(0), io_timeout_raw(0), reuse_connections(0),
+    client_username_header(NULL), client_username_encode(0), repeat(NULL),
+    repeat_limit(0)
 {
 }
 
@@ -54,3 +54,4 @@ time_t Adaptation::Icap::Config::io_timeout(bool) const
     // can still be bypassed
     return ::Config.Timeout.read;
 }
+
index b6378c4bcfcc42e5d06d4dfe73f0f2ddce5e544a..9ad4ec74448fc8ef56062201e59a8b31274aa8fa 100644 (file)
@@ -57,3 +57,4 @@ extern Config TheConfig;
 } // namespace Adaptation
 
 #endif /* SQUID_ICAPCONFIG_H */
+
index 5a158f2bde08b9d00529417c93808b399a73b212..76037dca4328f260673b71544dfcc0fb23b59a31 100644 (file)
@@ -27,3 +27,4 @@ const XactOutcome xoSatisfied = "ICAP_SAT";
 
 } // namespace Icap
 } // namespace Adaptation
+
index 2656e8ea297adf7f82f49dfd181b311e93d7cdc6..f6924ad46244f349f0b4a591cb65d3d8e09c062d 100644 (file)
@@ -51,3 +51,4 @@ extern const XactOutcome xoSatisfied; ///< request satisfaction
 } // namespace Adaptation
 
 #endif /* SQUID_ICAPCLIENT_H */
+
index 62e953758582a19b3fe5c84c8f25838933b97696..b5b3799e8e62f573d55e6bbabbd2959759fb02a5 100644 (file)
@@ -13,9 +13,9 @@
 #include "SquidTime.h"
 
 Adaptation::Icap::History::History():
-        logType(LOG_TAG_NONE),
-        req_sz(0),
-        concurrencyLevel(0)
+    logType(LOG_TAG_NONE),
+    req_sz(0),
+    concurrencyLevel(0)
 {
     memset(&currentStart, 0, sizeof(currentStart));
     memset(&pastTime, 0, sizeof(pastTime));
@@ -64,3 +64,4 @@ Adaptation::Icap::History::currentTime(timeval &current) const
         current.tv_usec = 0;
     }
 }
+
index db087cdc985f1cb763a7a26cd71dfb4c508b261b..d263876f3eb21b1f350d8c46dc9c5e33370b8036 100644 (file)
@@ -57,3 +57,4 @@ private:
 } // namespace Adaptation
 
 #endif /*SQUID_HISTORY_H*/
+
index 2452d733bd53b91f6a6bc324de789148d2677b2f..68575542b96cde3c403babec7476c50bc3ade98c 100644 (file)
@@ -70,3 +70,4 @@ public:
 } // namespace Adaptation
 
 #endif /* SQUID_ICAPINOUT_H */
+
index 6e95c4f0193db8ac5d6e90b4b7b96094caf2981e..8eef79f25d9f609c8b79ab48cfb1abbb4a6e63db 100644 (file)
@@ -23,9 +23,9 @@
 
 Adaptation::Icap::Launcher::Launcher(const char *aTypeName,
                                      Adaptation::ServicePointer &aService):
-        AsyncJob(aTypeName),
-        Adaptation::Initiate(aTypeName),
-        theService(aService), theXaction(0), theLaunches(0)
+    AsyncJob(aTypeName),
+    Adaptation::Initiate(aTypeName),
+    theService(aService), theXaction(0), theLaunches(0)
 {
 }
 
@@ -156,10 +156,10 @@ bool Adaptation::Icap::Launcher::canRepeat(Adaptation::Icap::XactAbortInfo &info
 
 Adaptation::Icap::XactAbortInfo::XactAbortInfo(HttpRequest *anIcapRequest,
         HttpReply *anIcapReply, bool beRetriable, bool beRepeatable):
-        icapRequest(anIcapRequest),
-        icapReply(anIcapReply),
-        isRetriable(beRetriable),
-        isRepeatable(beRepeatable)
+    icapRequest(anIcapRequest),
+    icapReply(anIcapReply),
+    isRetriable(beRetriable),
+    isRepeatable(beRepeatable)
 {
     if (icapRequest)
         HTTPMSGLOCK(icapRequest);
@@ -168,10 +168,10 @@ Adaptation::Icap::XactAbortInfo::XactAbortInfo(HttpRequest *anIcapRequest,
 }
 
 Adaptation::Icap::XactAbortInfo::XactAbortInfo(const Adaptation::Icap::XactAbortInfo &i):
-        icapRequest(i.icapRequest),
-        icapReply(i.icapReply),
-        isRetriable(i.isRetriable),
-        isRepeatable(i.isRepeatable)
+    icapRequest(i.icapRequest),
+    icapReply(i.icapReply),
+    isRetriable(i.isRetriable),
+    isRepeatable(i.isRepeatable)
 {
     if (icapRequest)
         HTTPMSGLOCK(icapRequest);
@@ -184,3 +184,4 @@ Adaptation::Icap::XactAbortInfo::~XactAbortInfo()
     HTTPMSGUNLOCK(icapRequest);
     HTTPMSGUNLOCK(icapReply);
 }
+
index dcdd987e60c11761967f47138a278ce7a65832cc..5fcb108b4383a3c8b9e7e66b82bce69fbcb1ecbe 100644 (file)
@@ -111,3 +111,4 @@ operator <<(std::ostream &os, const XactAbortInfo &xai)
 } // namespace Adaptation
 
 #endif /* SQUID_ICAPLAUNCHER_H */
+
index 0dad1143142d574cfd8c55d2465e38e8316daed2..51c108a8a10e2a9eaaebb9bac207c2e6082a41fc 100644 (file)
@@ -51,16 +51,16 @@ Adaptation::Icap::ModXact::State::State()
 
 Adaptation::Icap::ModXact::ModXact(HttpMsg *virginHeader,
                                    HttpRequest *virginCause, AccessLogEntry::Pointer &alp, Adaptation::Icap::ServiceRep::Pointer &aService):
-        AsyncJob("Adaptation::Icap::ModXact"),
-        Adaptation::Icap::Xaction("Adaptation::Icap::ModXact", aService),
-        virginConsumed(0),
-        bodyParser(NULL),
-        canStartBypass(false), // too early
-        protectGroupBypass(true),
-        replyHttpHeaderSize(-1),
-        replyHttpBodySize(-1),
-        adaptHistoryId(-1),
-        alMaster(alp)
+    AsyncJob("Adaptation::Icap::ModXact"),
+    Adaptation::Icap::Xaction("Adaptation::Icap::ModXact", aService),
+    virginConsumed(0),
+    bodyParser(NULL),
+    canStartBypass(false), // too early
+    protectGroupBypass(true),
+    replyHttpHeaderSize(-1),
+    replyHttpBodySize(-1),
+    adaptHistoryId(-1),
+    alMaster(alp)
 {
     assert(virginHeader);
 
@@ -1809,7 +1809,7 @@ void Adaptation::Icap::ModXact::makeAdaptedBodyPipe(const char *what)
 // TODO: Move SizedEstimate and Preview elsewhere
 
 Adaptation::Icap::SizedEstimate::SizedEstimate()
-        : theData(dtUnexpected)
+    : theData(dtUnexpected)
 {}
 
 void Adaptation::Icap::SizedEstimate::expect(int64_t aSize)
@@ -1955,9 +1955,9 @@ void Adaptation::Icap::ModXact::clearError()
 /* Adaptation::Icap::ModXactLauncher */
 
 Adaptation::Icap::ModXactLauncher::ModXactLauncher(HttpMsg *virginHeader, HttpRequest *virginCause, AccessLogEntry::Pointer &alp, Adaptation::ServicePointer aService):
-        AsyncJob("Adaptation::Icap::ModXactLauncher"),
-        Adaptation::Icap::Launcher("Adaptation::Icap::ModXactLauncher", aService),
-        al(alp)
+    AsyncJob("Adaptation::Icap::ModXactLauncher"),
+    Adaptation::Icap::Launcher("Adaptation::Icap::ModXactLauncher", aService),
+    al(alp)
 {
     virgin.setHeader(virginHeader);
     virgin.setCause(virginCause);
@@ -1995,3 +1995,4 @@ void Adaptation::Icap::ModXactLauncher::updateHistory(bool doStart)
         }
     }
 }
+
index 78d18db6215fb00cfba75f9713d424c9d5dc7be4..69f491533685aa97a36a0a3535ff2e2070b04715 100644 (file)
@@ -345,3 +345,4 @@ protected:
 } // namespace Adaptation
 
 #endif /* SQUID_ICAPMOD_XACT_H */
+
index aa0d42b1bed9933c8e1f74e123721bb36c39956a..f40c4eb69eea1b62addd8980d0969726970447a2 100644 (file)
@@ -24,9 +24,9 @@ CBDATA_NAMESPACED_CLASS_INIT(Adaptation::Icap, OptXact);
 CBDATA_NAMESPACED_CLASS_INIT(Adaptation::Icap, OptXactLauncher);
 
 Adaptation::Icap::OptXact::OptXact(Adaptation::Icap::ServiceRep::Pointer &aService):
-        AsyncJob("Adaptation::Icap::OptXact"),
-        Adaptation::Icap::Xaction("Adaptation::Icap::OptXact", aService),
-        readAll(false)
+    AsyncJob("Adaptation::Icap::OptXact"),
+    Adaptation::Icap::Xaction("Adaptation::Icap::OptXact", aService),
+    readAll(false)
 {
 }
 
@@ -135,8 +135,8 @@ void Adaptation::Icap::OptXact::finalizeLogInfo()
 /* Adaptation::Icap::OptXactLauncher */
 
 Adaptation::Icap::OptXactLauncher::OptXactLauncher(Adaptation::ServicePointer aService):
-        AsyncJob("Adaptation::Icap::OptXactLauncher"),
-        Adaptation::Icap::Launcher("Adaptation::Icap::OptXactLauncher", aService)
+    AsyncJob("Adaptation::Icap::OptXactLauncher"),
+    Adaptation::Icap::Launcher("Adaptation::Icap::OptXactLauncher", aService)
 {
 }
 
@@ -147,3 +147,4 @@ Adaptation::Icap::Xaction *Adaptation::Icap::OptXactLauncher::createXaction()
     Must(s != NULL);
     return new Adaptation::Icap::OptXact(s);
 }
+
index e6b0f3b5a9c34b059228e51ade189fc582579151..2c91717ce779ad087356f18e267987e8b0eb094d 100644 (file)
@@ -66,3 +66,4 @@ protected:
 } // namespace Adaptation
 
 #endif /* SQUID_ICAPOPTXACT_H */
+
index 15e33e2343c90836c73d8fd7445a4db04ae5d132..1b33b001e57db8277cfef931b577172d966f6af1 100644 (file)
 #include "wordlist.h"
 
 Adaptation::Icap::Options::Options() :
-        error("unconfigured"),
-        max_connections(-1),
-        allow204(false),
-        allow206(false),
-        preview(-1),
-        theTTL(-1),
-        theTimestamp(0)
+    error("unconfigured"),
+    max_connections(-1),
+    allow204(false),
+    allow206(false),
+    preview(-1),
+    theTTL(-1),
+    theTimestamp(0)
 {
     theTransfers.preview.name = "Transfer-Preview";
     theTransfers.preview.kind = xferPreview;
@@ -170,7 +170,7 @@ void Adaptation::Icap::Options::cfgTransferList(const HttpHeader *h, TransferLis
 /* Adaptation::Icap::Options::TransferList */
 
 Adaptation::Icap::Options::TransferList::TransferList(): extensions(NULL), name(NULL),
-        kind(xferNone)
+    kind(xferNone)
 {
 };
 
@@ -234,3 +234,4 @@ void Adaptation::Icap::Options::TransferList::report(int level, const char *pref
         debugs(93,level, prefix << "no " << name << " extensions");
     }
 }
+
index 5198c4bb37bd0c3532fd4f7b6009a555b8084b36..f57ccab984b9989b0fc7f08b1f6d07de6eeca817 100644 (file)
@@ -101,3 +101,4 @@ private:
 } // namespace Adaptation
 
 #endif /* SQUID_ICAPOPTIONS_H */
+
index 5167a33cbf7ef0212f931924e8c91f821e5c6722..b4803adc5610ac3166b45e378c57c2fc0f9a422c 100644 (file)
 CBDATA_NAMESPACED_CLASS_INIT(Adaptation::Icap, ServiceRep);
 
 Adaptation::Icap::ServiceRep::ServiceRep(const ServiceConfigPointer &svcCfg):
-        AsyncJob("Adaptation::Icap::ServiceRep"), Adaptation::Service(svcCfg),
-        theOptions(NULL), theOptionsFetcher(0), theLastUpdate(0),
-        theBusyConns(0),
-        theAllWaiters(0),
-        connOverloadReported(false),
-        theIdleConns(NULL),
-        isSuspended(0), notifying(false),
-        updateScheduled(false),
-        wasAnnouncedUp(true), // do not announce an "up" service at startup
-        isDetached(false)
+    AsyncJob("Adaptation::Icap::ServiceRep"), Adaptation::Service(svcCfg),
+    theOptions(NULL), theOptionsFetcher(0), theLastUpdate(0),
+    theBusyConns(0),
+    theAllWaiters(0),
+    connOverloadReported(false),
+    theIdleConns(NULL),
+    isSuspended(0), notifying(false),
+    updateScheduled(false),
+    wasAnnouncedUp(true), // do not announce an "up" service at startup
+    isDetached(false)
 {
     setMaxConnections();
     theIdleConns = new IdleConnList("ICAP Service", NULL);
@@ -720,7 +720,7 @@ bool Adaptation::Icap::ServiceRep::detached() const
 
 Adaptation::Icap::ConnWaiterDialer::ConnWaiterDialer(const CbcPointer<Adaptation::Icap::ModXact> &xact,
         Adaptation::Icap::ConnWaiterDialer::Parent::Method aHandler):
-        Parent(xact, aHandler)
+    Parent(xact, aHandler)
 {
     theService = &xact->service();
     theService->noteNewWaiter();
@@ -736,3 +736,4 @@ Adaptation::Icap::ConnWaiterDialer::~ConnWaiterDialer()
 {
     theService->noteGoneWaiter();
 }
+
index 27c4824da8967c2028640b608245fdeb1113a186..c923a6308c2e397fb5db8e1856841435f75c056d 100644 (file)
@@ -57,7 +57,7 @@ class OptXact;
  */
 
 class ServiceRep : public RefCountable, public Adaptation::Service,
-        public Adaptation::Initiator
+    public Adaptation::Initiator
 {
     CBDATA_CLASS(ServiceRep);
 
@@ -202,3 +202,4 @@ public:
 } // namespace Adaptation
 
 #endif /* SQUID_ICAPSERVICEREP_H */
+
index e482dfca867b2435d035eac09730969aa1088778..cb37fbc5c5eab8f40947cca7d88e71353c5a956a 100644 (file)
 #include "SquidTime.h"
 
 Adaptation::Icap::Xaction::Xaction(const char *aTypeName, Adaptation::Icap::ServiceRep::Pointer &aService):
-        AsyncJob(aTypeName),
-        Adaptation::Initiate(aTypeName),
-        icapRequest(NULL),
-        icapReply(NULL),
-        attempts(0),
-        connection(NULL),
-        theService(aService),
-        commBuf(NULL),
-        commBufSize(0),
-        commEof(false),
-        reuseConnection(true),
-        isRetriable(true),
-        isRepeatable(true),
-        ignoreLastWrite(false),
-        stopReason(NULL),
-        connector(NULL),
-        reader(NULL),
-        writer(NULL),
-        closer(NULL),
-        alep(new AccessLogEntry),
-        al(*alep),
-        cs(NULL)
+    AsyncJob(aTypeName),
+    Adaptation::Initiate(aTypeName),
+    icapRequest(NULL),
+    icapReply(NULL),
+    attempts(0),
+    connection(NULL),
+    theService(aService),
+    commBuf(NULL),
+    commBufSize(0),
+    commEof(false),
+    reuseConnection(true),
+    isRetriable(true),
+    isRepeatable(true),
+    ignoreLastWrite(false),
+    stopReason(NULL),
+    connector(NULL),
+    reader(NULL),
+    writer(NULL),
+    closer(NULL),
+    alep(new AccessLogEntry),
+    al(*alep),
+    cs(NULL)
 {
     debugs(93,3, typeName << " constructed, this=" << this <<
            " [icapx" << id << ']'); // we should not call virtual status() here
@@ -452,7 +452,7 @@ bool Adaptation::Icap::Xaction::parseHttpMsg(HttpMsg *msg)
     const bool parsed = msg->parse(&readBuf, commEof, &error);
     Must(parsed || !error); // success or need more data
 
-    if (!parsed) {     // need more data
+    if (!parsed) {  // need more data
         Must(mayReadMore());
         msg->reset();
         return false;
@@ -633,3 +633,4 @@ bool Adaptation::Icap::Xaction::fillVirginHttpHeader(MemBuf &buf) const
 {
     return false;
 }
+
index f9c051358e24e58deb83c78dc25e0d21d24fd5d7..6c607c2f430b22bad3fbdd48506858fb593b2bd2 100644 (file)
@@ -170,3 +170,4 @@ private:
 } // namespace Adaptation
 
 #endif /* SQUID_ICAPXACTION_H */
+
index 11f0bafb059d48d0d01454a1eb446cc54e4363e0..86d2c7b6f3ee8e2893aec9604dfc99e588f29c4b 100644 (file)
@@ -68,3 +68,4 @@ void icapLogLog(AccessLogEntry::Pointer &al)
         accessLogLogTo(Config.Log.icaplogs, al, &checklist);
     }
 }
+
index 391236e44cb418aae767de3443a63521013dd240..77fa060c83a548ba35dc376a2f77edbd90ac3bb0 100644 (file)
@@ -24,3 +24,4 @@ void icapLogLog(AccessLogEntryPointer &al);
 extern int IcapLogfileStatus;
 
 #endif /*ICAP_LOG_H_*/
+
index d2dae99133585d2488248b0af547db56bb2f439e..694b3d9b916cf9d075fe439a66c2c174bc8bd7ee 100644 (file)
@@ -27,48 +27,48 @@ int NHttpSockets = 0;
 int HttpSockets[MAXTCPLISTENPORTS];
 
 AnyP::PortCfg::PortCfg() :
-        next(),
-        s(),
-        transport(AnyP::PROTO_HTTP,1,1), // "Squid is an HTTP proxy", etc.
-        name(NULL),
-        defaultsite(NULL),
-        flags(),
-        allow_direct(false),
-        vhost(false),
-        actAsOrigin(false),
-        ignore_cc(false),
-        connection_auth_disabled(false),
-        ftp_track_dirs(false),
-        vport(0),
-        disable_pmtu_discovery(0),
-        listenConn()
+    next(),
+    s(),
+    transport(AnyP::PROTO_HTTP,1,1), // "Squid is an HTTP proxy", etc.
+    name(NULL),
+    defaultsite(NULL),
+    flags(),
+    allow_direct(false),
+    vhost(false),
+    actAsOrigin(false),
+    ignore_cc(false),
+    connection_auth_disabled(false),
+    ftp_track_dirs(false),
+    vport(0),
+    disable_pmtu_discovery(0),
+    listenConn()
 #if USE_OPENSSL
-        ,cert(NULL),
-        key(NULL),
-        version(0),
-        cipher(NULL),
-        options(NULL),
-        clientca(NULL),
-        cafile(NULL),
-        capath(NULL),
-        crlfile(NULL),
-        dhfile(NULL),
-        sslflags(NULL),
-        sslContextSessionId(NULL),
-        generateHostCertificates(false),
-        dynamicCertMemCacheSize(std::numeric_limits<size_t>::max()),
-        staticSslContext(),
-        signingCert(),
-        signPkey(),
-        certsToChain(),
-        untrustedSigningCert(),
-        untrustedSignPkey(),
-        clientVerifyCrls(),
-        clientCA(),
-        dhParams(),
-        contextMethod(),
-        sslContextFlags(0),
-        sslOptions(0)
+    ,cert(NULL),
+    key(NULL),
+    version(0),
+    cipher(NULL),
+    options(NULL),
+    clientca(NULL),
+    cafile(NULL),
+    capath(NULL),
+    crlfile(NULL),
+    dhfile(NULL),
+    sslflags(NULL),
+    sslContextSessionId(NULL),
+    generateHostCertificates(false),
+    dynamicCertMemCacheSize(std::numeric_limits<size_t>::max()),
+    staticSslContext(),
+    signingCert(),
+    signPkey(),
+    certsToChain(),
+    untrustedSigningCert(),
+    untrustedSignPkey(),
+    clientVerifyCrls(),
+    clientCA(),
+    dhParams(),
+    contextMethod(),
+    sslContextFlags(0),
+    sslOptions(0)
 #endif
 {
     memset(&tcp_keepalive, 0, sizeof(tcp_keepalive));
@@ -196,3 +196,4 @@ AnyP::PortCfg::configureSslServerContext()
     }
 }
 #endif
+
index 3096d2fd7639e116b6462dbede886e98b70701f0..a8fe42c3292b05234451aa7c9ef9cbe9b0a016ee 100644 (file)
@@ -122,3 +122,4 @@ extern int NHttpSockets;
 extern int HttpSockets[MAXTCPLISTENPORTS];
 
 #endif /* SQUID_ANYP_PORTCFG_H */
+
index d8d6302f02918590c227acc979ee3c458fa97091..87f03350563951db6e1d5216735a9bd00358ab2a 100644 (file)
@@ -59,3 +59,4 @@ operator <<(std::ostream &os, ProtocolType const &p)
 } // namespace AnyP
 
 #endif /* _SQUID_SRC_ANYP_PROTOCOLTYPE_H */
+
index 61f2c6a17b9fd32df2ff0c6fcf93b9b0ff6e581d..a57aed3d12509139e7745fd678a31aa8335b3728 100644 (file)
@@ -97,3 +97,4 @@ operator << (std::ostream &os, const AnyP::ProtocolVersion &v)
 } // namespace AnyP
 
 #endif /* SQUID_ANYP_PROTOCOLVERSION_H */
+
index f5c4e56c0027e84c9a5d5872c0088d6eab2bc387..40e9865b8f01a3cb882f422ce33f1cd7e3b8bb01 100644 (file)
@@ -86,3 +86,4 @@ public:
 } // namespace AnyP
 
 #endif
+
index 6ce1d34ca3f459d10fbcd2649a81d61ef3533867..499a1d617efbe5679292db09fc43577c0b4b465e 100644 (file)
@@ -28,3 +28,4 @@ AnyP::UriScheme::c_str() const
     out[p] = '\0';
     return out;
 }
+
index 1ec0f51255336bb9a6831f96c2b821eebd9b5561..9ed3e27176489fb5e394853a0f2b29a820cccc78 100644 (file)
@@ -54,3 +54,4 @@ operator << (std::ostream &os, AnyP::UriScheme const &scheme)
 }
 
 #endif /* SQUID_ANYP_URISCHEME_H */
+
index 9c4fef36f6b292e616ef3b0d7d556ff18075d44a..e59f7559e16ce3fa19b0805a20e53b2cc04fd7af 100644 (file)
@@ -86,3 +86,4 @@ AuthenticateAcl(ACLChecklist *ch)
         return ACCESS_DENIED;
     }
 }
+
index c8b073a1546c4d3edfc4c6941ce93922795e4c39..66f5483f2b23172d2413d95ccb713709b5233af7 100644 (file)
@@ -23,3 +23,4 @@ allow_t AuthenticateAcl(ACLChecklist *ch);
 
 #endif /* USE_AUTH */
 #endif /* SQUID_AUTH_ACL_H */
+
index 0051c3076d10c8cf37034d34f1228bceaa148b4d..40c92af563bd5f251e4a97d48fe3aa92acfdfc13 100644 (file)
 ACLFlag ACLMaxUserIP::SupportedFlags[] = {ACL_F_STRICT, ACL_F_END};
 
 ACLMaxUserIP::ACLMaxUserIP(char const *theClass) :
-        ACL(SupportedFlags),
-        class_(theClass),
-        maximum(0)
+    ACL(SupportedFlags),
+    class_(theClass),
+    maximum(0)
 {}
 
 ACLMaxUserIP::ACLMaxUserIP(ACLMaxUserIP const &old) :
-        class_(old.class_),
-        maximum(old.maximum)
+    class_(old.class_),
+    maximum(old.maximum)
 {
     flags = old.flags;
 }
@@ -162,3 +162,4 @@ ACLMaxUserIP::dump() const
     sl.push_back(s);
     return sl;
 }
+
index 63026c959d6b6fe9b2a8ab7d51282c398ad649bb..69e18ee2856d5cfd6c1a7e6f8af54e5006580fd7 100644 (file)
@@ -50,3 +50,4 @@ private:
 
 #endif /* USE_AUTH */
 #endif /* SQUID_ACLMAXUSERIP_H */
+
index da4d16f13d1a2cb1c7f86898d6e4757671a9c6bf..90ed933c90a8636450c3f93937f058bee7361b7e 100644 (file)
@@ -175,3 +175,4 @@ ACLProxyAuth::matchProxyAuth(ACLChecklist *cl)
     checklist->auth_user_request = NULL;
     return result;
 }
+
index b95b1e49bce21ad9fc21a8ec55932290573cccbb..bf7fa73a447e3be0c63a5eb7b107a00cf00de514 100644 (file)
@@ -62,3 +62,4 @@ private:
 
 #endif /* USE_AUTH */
 #endif /* SQUID_ACLPROXYAUTH_H */
+
index cba5852ef39cc8328324a483deb8a0bf6c4d3b41..5299192a259bc2a4b4e68c25f580bce34c28690c 100644 (file)
@@ -20,3 +20,4 @@ typedef enum {
 
 #endif /* USE_AUTH */
 #endif /* _SQUID__SRC_AUTH_AUTHACLSTATE_H */
+
index 8798180907d9ec72474fe9d90816b236983e399d..7270e368c6e19a47febfa9090da0d1feed588662 100644 (file)
@@ -175,3 +175,4 @@ Auth::Config::findUserInCache(const char *nameKey, Auth::Type authType)
 
     return NULL;
 }
+
index 28795d1afd2728d16758b6aa62a693b5f0805734..ebf6a74c5786077d2ccd36bd522fb8ce6328f214 100644 (file)
@@ -56,8 +56,8 @@ public:
     /**
      * Used by squid to determine whether the auth module has successfully initialised itself with the current configuration.
      *
-     \retval true      Authentication Module loaded and running.
-     \retval false     No Authentication Module loaded.
+     \retval true   Authentication Module loaded and running.
+     \retval false  No Authentication Module loaded.
      */
     virtual bool active() const = 0;
 
@@ -68,8 +68,8 @@ public:
      * linking to a AuthUser object and for storing any needed details to complete
      * authentication in Auth::UserRequest::authenticate().
      *
-     \param proxy_auth Login Pattern to parse.
-     \retval *         Details needed to authenticate.
+     \param proxy_auth  Login Pattern to parse.
+     \retval *      Details needed to authenticate.
      */
     virtual UserRequest::Pointer decode(char const *proxy_auth, const char *requestRealm) = 0;
 
@@ -86,9 +86,9 @@ public:
      * The configured function is used to see if the auth module has been given valid
      * parameters and is able to handle authentication requests.
      *
-     \retval true      Authentication Module configured ready for use.
-     \retval false     Not configured or Configuration Error.
-     *                 No other module functions except Shutdown/Dump/Parse/FreeConfig will be called by Squid.
+     \retval true   Authentication Module configured ready for use.
+     \retval false  Not configured or Configuration Error.
+     *          No other module functions except Shutdown/Dump/Parse/FreeConfig will be called by Squid.
      */
     virtual bool configured() const = 0;
 
@@ -142,3 +142,4 @@ extern ConfigVector TheConfig;
 
 #endif /* USE_AUTH */
 #endif /* SQUID_AUTHCONFIG_H */
+
index fd6f86037aaf95c6fd403c739ab29182f850324d..490b749e693a9c90d9f950f47b1b46bc10548157 100644 (file)
@@ -25,3 +25,4 @@ extern const char *CredentialState_str[];
 } // namespace Auth
 
 #endif /* _SQUID_AUTH_CREDENTIALSTATE_H */
+
index f6254a99ceedef1bb9aebe7068471e15ac2f56c2..c6c9b69e18a7065d5b55b4bd9a652c782b74d874 100644 (file)
@@ -115,7 +115,7 @@ authenticateReset(void)
 }
 
 AuthUserHashPointer::AuthUserHashPointer(Auth::User::Pointer anAuth_user):
-        auth_user(anAuth_user)
+    auth_user(anAuth_user)
 {
     key = (void *)anAuth_user->userKey();
     next = NULL;
@@ -127,3 +127,4 @@ AuthUserHashPointer::user() const
 {
     return auth_user;
 }
+
index 2f3b8a0b3b5fc00470cf57afb910fe31bdd73710..b33b8bdda507687d74396eb0bb869173630d8839 100644 (file)
@@ -83,3 +83,4 @@ void authenticateOnCloseConnection(ConnStateData * conn);
 
 #endif /* USE_AUTH */
 #endif /* SQUID_AUTH_GADGETS_H */
+
index 1f52e0545da643209186e52c2c4642e56b43a045..76b9415da6a45ada63d419058317f6cab596a3ed 100644 (file)
@@ -35,10 +35,10 @@ private:
 
 public:
     QueueNode(Auth::UserRequest *aRequest, AUTHCB *aHandler, void *aData) :
-            next(NULL),
-            auth_user_request(aRequest),
-            handler(aHandler),
-            data(cbdataReference(aData)) {}
+        next(NULL),
+        auth_user_request(aRequest),
+        handler(aHandler),
+        data(cbdataReference(aData)) {}
     ~QueueNode() {
         cbdataReferenceDone(data);
         while (next) {
@@ -58,3 +58,4 @@ public:
 } // namespace Auth
 
 #endif /* SQUID_SRC_AUTH_QUEUENODE_H */
+
index 04075355a84950be66646651599387f439d6bded..48685bbd31c859e249f6e995c8291ee80ae50981 100644 (file)
@@ -67,3 +67,4 @@ Auth::Scheme::FreeAll()
         scheme->shutdownCleanup();
     }
 }
+
index c45c3430b737856583ae679a372f94624f31ca7b..1bfb021cdf0266068a4b191fe091e417eaa2316c 100644 (file)
@@ -16,7 +16,7 @@
 #include <vector>
 
 /**
- \defgroup AuthSchemeAPI       Authentication Scheme API
+ \defgroup AuthSchemeAPI    Authentication Scheme API
  \ingroup AuthAPI
  */
 
@@ -85,3 +85,4 @@ private:
 
 #endif /* USE_AUTH */
 #endif /* SQUID_AUTH_SCHEME_H */
+
index 6dce8a9c5cd5d2a6a47a3bb73a0224fda13e50a4..01cce2936e6b7ade05c69b2b6da489ac6b131e78 100644 (file)
@@ -13,3 +13,4 @@
 
 CBDATA_NAMESPACED_CLASS_INIT(Auth, StateData);
 #endif /* USE_AUTH */
+
index 6be0965ef4fe1d7a343ec28cd282611893163351..4252b69c59660faa6d3b0ae76b87af94d8a02774 100644 (file)
@@ -26,9 +26,9 @@ class StateData
 
 public:
     StateData(const UserRequest::Pointer &r, AUTHCB *h, void *d) :
-            data(cbdataReference(d)),
-            auth_user_request(r),
-            handler(h) {}
+        data(cbdataReference(d)),
+        auth_user_request(r),
+        handler(h) {}
 
     ~StateData() {
         auth_user_request = NULL;
@@ -44,3 +44,4 @@ public:
 
 #endif /* USE_AUTH */
 #endif /* __AUTH_AUTHENTICATE_STATE_T__ */
+
index 45fa0a2f4673ae80a552ad02ad6e7380e256af3f..b6385e3f6d0b222511ae09b89ec2fb7512df87a8 100644 (file)
@@ -29,3 +29,4 @@ extern const char *Type_str[];
 
 #endif /* USE_AUTH */
 #endif
+
index f07dbe57a8bc71cf00d670b680f8a43297f800a6..6f56caa91f0ac90200fb4e710c55a5b0d280865f 100644 (file)
 time_t Auth::User::last_discard = 0;
 
 Auth::User::User(Auth::Config *aConfig, const char *aRequestRealm) :
-        auth_type(Auth::AUTH_UNKNOWN),
-        config(aConfig),
-        ipcount(0),
-        expiretime(0),
-        notes(),
-        credentials_state(Auth::Unchecked),
-        username_(NULL),
-        requestRealm_(aRequestRealm)
+    auth_type(Auth::AUTH_UNKNOWN),
+    config(aConfig),
+    ipcount(0),
+    expiretime(0),
+    notes(),
+    credentials_state(Auth::Unchecked),
+    username_(NULL),
+    requestRealm_(aRequestRealm)
 {
     proxy_match_cache.head = proxy_match_cache.tail = NULL;
     ip_list.head = ip_list.tail = NULL;
@@ -371,3 +371,4 @@ Auth::User::username(char const *aString)
         safe_free(username_);
     }
 }
+
index 7b117c6380331c7f42aee4740eb7c37faf2abd59..76c12f750b5017d72ed222f4b2339d1c443704b9 100644 (file)
@@ -131,3 +131,4 @@ private:
 
 #endif /* USE_AUTH */
 #endif /* SQUID_AUTH_USER_H */
+
index 8f0cafe86a0ba9074648abe0d6fdab594109fab6..732511f74c42eaf55c4670918e8fdf9fa19c038e 100644 (file)
@@ -89,9 +89,9 @@ Auth::UserRequest::operator delete (void *address)
 }
 
 Auth::UserRequest::UserRequest():
-        _auth_user(NULL),
-        message(NULL),
-        lastReply(AUTH_ACL_CANNOT_AUTHENTICATE)
+    _auth_user(NULL),
+    message(NULL),
+    lastReply(AUTH_ACL_CANNOT_AUTHENTICATE)
 {
     debugs(29, 5, HERE << "initialised request " << this);
 }
@@ -392,7 +392,7 @@ Auth::UserRequest::authenticate(Auth::UserRequest::Pointer * auth_user_request,
                 request->auth_user_request = *auth_user_request;
             }
 
-            /* fallthrough to ERROR case and do the challenge */
+        /* fallthrough to ERROR case and do the challenge */
 
         case Auth::CRED_ERROR:
             /* this ACL check is finished. */
@@ -562,3 +562,4 @@ Auth::UserRequest::helperRequestKeyExtras(HttpRequest *request, AccessLogEntry::
     }
     return NULL;
 }
+
index 91b2d04a4b71052b8ee549d6270d9f3f00dc903e..156636c655f9763e7e3e15523228707b42643b80 100644 (file)
@@ -95,22 +95,22 @@ public:
     /**
      *  Used by squid to determine what the next step in performing authentication for a given scheme is.
      *
-     * \retval CRED_ERROR      ERROR in the auth module. Cannot determine request direction.
-     * \retval CRED_LOOKUP     The auth module needs to send data to an external helper.
-     *                         Squid will prepare for a callback on the request and call the AUTHSSTART function.
-     * \retval CRED_VALID      The auth module has all the information it needs to perform the authentication
-     *                         and provide a succeed/fail result.
-     * \retval CRED_CHALLENGE  The auth module needs to send a new challenge to the request originator.
-     *                         Squid will return the appropriate status code (401 or 407) and call the registered
-     *                         FixError function to allow the auth module to insert it's challenge.
+     * \retval CRED_ERROR   ERROR in the auth module. Cannot determine request direction.
+     * \retval CRED_LOOKUP  The auth module needs to send data to an external helper.
+     *              Squid will prepare for a callback on the request and call the AUTHSSTART function.
+     * \retval CRED_VALID   The auth module has all the information it needs to perform the authentication
+     *              and provide a succeed/fail result.
+     * \retval CRED_CHALLENGE   The auth module needs to send a new challenge to the request originator.
+     *              Squid will return the appropriate status code (401 or 407) and call the registered
+     *              FixError function to allow the auth module to insert it's challenge.
      */
     Direction direction();
 
     /**
      * Used by squid to determine whether the auth scheme has successfully authenticated the user request.
      *
-     \retval true      User has successfully been authenticated.
-     \retval false     Timeouts on cached credentials have occurred or for any reason the credentials are not valid.
+     \retval true   User has successfully been authenticated.
+     \retval false  Timeouts on cached credentials have occurred or for any reason the credentials are not valid.
      */
     virtual int authenticated() const = 0;
 
@@ -122,7 +122,7 @@ public:
      * \retval false    User credentials use an unknown scheme type.
      * \retval false    User credentials are broken for their scheme.
      *
-     * \retval true    User credentials exist and may be able to authenticate.
+     * \retval true User credentials exist and may be able to authenticate.
      */
     bool valid() const;
 
@@ -174,8 +174,8 @@ public:
      * The given callback will be called when the auth module has performed
      * it's external activities.
      *
-     * \param handler  Handler to process the callback when its run
-     * \param data     CBDATA for handler
+     * \param handler   Handler to process the callback when its run
+     * \param data  CBDATA for handler
      */
     void start(HttpRequest *request, AccessLogEntry::Pointer &al, AUTHCB *handler, void *data);
 
@@ -192,8 +192,8 @@ public:
      * This function must return a pointer to a NULL terminated string to be used in logging the request.
      * The string should NOT be allocated each time this function is called.
      *
-     \retval NULL      No username/usercode is known.
-     \retval *         Null-terminated username string.
+     \retval NULL   No username/usercode is known.
+     \retval *      Null-terminated username string.
      */
     char const *username() const;
 
@@ -253,3 +253,4 @@ int authenticateUserAuthenticated(Auth::UserRequest::Pointer);
 
 #endif /* USE_AUTH */
 #endif /* SQUID_AUTHUSERREQUEST_H */
+
index b93e4d4b57d202ddce49778c558c90bf26ba5da9..a0514e1b6c4416d038a310088aebe5261d2cfe67 100644 (file)
@@ -123,9 +123,9 @@ Auth::Basic::Config::dump(StoreEntry * entry, const char *name, Auth::Config * s
 }
 
 Auth::Basic::Config::Config() :
-        credentialsTTL( 2*60*60 ),
-        casesensitive(0),
-        utf8(0)
+    credentialsTTL( 2*60*60 ),
+    casesensitive(0),
+    utf8(0)
 {
     static const SBuf defaultRealm("Squid proxy-caching web server");
     realm = defaultRealm;
@@ -302,3 +302,4 @@ Auth::Basic::Config::registerWithCacheManager(void)
                         "Basic User Authenticator Stats",
                         authenticateBasicStats, 0, 1);
 }
+
index 62920adefc5497fbfc477a89bc87e5a50430bca0..d32fc018c50295c3b4ac68b3559fe7c08a6b6436 100644 (file)
@@ -52,3 +52,4 @@ private:
 extern helper *basicauthenticators;
 
 #endif /* __AUTH_BASIC_H__ */
+
index 75ff461e9acaa15eeca8d76bb59fe742ebb00ce9..180885deee9595b5d48fb6027c9f45adde0be74d 100644 (file)
@@ -46,3 +46,4 @@ Auth::Basic::Scheme::createConfig()
     Auth::Basic::Config *newCfg = new Auth::Basic::Config;
     return dynamic_cast<Auth::Config*>(newCfg);
 }
+
index 102cc91a3644b92e6f905cecae613de523b4a303..cf67c0c27f33274d2aa1982ccf84bdaec12e7612 100644 (file)
@@ -42,3 +42,4 @@ private:
 } // namespace Auth
 
 #endif /* SQUID_AUTH_BASIC_SCHEME_H */
+
index d80ec93f3e7556b154f60c07370aea17c0cfa94b..23b47b9d340260879d9598c8144e9f80163b2ff7 100644 (file)
 #include "SquidTime.h"
 
 Auth::Basic::User::User(Auth::Config *aConfig, const char *aRequestRealm) :
-        Auth::User(aConfig, aRequestRealm),
-        passwd(NULL),
-        queue(NULL),
-        currentRequest(NULL)
+    Auth::User(aConfig, aRequestRealm),
+    passwd(NULL),
+    queue(NULL),
+    currentRequest(NULL)
 {}
 
 Auth::Basic::User::~User()
index f128937cb2dcf1d2e2ca635875c866f1fadfd117..9e424fc06c6d82f1f9617dd6f5548577672ff208 100644 (file)
@@ -48,3 +48,4 @@ private:
 } // namespace Auth
 
 #endif /* _SQUID_AUTH_BASIC_USER_H */
+
index daf976740303d59f83a9c56c4644e62d68988b5d..8f48da299598795eda2d58abe58163b6295647d7 100644 (file)
@@ -208,3 +208,4 @@ Auth::Basic::UserRequest::HandleReply(void *data, const Helper::Reply &reply)
 
     delete r;
 }
+
index e200440c8156b83f48c81270051d35b96203ad57..faf6da7d7e7b85614823242d6dc8e9ef677d23bd 100644 (file)
@@ -44,3 +44,4 @@ private:
 } // namespace Auth
 
 #endif /* _SQUID_SRC_AUTH_BASIC_USERREQUEST_H */
+
index 586a32016c681f9e154a8ebd523b9eada0bf7bb7..5e08a3847d1026c02338f223df077cd32d79362b 100644 (file)
@@ -593,13 +593,13 @@ Auth::Digest::Config::done()
 }
 
 Auth::Digest::Config::Config() :
-        nonceGCInterval(5*60),
-        noncemaxduration(30*60),
-        noncemaxuses(50),
-        NonceStrictness(0),
-        CheckNonceCount(1),
-        PostWorkaround(0),
-        utf8(0)
+    nonceGCInterval(5*60),
+    noncemaxduration(30*60),
+    noncemaxuses(50),
+    NonceStrictness(0),
+    CheckNonceCount(1),
+    PostWorkaround(0),
+    utf8(0)
 {}
 
 void
@@ -1087,3 +1087,4 @@ Auth::Digest::Config::decode(char const *proxy_auth, const char *aRequestRealm)
 
     return digest_request;
 }
+
index 2e8e29f1e17b01b21cf3ae827ab6db8d7e3899ad..7f4023e4d4c631a1cad5afbbe007d7afa5bcd7be 100644 (file)
@@ -104,3 +104,4 @@ public:
 extern helper *digestauthenticators;
 
 #endif
+
index cfbc3ec46fb4a52c986fbaa8d9bef55c380fb01e..4867182f37867136625b1d884f0713545f50f0fe 100644 (file)
@@ -68,3 +68,4 @@ Auth::Digest::Scheme::PurgeCredentialsCache(void)
         }
     }
 }
+
index 2efabf6354587832229734de1a4beac6bde33ce5..5e823a1bf8054716e476b765d22f5856f6ee69dd 100644 (file)
@@ -50,3 +50,4 @@ private:
 } // namespace Auth
 
 #endif /* SQUID_AUTH_DIGEST_SCHEME_H */
+
index 5ce9f12e87b46545fa01778fb6813c37e0fac1fd..485d05a4063f80b81fb94c8c6fb7a2fbaceeddee 100644 (file)
@@ -15,8 +15,8 @@
 #include "SquidTime.h"
 
 Auth::Digest::User::User(Auth::Config *aConfig, const char *aRequestRealm) :
-        Auth::User(aConfig, aRequestRealm),
-        HA1created(0)
+    Auth::User(aConfig, aRequestRealm),
+    HA1created(0)
 {
     memset(HA1, 0, sizeof(HA1));
 }
@@ -71,3 +71,4 @@ Auth::Digest::User::currentNonce()
     }
     return nonce;
 }
+
index 8f8d4748f01d9496ffe660d8e8218353c6058aa6..822b2d771bd9c366ff7fac2747f832086f84015d 100644 (file)
@@ -41,3 +41,4 @@ public:
 } // namespace Auth
 
 #endif /* _SQUID_AUTH_DIGEST_USER_H */
+
index 03abb1d6a8d95db4f184a160320f3c3b87762dfa..ad11b2cf0df3ec77e122f9fb38b626a4e6de3c27 100644 (file)
 #include "SquidTime.h"
 
 Auth::Digest::UserRequest::UserRequest() :
-        nonceb64(NULL),
-        cnonce(NULL),
-        realm(NULL),
-        pszPass(NULL),
-        algorithm(NULL),
-        pszMethod(NULL),
-        qop(NULL),
-        uri(NULL),
-        response(NULL),
-        nonce(NULL)
+    nonceb64(NULL),
+    cnonce(NULL),
+    realm(NULL),
+    pszPass(NULL),
+    algorithm(NULL),
+    pszMethod(NULL),
+    qop(NULL),
+    uri(NULL),
+    response(NULL),
+    nonce(NULL)
 {
     memset(nc, 0, sizeof(nc));
     memset(&flags, 0, sizeof(flags));
@@ -366,12 +366,12 @@ Auth::Digest::UserRequest::HandleReply(void *data, const Helper::Reply &reply)
 
     case Helper::TT:
         debugs(29, DBG_IMPORTANT, "ERROR: Digest auth does not support the result code received. Using the wrong helper program? received: " << reply);
-        // fall through to next case. Handle this as an ERR response.
+    // fall through to next case. Handle this as an ERR response.
 
     case Helper::TimedOut:
     case Helper::BrokenHelper:
-        // TODO retry the broken lookup on another helper?
-        // fall through to next case for now. Handle this as an ERR response silently.
+    // TODO retry the broken lookup on another helper?
+    // fall through to next case for now. Handle this as an ERR response silently.
     case Helper::Error: {
         /* allow this because the digest_request pointer is purely local */
         Auth::Digest::UserRequest *digest_request = dynamic_cast<Auth::Digest::UserRequest *>(auth_user_request.getRaw());
@@ -401,3 +401,4 @@ Auth::Digest::UserRequest::HandleReply(void *data, const Helper::Reply &reply)
 
     delete replyData;
 }
+
index 3cb2b2e21f5e95d56c058b7a247ef5c6fd7ce0cd..3c4c0f65e8585833ac0f0a1ea58012c4e02e900d 100644 (file)
@@ -68,3 +68,4 @@ private:
 } // namespace Auth
 
 #endif /* _SQUID_SRC_AUTH_DIGEST_USERREQUEST_H */
+
index 9da649ab217a1b28ac4e62cb35edf112d96dd1db..e84b7fa2c6a479dc1f37cff7304d7ec271489ed5 100644 (file)
@@ -204,7 +204,7 @@ Auth::Negotiate::Config::fixHeader(Auth::UserRequest::Pointer auth_user_request,
              * tied to it, even if MAYBE the client could handle it - Kinkie */
             rep->header.delByName("keep-alive");
             request->flags.proxyKeepalive = false;
-            /* fall through */
+        /* fall through */
 
         case Auth::Ok:
             /* Special case: authentication finished OK but disallowed by ACL.
@@ -265,3 +265,4 @@ Auth::Negotiate::Config::decode(char const *proxy_auth, const char *aRequestReal
     debugs(29, 9, HERE << "decode Negotiate authentication");
     return auth_user_request;
 }
+
index 47d53ae512d9d94dc5d8c7e72976a9af06d057af..7de4607c42c56026e4a9033d3f4e79176770cdd5 100644 (file)
@@ -46,3 +46,4 @@ public:
 extern statefulhelper *negotiateauthenticators;
 
 #endif
+
index 1c548a7ad65eff7be3e628fb3c3ba80d3eb59d59..324129bad456906ea6326709601d8f7b2dab5eaf 100644 (file)
@@ -46,3 +46,4 @@ Auth::Negotiate::Scheme::createConfig()
     Auth::Negotiate::Config *negotiateCfg = new Auth::Negotiate::Config;
     return dynamic_cast<Auth::Config*>(negotiateCfg);
 }
+
index add566557d4a24af933a51b873e72f4c3ac5d377..de2e40443e65aa082df474d4a6df9caa66340471 100644 (file)
@@ -43,3 +43,4 @@ private:
 } // namespace Auth
 
 #endif /* SQUID_AUTH_NEGOTIATE_SCHEME_H */
+
index 751cc3d2bb143bfef61986ea44e393bee3126d41..f317c57055e20273b1d8619e663971afddbd7c76 100644 (file)
@@ -12,7 +12,7 @@
 #include "Debug.h"
 
 Auth::Negotiate::User::User(Auth::Config *aConfig, const char *aRequestRealm) :
-        Auth::User(aConfig, aRequestRealm)
+    Auth::User(aConfig, aRequestRealm)
 {
 }
 
@@ -26,3 +26,4 @@ Auth::Negotiate::User::ttl() const
 {
     return -1; // Negotiate cannot be cached.
 }
+
index ed2f45f39f280ab6dd5782d70cc4e78cbe8624d9..c7ab1b2e488f97eca44759e0bde67492ab661a3a 100644 (file)
@@ -36,3 +36,4 @@ public:
 } // namespace Auth
 
 #endif /* _SQUID_AUTH_NEGOTIATE_USER_H */
+
index 86a9f3ed1ebd891ab0c135b6ed7d6ae5a7e0737a..b4561725611bde795f9141475eaeed62485a3cb9 100644 (file)
@@ -359,7 +359,7 @@ Auth::Negotiate::UserRequest::HandleReply(void *data, const Helper::Reply &reply
 
     case Helper::Unknown:
         debugs(29, DBG_IMPORTANT, "ERROR: Negotiate Authentication Helper '" << reply.whichServer << "' crashed!.");
-        /* continue to the next case */
+    /* continue to the next case */
 
     case Helper::TimedOut:
     case Helper::BrokenHelper: {
@@ -408,3 +408,4 @@ Auth::Negotiate::UserRequest::addAuthenticationInfoHeader(HttpReply * rep, int a
 
     safe_free(server_blob);
 }
+
index 7f586b1472996983d5050183a89cfc227401bf4a..19427ab1b84afeb8742a08a8cd5c869a8dcf3f16 100644 (file)
@@ -65,3 +65,4 @@ private:
 } // namespace Auth
 
 #endif /* _SQUID_SRC_AUTH_NEGOTIATE_USERREQUEST_H */
+
index 73ef0b71925facd4e01c39742da05199d55e60cd..cd500c911663d992514f2b3d9858a09744f20803 100644 (file)
@@ -192,13 +192,13 @@ Auth::Ntlm::Config::fixHeader(Auth::UserRequest::Pointer auth_user_request, Http
             /* here it makes sense to drop the connection, as auth is
              * tied to it, even if MAYBE the client could handle it - Kinkie */
             request->flags.proxyKeepalive = false;
-            /* fall through */
+        /* fall through */
 
         case Auth::Ok:
-            /* Special case: authentication finished OK but disallowed by ACL.
-             * Need to start over to give the client another chance.
-             */
-            /* fall through */
+        /* Special case: authentication finished OK but disallowed by ACL.
+         * Need to start over to give the client another chance.
+         */
+        /* fall through */
 
         case Auth::Unchecked:
             /* semantic change: do not drop the connection.
@@ -245,3 +245,4 @@ Auth::Ntlm::Config::decode(char const *proxy_auth, const char *aRequestRealm)
     debugs(29, 9, HERE << "decode: NTLM authentication");
     return auth_user_request;
 }
+
index 94993843049b7dd5b30d88392cf7d4338cb9c1a3..9b66c2aeed8e3afb4d31762d36ec4301bc5617cd 100644 (file)
@@ -49,3 +49,4 @@ public:
 extern statefulhelper *ntlmauthenticators;
 
 #endif
+
index d3c46007e28393d7a6e018d2366b404177268be0..72680133fc3a82f30ed4a39a0ddf7cb410102882 100644 (file)
@@ -46,3 +46,4 @@ Auth::Ntlm::Scheme::createConfig()
     Auth::Ntlm::Config *ntlmCfg = new Auth::Ntlm::Config;
     return dynamic_cast<Auth::Config*>(ntlmCfg);
 }
+
index d270aca7078dcc224d509c8040276b050722a714..f5ca98e488e088b15a24760358dec1ccd3126062 100644 (file)
@@ -47,3 +47,4 @@ private:
 } // namespace Auth
 
 #endif /* SQUID_AUTH_NTLM_SCHEME_H */
+
index 89b43f84f4339ccdedb9d039e1758c0204661547..09627095e481f56be6798a611d39822ed669c896 100644 (file)
@@ -12,7 +12,7 @@
 #include "Debug.h"
 
 Auth::Ntlm::User::User(Auth::Config *aConfig, const char *aRequestRealm) :
-        Auth::User(aConfig, aRequestRealm)
+    Auth::User(aConfig, aRequestRealm)
 {
 }
 
@@ -26,3 +26,4 @@ Auth::Ntlm::User::ttl() const
 {
     return -1; // NTLM credentials cannot be cached.
 }
+
index e4302c200dae60437cd0899bc5b7f449206046b9..f160d116a5735ebcc4b6c850a7c225253fcc55d3 100644 (file)
@@ -37,3 +37,4 @@ public:
 } // namespace Auth
 
 #endif /* _SQUID_AUTH_NTLM_USER_H */
+
index 434754d2f9cb5eb66d378ea84cfd7e1f4f14e02b..c44251e183007b994a6864336971fb2fcdc64212 100644 (file)
@@ -349,7 +349,7 @@ Auth::Ntlm::UserRequest::HandleReply(void *data, const Helper::Reply &reply)
 
     case Helper::Unknown:
         debugs(29, DBG_IMPORTANT, "ERROR: NTLM Authentication Helper '" << reply.whichServer << "' crashed!.");
-        /* continue to the next case */
+    /* continue to the next case */
 
     case Helper::TimedOut:
     case Helper::BrokenHelper: {
@@ -380,3 +380,4 @@ Auth::Ntlm::UserRequest::HandleReply(void *data, const Helper::Reply &reply)
     r->handler(r->data);
     delete r;
 }
+
index ea327c5575a160592396ceaaeaf6485767a9cf3d..dceea64627eff36d87bdd684c1c1663e13845dee 100644 (file)
@@ -60,3 +60,4 @@ private:
 } // namespace Auth
 
 #endif /* _SQUID_SRC_AUTH_NTLM_USERREQUEST_H */
+
index a5c946e8a61e0e96d51e8dcadbf68956e9b9ff9a..79a2327641f4d6efd84e6874c8e10f58840c3f73 100644 (file)
@@ -20,7 +20,7 @@ InstanceIdDefinitions(AsyncCall, "call");
 
 AsyncCall::AsyncCall(int aDebugSection, int aDebugLevel,
                      const char *aName): name(aName), debugSection(aDebugSection),
-        debugLevel(aDebugLevel), theNext(0), isCanceled(NULL)
+    debugLevel(aDebugLevel), theNext(0), isCanceled(NULL)
 {
     debugs(debugSection, debugLevel, "The AsyncCall " << name << " constructed, this=" << this <<
            " [" << id << ']');
index 062109da6f098a73426d3e8e1429eecbecb5cec4..3194b151c157476f605c4bfe43ec232efccad266 100644 (file)
@@ -127,11 +127,11 @@ class AsyncCallT: public AsyncCall
 public:
     AsyncCallT(int aDebugSection, int aDebugLevel, const char *aName,
                const Dialer &aDialer): AsyncCall(aDebugSection, aDebugLevel, aName),
-            dialer(aDialer) {}
+        dialer(aDialer) {}
 
     AsyncCallT(const AsyncCallT<Dialer> &o):
-            AsyncCall(o.debugSection, o.debugLevel, o.name),
-            dialer(o.dialer) {}
+        AsyncCall(o.debugSection, o.debugLevel, o.name),
+        dialer(o.dialer) {}
 
     ~AsyncCallT() {}
 
@@ -166,3 +166,4 @@ bool ScheduleCall(const char *fileName, int fileLine, AsyncCall::Pointer &call);
 #define ScheduleCallHere(call) ScheduleCall(__FILE__, __LINE__, (call))
 
 #endif /* SQUID_ASYNCCALL_H */
+
index 411b7c91b89eb6458e2fd9165690a81f7ec67ce7..04b88ae0bac7fd269cffb3354bd381fb67e57633 100644 (file)
@@ -39,3 +39,4 @@ private:
 };
 
 #endif /* SQUID_ASYNCCALLQUEUE_H */
+
index 5ebfc1cdad2c62a8d150ce9197f7927bb8ed3de7..e9aa1e6de74c8f946e01950967ea9b6bd79e7912 100644 (file)
@@ -21,8 +21,8 @@ public:
     typedef void Handler(Argument1 *);
 
     UnaryCbdataDialer(Handler *aHandler, Argument1 *aArg) :
-            arg1(aArg),
-            handler(aHandler) {}
+        arg1(aArg),
+        handler(aHandler) {}
 
     virtual bool canDial(AsyncCall &call) { return arg1.valid(); }
     void dial(AsyncCall &call) { handler(arg1.get()); }
@@ -42,3 +42,4 @@ cbdataDialer(typename UnaryCbdataDialer<Argument1>::Handler *handler, Argument1
 }
 
 #endif
+
index 29286a91b50960764a8d27b7f0d63cd934e7bd82..71577929a7e4c431a79870c432338acb2f0ef80d 100644 (file)
@@ -28,7 +28,7 @@ AsyncJob::Pointer AsyncJob::Start(AsyncJob *j)
 }
 
 AsyncJob::AsyncJob(const char *aTypeName) :
-        stopReason(NULL), typeName(aTypeName), inCall(NULL)
+    stopReason(NULL), typeName(aTypeName), inCall(NULL)
 {
     debugs(93,5, "AsyncJob constructed, this=" << this <<
            " type=" << typeName << " [" << id << ']');
index 918127b6ee06b40e75a42a072ce49efa55170ff6..077744265844dc08cbed11b35415e8f46a58bb9b 100644 (file)
@@ -72,3 +72,4 @@ protected:
 };
 
 #endif /* SQUID_ASYNC_JOB_H */
+
index 0c0fa961006ef70ba8db03739413920b906a2403..ece2810ac3b9fb38260656dbe89964a09bc593e4 100644 (file)
@@ -91,7 +91,7 @@ class NullaryMemFunT: public JobDialer<Job>
 public:
     typedef void (Job::*Method)();
     explicit NullaryMemFunT(const CbcPointer<Job> &aJob, Method aMethod):
-            JobDialer<Job>(aJob), method(aMethod) {}
+        JobDialer<Job>(aJob), method(aMethod) {}
 
     virtual void print(std::ostream &os) const {  os << "()"; }
 
@@ -109,7 +109,7 @@ public:
     typedef void (Job::*Method)(Argument1);
     explicit UnaryMemFunT(const CbcPointer<Job> &aJob, Method aMethod,
                           const Data &anArg1): JobDialer<Job>(aJob),
-            method(aMethod), arg1(anArg1) {}
+        method(aMethod), arg1(anArg1) {}
 
     virtual void print(std::ostream &os) const {  os << '(' << arg1 << ')'; }
 
@@ -182,3 +182,4 @@ JobDialer<Job>::dial(AsyncCall &call)
 }
 
 #endif /* SQUID_ASYNCJOBCALLS_H */
+
index dfb197aadce5ee6330ad8b3cdd7a75ce675aa940..2a0742041d95a05e615ab9d6e3d774624657c07c 100644 (file)
@@ -196,3 +196,4 @@ CbDataListContainer<C>::empty() const
 }
 
 #endif /* SQUID_CBDATALIST_H */
+
index 925fa86378454f37e6d9b07a8280c71eef3bbc92..381f35060fee19e40263506639119b74bf174643 100644 (file)
@@ -167,3 +167,4 @@ std::ostream &CbcPointer<Cbc>::print(std::ostream &os) const
 }
 
 #endif /* SQUID_CBC_POINTER_H */
+
index 8c0c6c518d408770809c61f6e67043d1fd1edffd..f6cbfe9ed3fa9e751b85e63fb88ce9b6b31845c7 100644 (file)
@@ -66,8 +66,8 @@ CharacterSet::complement(const char *label) const
 }
 
 CharacterSet::CharacterSet(const char *label, const char * const c) :
-        name(label == NULL ? "anonymous" : label),
-        chars_(Storage(256,0))
+    name(label == NULL ? "anonymous" : label),
+    chars_(Storage(256,0))
 {
     const size_t clen = strlen(c);
     for (size_t i = 0; i < clen; ++i)
@@ -75,8 +75,8 @@ CharacterSet::CharacterSet(const char *label, const char * const c) :
 }
 
 CharacterSet::CharacterSet(const char *label, unsigned char low, unsigned char high) :
-        name(label == NULL ? "anonymous" : label),
-        chars_(Storage(256,0))
+    name(label == NULL ? "anonymous" : label),
+    chars_(Storage(256,0))
 {
     addRange(low,high);
 }
@@ -84,33 +84,34 @@ CharacterSet::CharacterSet(const char *label, unsigned char low, unsigned char h
 const CharacterSet
 // RFC 5234
 CharacterSet::ALPHA("ALPHA", "abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ"),
-CharacterSet::BIT("BIT","01"),
-CharacterSet::CR("CR","\r"),
+             CharacterSet::BIT("BIT","01"),
+             CharacterSet::CR("CR","\r"),
 #if __cplusplus == 201103L
 //CharacterSet::CTL("CTL",{{0x01,0x1f},{0x7f,0x7f}}),
 #endif
-CharacterSet::DIGIT("DIGIT","0123456789"),
-CharacterSet::DQUOTE("DQUOTE","\""),
-CharacterSet::HEXDIG("HEXDIG","0123456789aAbBcCdDeEfF"),
-CharacterSet::HTAB("HTAB","\t"),
-CharacterSet::LF("LF","\n"),
-CharacterSet::SP("SP"," "),
-CharacterSet::VCHAR("VCHAR", 0x21, 0x7e),
+             CharacterSet::DIGIT("DIGIT","0123456789"),
+             CharacterSet::DQUOTE("DQUOTE","\""),
+             CharacterSet::HEXDIG("HEXDIG","0123456789aAbBcCdDeEfF"),
+             CharacterSet::HTAB("HTAB","\t"),
+             CharacterSet::LF("LF","\n"),
+             CharacterSet::SP("SP"," "),
+             CharacterSet::VCHAR("VCHAR", 0x21, 0x7e),
 // RFC 7230
-CharacterSet::WSP("WSP"," \t"),
+             CharacterSet::WSP("WSP"," \t"),
 #if __cplusplus == 201103L
 //CharacterSet::CTEXT("ctext",{{0x09,0x09},{0x20,0x20},{0x2a,0x5b},{0x5d,0x7e},{0x80,0xff}}),
 #endif
-CharacterSet::TCHAR("TCHAR","!#$%&'*+-.^_`|~0123456789abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ"),
-CharacterSet::SPECIAL("SPECIAL","()<>@,;:\\\"/[]?={}"),
+             CharacterSet::TCHAR("TCHAR","!#$%&'*+-.^_`|~0123456789abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ"),
+             CharacterSet::SPECIAL("SPECIAL","()<>@,;:\\\"/[]?={}"),
 #if __cplusplus == 201103L
 //CharacterSet::QDTEXT("QDTEXT",{{0x09,0x09},{0x20,0x21},{0x23,0x5b},{0x5d,0x7e},{0x80,0xff}}),
 #endif
-CharacterSet::OBSTEXT("OBSTEXT",0x80,0xff),
+             CharacterSet::OBSTEXT("OBSTEXT",0x80,0xff),
 // RFC 7232
 #if __cplusplus == 201103L
 //CharacterSet::ETAGC("ETAGC",{{0x21,0x21},{0x23,0x7e},{0x80,0xff}}),
 #endif
 // RFC 7235
-CharacterSet::TOKEN68C("TOKEN68C","-._~+/0123456789abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ")
-;
+             CharacterSet::TOKEN68C("TOKEN68C","-._~+/0123456789abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ")
+             ;
+
index f4959a3947fc841d264d15ba4e82c25fb1a6d5ca..3f7d7b38f11c94859de48ba1589f116d6ada09ca 100644 (file)
@@ -120,3 +120,4 @@ private:
 };
 
 #endif /* _SQUID_SRC_PARSER_CHARACTERSET_H */
+
index 89cfd7325ae10bc0fed845360a320ea85d7df662..e4d3501d7268fe77b8fadd89c0a71313dbd91146 100644 (file)
@@ -65,3 +65,4 @@ std::ostream &operator <<(std::ostream &os, const InstanceId<Class> &id)
 }
 
 #endif /* SQUID_BASE_INSTANCE_ID_H */
+
index 2c70c4eb29b13a0e09b1fd2ae7c17a58b78960be..50022687e0c751bee13a6b5be6019d912252ad4e 100644 (file)
@@ -65,3 +65,4 @@ private:
 #define RefCountable virtual Lock
 
 #endif /* SQUID_SRC_BASE_LOCK_H */
+
index e12cf8f48b9eba16abb9b0d1ac3a2f3139a491ba..f68a049771b78e629863c988cd31a0d22097cd6c 100644 (file)
@@ -216,3 +216,4 @@ LruMap<EntryValue, EntryCost>::touch(LruMap::MapIterator const &i)
 }
 
 #endif
+
index 5a35d6cf54e0ecb3bd2f5abeb3e29321f8208a93..ac571793f7b49983f2e81deba1813b695bb91056 100644 (file)
@@ -98,3 +98,4 @@ inline std::ostream &operator <<(std::ostream &os, const RefCount<C> &p)
 }
 
 #endif /* SQUID_REFCOUNT_H_ */
+
index 6a4ce96daff2a6966847455625eeead51447d165..127fc4c1549028c2709b0edfe7e24c44541671f0 100644 (file)
@@ -51,3 +51,4 @@ UseThisStatic(const void *)
 {
     return true;
 }
+
index c78edc115fa3e95fb19ac1d0804a271e542b4044..07ac21ade1a836e8b80c43d194a1a613339fb686 100644 (file)
@@ -101,3 +101,4 @@ bool UseThisStatic(const void *);
         UseThisStatic(& Who ## _Registered_);
 
 #endif /* SQUID_BASE_RUNNERSREGISTRY_H */
+
index 9c437b5b9d3f7b78c7cf427dd9b011f0d3826d57..83040da5dace6bb1675b3ba25640a10ba54d66a9 100644 (file)
@@ -57,3 +57,4 @@ private:
 };
 
 #endif /* _SQUID_BASE_SUBSCRIPTION_H */
+
index 64e97743ad66ac68308abe791cd82411298b8ad2..0fbd319949c5076f8a46384ea3e5ee4d98339c8d 100644 (file)
@@ -20,12 +20,12 @@ TextException::TextException()
 }
 
 TextException::TextException(const TextException& right) :
-        message((right.message?xstrdup(right.message):NULL)), theFileName(right.theFileName), theLineNo(right.theLineNo), theId(right.theId)
+    message((right.message?xstrdup(right.message):NULL)), theFileName(right.theFileName), theLineNo(right.theLineNo), theId(right.theId)
 {
 }
 
 TextException::TextException(const char *aMsg, const char *aFileName, int aLineNo, unsigned int anId):
-        message(aMsg?xstrdup(aMsg):NULL), theFileName(aFileName), theLineNo(aLineNo), theId(anId)
+    message(aMsg?xstrdup(aMsg):NULL), theFileName(aFileName), theLineNo(aLineNo), theId(anId)
 {}
 
 TextException::~TextException() throw()
@@ -92,3 +92,4 @@ void Throw(const char *message, const char *fileName, int lineNo, unsigned int i
 
     throw TextException(message, fileName, lineNo, id);
 }
+
index dc1f4509b8bb05449b130c801dd5996c3f3fa2e9..83c47f566689f7e1bc7aa7dcb358349f949c8dba 100644 (file)
@@ -90,3 +90,4 @@ void Throw(const char *message, const char *fileName, int lineNo, unsigned int i
 #endif
 
 #endif /* SQUID__TEXTEXCEPTION_H */
+
index 1159b964fab2ca4c14fd1216cd63d8e963c84ffa..b6e919f278b657b69c50b0d39c1b4fb292dbec38 100644 (file)
@@ -21,7 +21,7 @@ public:
     /// Delete callback.
     typedef void DCB (T *t);
     TidyPointer(T *t = NULL)
-            :   raw(t) {}
+        :   raw(t) {}
 public:
     bool operator !() const { return !raw; }
     /// Returns raw and possibly NULL pointer
@@ -66,3 +66,4 @@ template<typename T> void tidyFree(T *p)
 }
 
 #endif // SQUID_BASE_TIDYPOINTER_H
+
index 2bdab95790651831fe9a8f487159e9cd4343213b..41abf3a4f7573175389b0df9beb555f6fde9b904 100644 (file)
@@ -86,3 +86,4 @@ testCharacterSet::CharacterSetUnion()
             CPPUNIT_ASSERT_EQUAL(CharacterSet::HEXDIG[j],hex[j]);
     }
 }
+
index 11e7fee65187172548b13b69859700267c4b158c..e282139f9a996dae466437057bbe9ae1eeeac821 100644 (file)
@@ -30,3 +30,4 @@ protected:
 };
 
 #endif /* SQUID_BASE_TESTCHARACTERSET_H */
+
index 996756b5dd120b1695a402a7cd20241cae4642d5..934f7f3c82b9f60e1b644c9d8983c8573de1ddb6 100644 (file)
@@ -475,14 +475,14 @@ parseOneConfigFile(const char *file_name, unsigned int depth)
             new_lineno = strtol(token, &file, 0) - 1;
 
             if (file == token)
-                continue;      /* Not a valid #line directive, may be a comment */
+                continue;   /* Not a valid #line directive, may be a comment */
 
             while (*file && xisspace((unsigned char) *file))
                 ++file;
 
             if (*file) {
                 if (*file != '"')
-                    continue;  /* Not a valid #line directive, may be a comment */
+                    continue;   /* Not a valid #line directive, may be a comment */
 
                 xstrncpy(new_file_name, file + 1, sizeof(new_file_name));
 
@@ -643,7 +643,7 @@ configDoConfigure(void)
     if (Config.Announce.period > 0) {
         Config.onoff.announce = 1;
     } else {
-        Config.Announce.period = 86400 * 365;  /* one year */
+        Config.Announce.period = 86400 * 365;   /* one year */
         Config.onoff.announce = 0;
     }
 
@@ -996,7 +996,7 @@ parseTimeLine(time_msec_t * tptr, const char *units,  bool allowMsec,  bool expe
 
     d = xatof(token);
 
-    m = u;                     /* default to 'units' if none specified */
+    m = u;          /* default to 'units' if none specified */
 
     bool hasUnits = false;
     if (0 == d)
@@ -1087,7 +1087,7 @@ parseBytesLine64(int64_t * bptr, const char *units)
 
     d = xatof(token);
 
-    m = u;                     /* default to 'units' if none specified */
+    m = u;          /* default to 'units' if none specified */
 
     if (0.0 == d)
         (void) 0;
@@ -1134,7 +1134,7 @@ parseBytesLine(size_t * bptr, const char *units)
 
     d = xatof(token);
 
-    m = u;                     /* default to 'units' if none specified */
+    m = u;          /* default to 'units' if none specified */
 
     if (0.0 == d)
         (void) 0;
@@ -1181,7 +1181,7 @@ parseBytesLineSigned(ssize_t * bptr, const char *units)
 
     d = xatof(token);
 
-    m = u;                     /* default to 'units' if none specified */
+    m = u;          /* default to 'units' if none specified */
 
     if (0.0 == d)
         (void) 0;
@@ -1388,7 +1388,7 @@ static void
 parse_acl_address(AclAddress ** head)
 {
     AclAddress *l;
-    AclAddress **tail = head;  /* sane name below */
+    AclAddress **tail = head;   /* sane name below */
     CBDATA_INIT_TYPE_FREECB(AclAddress, freed_acl_address);
     l = cbdataAlloc(AclAddress);
     parse_address(&l->addr);
@@ -1440,7 +1440,7 @@ static void
 parse_acl_tos(acl_tos ** head)
 {
     acl_tos *l;
-    acl_tos **tail = head;     /* sane name below */
+    acl_tos **tail = head;  /* sane name below */
     unsigned int tos;           /* Initially uint for strtoui. Casted to tos_t before return */
     char *token = ConfigParser::NextToken();
 
@@ -1517,7 +1517,7 @@ static void
 parse_acl_nfmark(acl_nfmark ** head)
 {
     acl_nfmark *l;
-    acl_nfmark **tail = head;  /* sane name below */
+    acl_nfmark **tail = head;   /* sane name below */
     nfmark_t mark;
     char *token = ConfigParser::NextToken();
 
@@ -1587,7 +1587,7 @@ static void
 parse_acl_b_size_t(AclSizeLimit ** head)
 {
     AclSizeLimit *l;
-    AclSizeLimit **tail = head;        /* sane name below */
+    AclSizeLimit **tail = head; /* sane name below */
 
     CBDATA_INIT_TYPE_FREECB(AclSizeLimit, freed_acl_b_size_t);
 
@@ -2018,7 +2018,7 @@ isUnsignedNumeric(const char *str, size_t len)
 }
 
 /**
- \param proto  'tcp' or 'udp' for protocol
+ \param proto   'tcp' or 'udp' for protocol
  \returns       Port the named service is supposed to be listening on.
  */
 static unsigned short
@@ -2526,7 +2526,7 @@ parse_hostdomain(void)
         l = static_cast<CachePeerDomainList *>(xcalloc(1, sizeof(CachePeerDomainList)));
         l->do_ping = true;
 
-        if (*domain == '!') {  /* check for !.edu */
+        if (*domain == '!') {   /* check for !.edu */
             l->do_ping = false;
             ++domain;
         }
@@ -2795,7 +2795,7 @@ parse_refreshpattern(RefreshPattern ** head)
 
     pattern = xstrdup(token);
 
-    i = GetInteger();          /* token: min */
+    i = GetInteger();       /* token: min */
 
     /* catch negative and insanely huge values close to 32-bit wrap */
     if (i < 0) {
@@ -2807,13 +2807,13 @@ parse_refreshpattern(RefreshPattern ** head)
         i = 60*24*365;
     }
 
-    min = (time_t) (i * 60);   /* convert minutes to seconds */
+    min = (time_t) (i * 60);    /* convert minutes to seconds */
 
-    i = GetPercentage();       /* token: pct */
+    i = GetPercentage();    /* token: pct */
 
     pct = (double) i / 100.0;
 
-    i = GetInteger();          /* token: max */
+    i = GetInteger();       /* token: max */
 
     /* catch negative and insanely huge values close to 32-bit wrap */
     if (i < 0) {
@@ -2825,7 +2825,7 @@ parse_refreshpattern(RefreshPattern ** head)
         i = 60*24*365;
     }
 
-    max = (time_t) (i * 60);   /* convert minutes to seconds */
+    max = (time_t) (i * 60);    /* convert minutes to seconds */
 
     /* Options */
     while ((token = ConfigParser::NextToken()) != NULL) {
@@ -5007,3 +5007,4 @@ free_configuration_includes_quoted_values(bool *recognizeQuotedValues)
     ConfigParser::RecognizeQuotedValues = false;
     ConfigParser::StrictMode = false;
 }
+
index 34faa6e32d7c61b03887bd5e938f17ea047d74f1..961c7ce7afc620192a659bd05c8b1b1c74095bde 100644 (file)
@@ -27,3 +27,4 @@ void parse_time_t(time_t * var);
 char *strtokFile(void);
 
 #endif /* SQUID_CACHE_CF_H_ */
+
index 3c44eb441f08cc1a21c057a8a9967c07aa402e48..0e9fafe547f69665cb3235d034417ba64b1abdd0 100644 (file)
 typedef struct {
     const char *name;
     hash_table *hash;
-    int count;                 /* #currently cached entries */
-    int scanned_count;         /* #scanned entries */
-    int bad_add_count;         /* #duplicate adds */
-    int bad_del_count;         /* #dels with no prior add */
+    int count;          /* #currently cached entries */
+    int scanned_count;      /* #scanned entries */
+    int bad_add_count;      /* #duplicate adds */
+    int bad_del_count;      /* #dels with no prior add */
 } CacheIndex;
 
 typedef struct _CacheEntry {
@@ -277,3 +277,4 @@ main(int argc, char *argv[])
 
     return 1;
 }
+
index ec47320948c0791a4f877f90b53a9c27335db101..35598cc74c8b3c2a8c9dfeabc68bbf3a84a4c6d4 100644 (file)
@@ -267,9 +267,9 @@ CacheManager::ParseHeaders(const HttpRequest * request, Mgr::ActionParams &param
 /**
  \ingroup CacheManagerInternal
  *
- \retval 0     if mgr->password is good or "none"
- \retval 1     if mgr->password is "disable"
- \retval !0    if mgr->password does not match configured password
+ \retval 0  if mgr->password is good or "none"
+ \retval 1  if mgr->password is "disable"
+ \retval !0 if mgr->password does not match configured password
  */
 int
 CacheManager::CheckPassword(const Mgr::Command &cmd)
@@ -478,3 +478,4 @@ CacheManager::GetInstance()
     }
     return instance;
 }
+
index a16a3d185906c5897342b487d7df32a03a0ae848..9bee8504e2306071d253ab3861407ba8148a33f3 100644 (file)
@@ -124,11 +124,11 @@ carpInit(void)
      */
     K = n_carp_peers;
 
-    P_last = 0.0;              /* Empty P_0 */
+    P_last = 0.0;       /* Empty P_0 */
 
-    Xn = 1.0;                  /* Empty starting point of X_1 * X_2 * ... * X_{x-1} */
+    Xn = 1.0;           /* Empty starting point of X_1 * X_2 * ... * X_{x-1} */
 
-    X_last = 0.0;              /* Empty X_0, nullifies the first pow statement */
+    X_last = 0.0;       /* Empty X_0, nullifies the first pow statement */
 
     for (k = 1; k <= K; ++k) {
         double Kk1 = (double) (K - k + 1);
@@ -243,3 +243,4 @@ carpCachemgr(StoreEntry * sentry)
                           sumfetches ? (double) p->stats.fetches / sumfetches : -1.0);
     }
 }
+
index ab4cd4a12f6e928af76d5e03112fc03d56ba9d5a..6ed6a0ca74318bfd45f99a502102a333237b6c70 100644 (file)
@@ -18,3 +18,4 @@ void carpInit(void);
 CachePeer *carpSelectParent(HttpRequest *);
 
 #endif /* SQUID_CARP_H_ */
+
index ac1a72163db4af9a49c6c674d0828853ff91432e..bc0c64aec4ab0eef42681f5a3e7881150a087498 100644 (file)
@@ -76,7 +76,7 @@ public:
      * safe access to data - RBC 20030902 */
 public:
 #if HASHED_CBDATA
-    hash_link hash;    // Must be first
+    hash_link hash; // Must be first
 #endif
 
 #if USE_CBDATA_DEBUG
@@ -479,7 +479,7 @@ cbdataReferenceValid(const void *p)
     cbdata *c;
 
     if (p == NULL)
-        return 1;              /* A NULL pointer cannot become invalid */
+        return 1;       /* A NULL pointer cannot become invalid */
 
     debugs(45, 9, p);
 
@@ -620,3 +620,4 @@ cbdataDumpHistory(StoreEntry *sentry)
 }
 
 #endif
+
index c4fa4f2dbb4260a96fa953658af53e74037cdf2b..09f440fda79f4503d152b399c8e3ed3f88668c01 100644 (file)
  *
  \section Examples Examples
  \par
- *     Here you can find some examples on how to use cbdata, and why.
+ *  Here you can find some examples on how to use cbdata, and why.
  *
  \subsection AsyncOpWithoutCBDATA Asynchronous operation without cbdata, showing why cbdata is needed
  \par
- *     For a asyncronous operation with callback functions, the normal
- *     sequence of events in programs NOT using cbdata is as follows:
+ *  For a asyncronous operation with callback functions, the normal
+ *  sequence of events in programs NOT using cbdata is as follows:
  *
  \code
-       // initialization
-       type_of_data our_data;
-       ...
-       our_data = malloc(...);
-       ...
-       // Initiate a asyncronous operation, with our_data as callback_data
-       fooOperationStart(bar, callback_func, our_data);
-       ...
-       // The asyncronous operation completes and makes the callback
-       callback_func(callback_data, ....);
-       // Some time later we clean up our data
-       free(our_data);
+    // initialization
+    type_of_data our_data;
+    ...
+    our_data = malloc(...);
+    ...
+    // Initiate a asyncronous operation, with our_data as callback_data
+    fooOperationStart(bar, callback_func, our_data);
+    ...
+    // The asyncronous operation completes and makes the callback
+    callback_func(callback_data, ....);
+    // Some time later we clean up our data
+    free(our_data);
  \endcode
  *
  \par
- *     However, things become more interesting if we want or need
- *     to free the callback_data, or otherwise cancel the callback,
- *     before the operation completes. In constructs like this you
- *     can quite easily end up with having the memory referenced
- *     pointed to by callback_data freed before the callback is invoked
- *     causing a program failure or memory corruption:
+ *  However, things become more interesting if we want or need
+ *  to free the callback_data, or otherwise cancel the callback,
+ *  before the operation completes. In constructs like this you
+ *  can quite easily end up with having the memory referenced
+ *  pointed to by callback_data freed before the callback is invoked
+ *  causing a program failure or memory corruption:
  *
  \code
-       // initialization
-       type_of_data our_data;
-       ...
-       our_data = malloc(...);
-       ...
-       // Initiate a asyncronous operation, with our_data as callback_data
-       fooOperationStart(bar, callback_func, our_data);
-       ...
-       // ouch, something bad happened elsewhere.. try to cleanup
-       // but the programmer forgot there is a callback pending from
-       // fooOperationsStart() (an easy thing to forget when writing code
-       // to deal with errors, especially if there may be many different
-       // pending operation)
-       free(our_data);
-       ...
-       // The asyncronous operation completes and makes the callback
-       callback_func(callback_data, ....);
-       // CRASH, the memory pointer to by callback_data is no longer valid
-       // at the time of the callback
+    // initialization
+    type_of_data our_data;
+    ...
+    our_data = malloc(...);
+    ...
+    // Initiate a asyncronous operation, with our_data as callback_data
+    fooOperationStart(bar, callback_func, our_data);
+    ...
+    // ouch, something bad happened elsewhere.. try to cleanup
+    // but the programmer forgot there is a callback pending from
+    // fooOperationsStart() (an easy thing to forget when writing code
+    // to deal with errors, especially if there may be many different
+    // pending operation)
+    free(our_data);
+    ...
+    // The asyncronous operation completes and makes the callback
+    callback_func(callback_data, ....);
+    // CRASH, the memory pointer to by callback_data is no longer valid
+    // at the time of the callback
  \endcode
  *
  \subsection AsyncOpWithCBDATA Asyncronous operation with cbdata
  *
  \par
- *     The callback data allocator lets us do this in a uniform and
- *     safe manner.  The callback data allocator is used to allocate,
- *     track and free memory pool objects used during callback
- *     operations.  Allocated memory is locked while the asyncronous
- *     operation executes elsewhere, and is freed when the operation
- *     completes.  The normal sequence of events is:
+ *  The callback data allocator lets us do this in a uniform and
+ *  safe manner.  The callback data allocator is used to allocate,
+ *  track and free memory pool objects used during callback
+ *  operations.  Allocated memory is locked while the asyncronous
+ *  operation executes elsewhere, and is freed when the operation
+ *  completes.  The normal sequence of events is:
  *
  \code
-       // initialization
-       type_of_data our_data;
-       ...
-       our_data = cbdataAlloc(type_of_data);
-       ...
-       // Initiate a asyncronous operation, with our_data as callback_data
-       fooOperationStart(..., callback_func, our_data);
-       ...
-       // foo
-       void *local_pointer = cbdataReference(callback_data);
-       ....
-       // The asyncronous operation completes and makes the callback
-       void *cbdata;
-       if (cbdataReferenceValidDone(local_pointer, &amp;cbdata))
-           callback_func(...., cbdata);
-       ...
-       cbdataFree(our_data);
+    // initialization
+    type_of_data our_data;
+    ...
+    our_data = cbdataAlloc(type_of_data);
+    ...
+    // Initiate a asyncronous operation, with our_data as callback_data
+    fooOperationStart(..., callback_func, our_data);
+    ...
+    // foo
+    void *local_pointer = cbdataReference(callback_data);
+    ....
+    // The asyncronous operation completes and makes the callback
+    void *cbdata;
+    if (cbdataReferenceValidDone(local_pointer, &amp;cbdata))
+        callback_func(...., cbdata);
+    ...
+    cbdataFree(our_data);
  \endcode
  *
  \subsection AsynchronousOpCancelledByCBDATA Asynchronous operation cancelled by cbdata
  *
  \par
- *     With this scheme, nothing bad happens if cbdataFree() gets called
- *     before fooOperantionComplete(...).
+ *  With this scheme, nothing bad happens if cbdataFree() gets called
+ *  before fooOperantionComplete(...).
  *
- \par  Initalization
+ \par   Initalization
  \code
-       type_of_data our_data;
-       ...
-       our_data = cbdataAlloc(type_of_data);
+    type_of_data our_data;
+    ...
+    our_data = cbdataAlloc(type_of_data);
  \endcode
- *     Initiate a asyncronous operation, with our_data as callback_data
+ *  Initiate a asyncronous operation, with our_data as callback_data
  \code
-       fooOperationStart(..., callback_func, our_data);
+    fooOperationStart(..., callback_func, our_data);
  \endcode
- *     do some stuff with it
+ *  do some stuff with it
  \code
-       void *local_pointer = cbdataReference(callback_data);
+    void *local_pointer = cbdataReference(callback_data);
  \endcode
- *     something bad happened elsewhere.. cleanup
+ *  something bad happened elsewhere.. cleanup
  \code
-       cbdataFree(our_data);
+    cbdataFree(our_data);
  \endcode
- *     The asyncronous operation completes and tries to make the callback
+ *  The asyncronous operation completes and tries to make the callback
  \code
-       void *cbdata;
-       if (cbdataReferenceValidDone(local_pointer, &amp;cbdata))
+    void *cbdata;
+    if (cbdataReferenceValidDone(local_pointer, &amp;cbdata))
         {
  \endcode
- *     won't be called, as the data is no longer valid
+ *  won't be called, as the data is no longer valid
  \code
-           callback_func(...., cbdata);
-       }
+        callback_func(...., cbdata);
+    }
  \endcode
  *
  \par
- *     In this case, when cbdataFree() is called before
- *     cbdataReferenceValidDone(), the callback_data gets marked as invalid.
- *     When the callback_data is invalid before executing the callback
- *     function, cbdataReferenceValidDone() will return 0 and
- *     callback_func is never executed.
+ *  In this case, when cbdataFree() is called before
+ *  cbdataReferenceValidDone(), the callback_data gets marked as invalid.
+ *  When the callback_data is invalid before executing the callback
+ *  function, cbdataReferenceValidDone() will return 0 and
+ *  callback_func is never executed.
  *
  \subsection AddingCBDATAType Adding a new cbdata registered type
  *
  \par
- *     To add new module specific data types to the allocator one uses the
- *     macro CBDATA_CLASS() in the class private section, and CBDATA_CLASS_INIT()
+ *  To add new module specific data types to the allocator one uses the
+ *  macro CBDATA_CLASS() in the class private section, and CBDATA_CLASS_INIT()
  *      or CBDATA_NAMESPACED_CLASS_INIT() in the .cc file.
  *      This creates new(), delete() and toCbdata() methods
- *     definition in class scope. Any allocate calls must be made with
+ *  definition in class scope. Any allocate calls must be made with
  *      new() and destruction with delete(), they may be called from anywhere.
  */
 
@@ -195,14 +195,14 @@ void *cbdataInternalAlloc(cbdata_type type, const char *, int);
  */
 void *cbdataInternalFree(void *p, const char *, int);
 /// \deprecated use CBDATA_CLASS() instead
-#define cbdataFree(var)                do {if (var) {cbdataInternalFree(var,__FILE__,__LINE__); var = NULL;}} while(0)
+#define cbdataFree(var)     do {if (var) {cbdataInternalFree(var,__FILE__,__LINE__); var = NULL;}} while(0)
 
 #if USE_CBDATA_DEBUG
 void cbdataInternalLockDbg(const void *p, const char *, int);
-#define cbdataInternalLock(a)          cbdataInternalLockDbg(a,__FILE__,__LINE__)
+#define cbdataInternalLock(a)       cbdataInternalLockDbg(a,__FILE__,__LINE__)
 
 void cbdataInternalUnlockDbg(const void *p, const char *, int);
-#define cbdataInternalUnlock(a)                cbdataInternalUnlockDbg(a,__FILE__,__LINE__)
+#define cbdataInternalUnlock(a)     cbdataInternalUnlockDbg(a,__FILE__,__LINE__)
 
 int cbdataInternalReferenceDoneValidDbg(void **p, void **tp, const char *, int);
 #define cbdataReferenceValidDone(var, ptr) cbdataInternalReferenceDoneValidDbg((void **)&(var), (ptr), __FILE__,__LINE__)
@@ -223,8 +223,8 @@ void cbdataInternalUnlock(const void *p);
             callback(..., cbdata);
  \endcode
  *
- \param var    The reference variable. Will be automatically cleared to NULL.
- \param ptr    A temporary pointer to the referenced data (if valid).
+ \param var The reference variable. Will be automatically cleared to NULL.
+ \param ptr A temporary pointer to the referenced data (if valid).
  */
 int cbdataInternalReferenceDoneValid(void **p, void **tp);
 #define cbdataReferenceValidDone(var, ptr) cbdataInternalReferenceDoneValid((void **)&(var), (ptr))
@@ -232,10 +232,10 @@ int cbdataInternalReferenceDoneValid(void **p, void **tp);
 #endif /* !CBDATA_DEBUG */
 
 /**
- * \param p    A cbdata entry reference pointer.
+ * \param p A cbdata entry reference pointer.
  *
- * \retval 0   A reference is stale. The pointer refers to a entry freed by cbdataFree().
- * \retval true        The reference is valid and active.
+ * \retval 0    A reference is stale. The pointer refers to a entry freed by cbdataFree().
+ * \retval true The reference is valid and active.
  */
 int cbdataReferenceValid(const void *p);
 
@@ -246,20 +246,20 @@ cbdata_type cbdataInternalAddType(cbdata_type type, const char *label, int size,
  * This needs to be defined FIRST in the class definition.
  * It plays with private/public states in C++.
  */
-#define CBDATA_CLASS(type)     \
-       public: \
-               void *operator new(size_t size) { \
-                 assert(size == sizeof(type)); \
-                 if (!CBDATA_##type) \
+#define CBDATA_CLASS(type)  \
+    public: \
+        void *operator new(size_t size) { \
+          assert(size == sizeof(type)); \
+          if (!CBDATA_##type) \
                       CBDATA_##type = cbdataInternalAddType(CBDATA_##type, #type, sizeof(type), NULL); \
-                 return (type *)cbdataInternalAlloc(CBDATA_##type,__FILE__,__LINE__); \
-               } \
-               void operator delete (void *address) { \
-                 if (address) cbdataInternalFree(address,__FILE__,__LINE__);\
-               } \
+          return (type *)cbdataInternalAlloc(CBDATA_##type,__FILE__,__LINE__); \
+        } \
+        void operator delete (void *address) { \
+          if (address) cbdataInternalFree(address,__FILE__,__LINE__);\
+        } \
                 void *toCbdata() { return this; } \
-       private: \
-       static cbdata_type CBDATA_##type;
+    private: \
+    static cbdata_type CBDATA_##type;
 
 /**
  \par
@@ -273,13 +273,13 @@ cbdata_type cbdataInternalAddType(cbdata_type type, const char *label, int size,
  *       is quite different. It is best if the reference is thought of
  *       and handled as a "void *".
  */
-#define cbdataReference(var)   (cbdataInternalLock(var), var)
+#define cbdataReference(var)    (cbdataInternalLock(var), var)
 
 /**
  \ingroup CBDATAAPI
  * Removes a reference created by cbdataReference().
  *
- \param var    The reference variable. Will be automatically cleared to NULL.
+ \param var The reference variable. Will be automatically cleared to NULL.
  */
 #define cbdataReferenceDone(var) do {if (var) {cbdataInternalUnlock(var); var = NULL;}} while(0)
 
@@ -296,7 +296,7 @@ cbdata_type cbdataInternalAddType(cbdata_type type, const char *label, int size,
  * restrictions on scope.
  * \deprecated Use CBDATA_CLASS() instead
  */
-#define CBDATA_TYPE(type)      static cbdata_type CBDATA_##type = CBDATA_UNKNOWN
+#define CBDATA_TYPE(type)   static cbdata_type CBDATA_##type = CBDATA_UNKNOWN
 
 /**
  \ingroup CBDATAAPI
@@ -306,8 +306,8 @@ cbdata_type cbdataInternalAddType(cbdata_type type, const char *label, int size,
  \par
  * Alternative to CBDATA_INIT_TYPE()
  *
- \param type           Type being initialized
- \param free_func      The freehandler called when the last known reference to an allocated entry goes away.
+ \param type        Type being initialized
+ \param free_func   The freehandler called when the last known reference to an allocated entry goes away.
  */
 #define CBDATA_INIT_TYPE_FREECB(type, free_func) do { if (!CBDATA_##type) CBDATA_##type = cbdataInternalAddType(CBDATA_##type, #type, sizeof(type), free_func); } while (false)
 
@@ -317,11 +317,11 @@ cbdata_type cbdataInternalAddType(cbdata_type type, const char *label, int size,
  \par
  * Alternative to CBDATA_INIT_TYPE_FREECB()
  *
- \param type           Type being initialized
+ \param type        Type being initialized
  *
  * \deprecated Use CBDATA_CLASS() instead
  */
-#define CBDATA_INIT_TYPE(type) CBDATA_INIT_TYPE_FREECB(type, NULL)
+#define CBDATA_INIT_TYPE(type)  CBDATA_INIT_TYPE_FREECB(type, NULL)
 
 /**
  \ingroup CBDATA
@@ -354,3 +354,4 @@ public:
 };
 
 #endif /* SQUID_CBDATA_H */
+
index f014d7749419001871befe8a2491506115558d23..fa629653dfd01a845afe91ffd18d69080394ba46 100644 (file)
@@ -9,18 +9,18 @@
 /* DEBUG: none          Generate squid.conf.default and cf_parser.cci */
 
 /*****************************************************************************
- * Abstract:   This program parses the input file and generates code and
- *             files used to configure the variables in squid.
- *             (ie it creates the squid.conf.default file from the cf.data file)
+ * Abstract:    This program parses the input file and generates code and
+ *      files used to configure the variables in squid.
+ *      (ie it creates the squid.conf.default file from the cf.data file)
  *
- *             The output files are as follows:
- *             cf_parser.cci - this file contains, default_all() which
- *                       initializes variables with the default
- *                       values, parse_line() that parses line from
- *                       squid.conf.default, dump_config that dumps the
- *                       current the values of the variables.
- *             squid.conf.default - default configuration file given to the server
- *                      administrator.
+ *      The output files are as follows:
+ *      cf_parser.cci - this file contains, default_all() which
+ *            initializes variables with the default
+ *            values, parse_line() that parses line from
+ *            squid.conf.default, dump_config that dumps the
+ *            current the values of the variables.
+ *      squid.conf.default - default configuration file given to the server
+ *           administrator.
  *****************************************************************************/
 
 /*
@@ -44,11 +44,11 @@ _FILE_OFFSET_BITS==64
 
 #include "cf_gen_defines.cci"
 
-#define MAX_LINE       1024    /* longest configuration line */
-#define _PATH_PARSER           "cf_parser.cci"
-#define _PATH_SQUID_CONF       "squid.conf.documented"
-#define _PATH_SQUID_CONF_SHORT "squid.conf.default"
-#define _PATH_CF_DEPEND                "cf.data.depend"
+#define MAX_LINE    1024    /* longest configuration line */
+#define _PATH_PARSER        "cf_parser.cci"
+#define _PATH_SQUID_CONF    "squid.conf.documented"
+#define _PATH_SQUID_CONF_SHORT  "squid.conf.default"
+#define _PATH_CF_DEPEND     "cf.data.depend"
 
 enum State {
     sSTART,
@@ -88,9 +88,9 @@ class Entry
 {
 public:
     Entry(const char *str) :
-            name(str), alias(),type(), loc(),
-            defaults(), comment(), ifdef(), doc(), nocomment(),
-            array_flag(0) {}
+        name(str), alias(),type(), loc(),
+        defaults(), comment(), ifdef(), doc(), nocomment(),
+        array_flag(0) {}
     ~Entry() {}
 
     std::string name;
@@ -393,7 +393,7 @@ main(int argc, char *argv[])
                 break;
 
             case sEXIT:
-                assert(0);             /* should never get here */
+                assert(0);      /* should never get here */
                 break;
             }
 
@@ -424,13 +424,13 @@ main(int argc, char *argv[])
     }
 
     fout <<  "/*\n" <<
-    " * Generated automatically from " << input_filename << " by " <<
-    argv[0] << "\n"
-    " *\n"
-    " * Abstract: This file contains routines used to configure the\n"
-    " *           variables in the squid server.\n"
-    " */\n"
-    "\n";
+         " * Generated automatically from " << input_filename << " by " <<
+         argv[0] << "\n"
+         " *\n"
+         " * Abstract: This file contains routines used to configure the\n"
+         " *           variables in the squid server.\n"
+         " */\n"
+         "\n";
 
     rc = gen_default(entries, fout);
 
@@ -475,19 +475,19 @@ gen_default(const EntryList &head, std::ostream &fout)
 {
     int rc = 0;
     fout << "static void" << std::endl <<
-    "default_line(const char *s)" << std::endl <<
-    "{" << std::endl <<
-    "    LOCAL_ARRAY(char, tmp_line, BUFSIZ);" << std::endl <<
-    "    xstrncpy(tmp_line, s, BUFSIZ);" << std::endl <<
-    "    xstrncpy(config_input_line, s, BUFSIZ);" << std::endl <<
-    "    config_lineno++;" << std::endl <<
-    "    parse_line(tmp_line);" << std::endl <<
-    "}" << std::endl << std::endl;
+         "default_line(const char *s)" << std::endl <<
+         "{" << std::endl <<
+         "    LOCAL_ARRAY(char, tmp_line, BUFSIZ);" << std::endl <<
+         "    xstrncpy(tmp_line, s, BUFSIZ);" << std::endl <<
+         "    xstrncpy(config_input_line, s, BUFSIZ);" << std::endl <<
+         "    config_lineno++;" << std::endl <<
+         "    parse_line(tmp_line);" << std::endl <<
+         "}" << std::endl << std::endl;
     fout << "static void" << std::endl <<
-    "default_all(void)" << std::endl <<
-    "{" << std::endl <<
-    "    cfg_filename = \"Default Configuration\";" << std::endl <<
-    "    config_lineno = 0;" << std::endl;
+         "default_all(void)" << std::endl <<
+         "{" << std::endl <<
+         "    cfg_filename = \"Default Configuration\";" << std::endl <<
+         "    config_lineno = 0;" << std::endl;
 
     for (EntryList::const_iterator entry = head.begin(); entry != head.end(); ++entry) {
         assert(entry->name.size());
@@ -526,7 +526,7 @@ gen_default(const EntryList &head, std::ostream &fout)
     }
 
     fout << "    cfg_filename = NULL;" << std::endl <<
-    "}" << std::endl << std::endl;
+         "}" << std::endl << std::endl;
     return rc;
 }
 
@@ -534,10 +534,10 @@ static void
 gen_default_if_none(const EntryList &head, std::ostream &fout)
 {
     fout << "static void" << std::endl <<
-    "defaults_if_none(void)" << std::endl <<
-    "{" << std::endl <<
-    "    cfg_filename = \"Default Configuration (if absent)\";" << std::endl <<
-    "    config_lineno = 0;" << std::endl;
+         "defaults_if_none(void)" << std::endl <<
+         "{" << std::endl <<
+         "    cfg_filename = \"Default Configuration (if absent)\";" << std::endl <<
+         "    config_lineno = 0;" << std::endl;
 
     for (EntryList::const_iterator entry = head.begin(); entry != head.end(); ++entry) {
         assert(entry->name.size());
@@ -566,7 +566,7 @@ gen_default_if_none(const EntryList &head, std::ostream &fout)
     }
 
     fout << "    cfg_filename = NULL;" << std::endl <<
-    "}" << std::endl << std::endl;
+         "}" << std::endl << std::endl;
 }
 
 /// append configuration options specified by POSTSCRIPTUM lines
@@ -574,10 +574,10 @@ static void
 gen_default_postscriptum(const EntryList &head, std::ostream &fout)
 {
     fout << "static void" << std::endl <<
-    "defaults_postscriptum(void)" << std::endl <<
-    "{" << std::endl <<
-    "    cfg_filename = \"Default Configuration (postscriptum)\";" << std::endl <<
-    "    config_lineno = 0;" << std::endl;
+         "defaults_postscriptum(void)" << std::endl <<
+         "{" << std::endl <<
+         "    cfg_filename = \"Default Configuration (postscriptum)\";" << std::endl <<
+         "    config_lineno = 0;" << std::endl;
 
     for (EntryList::const_iterator entry = head.begin(); entry != head.end(); ++entry) {
         assert(entry->name.size());
@@ -599,7 +599,7 @@ gen_default_postscriptum(const EntryList &head, std::ostream &fout)
     }
 
     fout << "    cfg_filename = NULL;" << std::endl <<
-    "}" << std::endl << std::endl;
+         "}" << std::endl << std::endl;
 }
 
 void
@@ -626,9 +626,9 @@ Entry::genParseAlias(const std::string &aName, std::ostream &fout) const
     fout << "        cfg_directive = NULL;" << std::endl;
     if (ifdef.size()) {
         fout <<
-        "#else" << std::endl <<
-        "    debugs(0, DBG_PARSE_NOTE(DBG_IMPORTANT), \"ERROR: '" << name << "' requires " << available_if(ifdef) << "\");" << std::endl <<
-        "#endif" << std::endl;
+             "#else" << std::endl <<
+             "    debugs(0, DBG_PARSE_NOTE(DBG_IMPORTANT), \"ERROR: '" << name << "' requires " << available_if(ifdef) << "\");" << std::endl <<
+             "#endif" << std::endl;
     }
     fout << "        return 1;" << std::endl;
     fout << "    };" << std::endl;
@@ -653,19 +653,19 @@ static void
 gen_parse(const EntryList &head, std::ostream &fout)
 {
     fout <<
-    "static int\n"
-    "parse_line(char *buff)\n"
-    "{\n"
-    "\tchar\t*token;\n"
-    "\tif ((token = strtok(buff, w_space)) == NULL) \n"
-    "\t\treturn 1;\t/* ignore empty lines */\n"
-    "\tConfigParser::SetCfgLine(strtok(NULL, \"\"));\n";
+         "static int\n"
+         "parse_line(char *buff)\n"
+         "{\n"
+         "\tchar\t*token;\n"
+         "\tif ((token = strtok(buff, w_space)) == NULL) \n"
+         "\t\treturn 1;\t/* ignore empty lines */\n"
+         "\tConfigParser::SetCfgLine(strtok(NULL, \"\"));\n";
 
     for (EntryList::const_iterator e = head.begin(); e != head.end(); ++e)
         e->genParse(fout);
 
     fout << "\treturn 0; /* failure */\n"
-    "}\n\n";
+         "}\n\n";
 
 }
 
@@ -673,10 +673,10 @@ static void
 gen_dump(const EntryList &head, std::ostream &fout)
 {
     fout <<
-    "static void" << std::endl <<
-    "dump_config(StoreEntry *entry)" << std::endl <<
-    "{" << std::endl <<
-    "    debugs(5, 4, HERE);" << std::endl;
+         "static void" << std::endl <<
+         "dump_config(StoreEntry *entry)" << std::endl <<
+         "{" << std::endl <<
+         "    debugs(5, 4, HERE);" << std::endl;
 
     for (EntryList::const_iterator e = head.begin(); e != head.end(); ++e) {
 
@@ -702,10 +702,10 @@ static void
 gen_free(const EntryList &head, std::ostream &fout)
 {
     fout <<
-    "static void" << std::endl <<
-    "free_all(void)" << std::endl <<
-    "{" << std::endl <<
-    "    debugs(5, 4, HERE);" << std::endl;
+         "static void" << std::endl <<
+         "free_all(void)" << std::endl <<
+         "{" << std::endl <<
+         "    debugs(5, 4, HERE);" << std::endl;
 
     for (EntryList::const_iterator e = head.begin(); e != head.end(); ++e) {
         if (!e->loc.size() || e->loc.compare("none") == 0)
@@ -779,8 +779,8 @@ gen_conf(const EntryList &head, std::ostream &fout, bool verbose_output)
         if (!isDefined(entry->ifdef)) {
             if (verbose_output) {
                 fout << "# Note: This option is only available if Squid is rebuilt with the" << std::endl <<
-                "#       " << available_if(entry->ifdef) << std::endl <<
-                "#" << std::endl;
+                     "#       " << available_if(entry->ifdef) << std::endl <<
+                     "#" << std::endl;
             }
             enabled = 0;
         }
@@ -860,3 +860,4 @@ gen_quote_escape(const std::string &var)
 
     return esc.c_str();
 }
+
index 1b28317d453ca72177daf943b0ed2a809a11c7d2..c933b86acedb8c92b8316627ae9913689d83c868 100644 (file)
@@ -167,9 +167,9 @@ clientStreamCallback(clientStreamNode * thisObject, ClientHttpRequest * http,
  \ingroup ClientStreamInternal
  * Call the previous node in the chain to read some data
  *
- \param thisObject     ??
- \param http           ??
- \param readBuffer     ??
+ \param thisObject  ??
+ \param http        ??
+ \param readBuffer  ??
  */
 void
 clientStreamRead(clientStreamNode * thisObject, ClientHttpRequest * http,
@@ -190,8 +190,8 @@ clientStreamRead(clientStreamNode * thisObject, ClientHttpRequest * http,
  \ingroup ClientStreamInternal
  * Detach from the stream - only allowed for terminal members
  *
- \param thisObject     ??
- \param http           ??
+ \param thisObject  ??
+ \param http        ??
  */
 void
 clientStreamDetach(clientStreamNode * thisObject, ClientHttpRequest * http)
@@ -233,8 +233,8 @@ clientStreamDetach(clientStreamNode * thisObject, ClientHttpRequest * http)
  \ingroup ClientStreamInternal
  * Abort the stream - detach every node in the pipeline.
  *
- \param thisObject     ??
- \param http           ??
+ \param thisObject  ??
+ \param http        ??
  */
 void
 clientStreamAbort(clientStreamNode * thisObject, ClientHttpRequest * http)
@@ -255,8 +255,8 @@ clientStreamAbort(clientStreamNode * thisObject, ClientHttpRequest * http)
  \ingroup ClientStreamInternal
  * Call the upstream node to find it's status
  *
- \param thisObject     ??
- \param http           ??
+ \param thisObject  ??
+ \param http        ??
  */
 clientStream_status_t
 clientStreamStatus(clientStreamNode * thisObject, ClientHttpRequest * http)
@@ -307,3 +307,4 @@ clientStreamNode::next() const
     else
         return NULL;
 }
+
index 66c926da6d930ca2715595b0475aea5307aaf260..b20deef9a2c5928837b9832e79c0fb8011f5700b 100644 (file)
  *
  \todo ClientStreams: These details should really be codified as a class which all ClientStream nodes inherit from.
  *
- \par  Each node must have:
- \li   read method - to allow loose coupling in the pipeline. (The reader may
+ \par   Each node must have:
+ \li    read method - to allow loose coupling in the pipeline. (The reader may
                       therefore change if the pipeline is altered, even mid-flow).
- \li   callback method - likewise.
- \li   status method - likewise.
- \li   detach method - used to ensure all resources are cleaned up properly.
- \li   dlink head pointer - to allow list inserts and deletes from within a node.
- \li   context data - to allow the called back nodes to maintain their private information.
- \li   read request parameters - For two reasons:
- \li           To allow a node to determine the requested data offset, length and target buffer dynamically. Again, this is to promote loose coupling.
- \li           Because of the callback nature of squid, every node would have to keep these parameters in their context anyway, so this reduces programmer overhead.
+ \li    callback method - likewise.
+ \li    status method - likewise.
+ \li    detach method - used to ensure all resources are cleaned up properly.
+ \li    dlink head pointer - to allow list inserts and deletes from within a node.
+ \li    context data - to allow the called back nodes to maintain their private information.
+ \li    read request parameters - For two reasons:
+ \li        To allow a node to determine the requested data offset, length and target buffer dynamically. Again, this is to promote loose coupling.
+ \li        Because of the callback nature of squid, every node would have to keep these parameters in their context anyway, so this reduces programmer overhead.
  */
 
 /// \ingroup ClientStreamAPI
@@ -82,13 +82,13 @@ public:
     clientStreamNode *next() const;
     void removeFromStream();
     dlink_node node;
-    dlink_list *head;          /* sucks I know, but hey, the interface is limited */
+    dlink_list *head;       /* sucks I know, but hey, the interface is limited */
     CSR *readfunc;
     CSCB *callback;
-    CSD *detach;               /* tell this node the next one downstream wants no more data */
+    CSD *detach;        /* tell this node the next one downstream wants no more data */
     CSS *status;
-    ClientStreamData data;                     /* Context for the node */
-    StoreIOBuffer readBuffer;  /* what, where and how much this node wants */
+    ClientStreamData data;          /* Context for the node */
+    StoreIOBuffer readBuffer;   /* what, where and how much this node wants */
 };
 
 /// \ingroup ClientStreamAPI
@@ -107,11 +107,11 @@ clientStreamNode *clientStreamNew(CSR *, CSCB *, CSD *, CSS *, ClientStreamData)
  * Return data to the next node in the stream.
  * The data may be returned immediately, or may be delayed for a later scheduling cycle.
  *
- \param thisObject     'this' reference for the client stream
- \param http           Superset of request data, being winnowed down over time. MUST NOT be NULL.
- \param rep            Not NULL on the first call back only. Ownership is passed down the pipeline.
-                       Each node may alter the reply if appropriate.
- \param replyBuffer    - buffer, length - where and how much.
+ \param thisObject  'this' reference for the client stream
+ \param http        Superset of request data, being winnowed down over time. MUST NOT be NULL.
+ \param rep     Not NULL on the first call back only. Ownership is passed down the pipeline.
+            Each node may alter the reply if appropriate.
+ \param replyBuffer - buffer, length - where and how much.
  */
 void clientStreamCallback(clientStreamNode *thisObject, ClientHttpRequest *http, HttpReply *rep, StoreIOBuffer replyBuffer);
 
@@ -122,9 +122,9 @@ void clientStreamCallback(clientStreamNode *thisObject, ClientHttpRequest *http,
  * metainformation and (if appropriate) the offset,length and buffer
  * parameters.
  *
- \param thisObject     'this' reference for the client stream
- \param http           Superset of request data, being winnowed down over time. MUST NOT be NULL.
- \param readBuffer     - offset, length, buffer - what, how much and where.
+ \param thisObject  'this' reference for the client stream
+ \param http        Superset of request data, being winnowed down over time. MUST NOT be NULL.
+ \param readBuffer  - offset, length, buffer - what, how much and where.
  */
 void clientStreamRead(clientStreamNode *thisObject, ClientHttpRequest *http, StoreIOBuffer readBuffer);
 
@@ -135,8 +135,8 @@ void clientStreamRead(clientStreamNode *thisObject, ClientHttpRequest *http, Sto
  * This node MUST have cleaned up all context data, UNLESS scheduled callbacks will take care of that.
  * Informs the prev node in the list of this nodes detachment.
  *
- \param thisObject     'this' reference for the client stream
- \param http           MUST NOT be NULL.
+ \param thisObject  'this' reference for the client stream
+ \param http        MUST NOT be NULL.
  */
 void clientStreamDetach(clientStreamNode *thisObject, ClientHttpRequest *http);
 
@@ -146,8 +146,8 @@ void clientStreamDetach(clientStreamNode *thisObject, ClientHttpRequest *http);
  * Detachs the tail of the stream. CURRENTLY DOES NOT clean up the tail node data -
  * this must be done separately. Thus Abort may ONLY be called by the tail node.
  *
- \param thisObject     'this' reference for the client stream
- \param http           MUST NOT be NULL.
+ \param thisObject  'this' reference for the client stream
+ \param http        MUST NOT be NULL.
  */
 void clientStreamAbort(clientStreamNode *thisObject, ClientHttpRequest *http);
 
@@ -155,14 +155,15 @@ void clientStreamAbort(clientStreamNode *thisObject, ClientHttpRequest *http);
  \ingroup ClientStreamAPI
  *
  * Allows nodes to query the upstream nodes for :
- \li   stream ABORTS - request cancelled for some reason. upstream will not accept further reads().
- \li   stream COMPLETION - upstream has completed and will not accept further reads().
- \li   stream UNPLANNED COMPLETION - upstream has completed, but not at a pre-planned location (used for keepalive checking), and will not accept further reads().
- \li   stream NONE - no special status, further reads permitted.
+ \li    stream ABORTS - request cancelled for some reason. upstream will not accept further reads().
+ \li    stream COMPLETION - upstream has completed and will not accept further reads().
+ \li    stream UNPLANNED COMPLETION - upstream has completed, but not at a pre-planned location (used for keepalive checking), and will not accept further reads().
+ \li    stream NONE - no special status, further reads permitted.
  *
- \param thisObject     'this' reference for the client stream
- \param http           MUST NOT be NULL.
+ \param thisObject  'this' reference for the client stream
+ \param http        MUST NOT be NULL.
  */
 clientStream_status_t clientStreamStatus(clientStreamNode *thisObject, ClientHttpRequest *http);
 
 #endif /* SQUID_CLIENTSTREAM_H */
+
index f449fab8ca4934cee3f05a8f7488c77d49732d0c..59c14fd85d7372f64f9aa6bd970027f0479b23dd 100644 (file)
@@ -35,3 +35,4 @@ typedef void CSD(clientStreamNode *, ClientHttpRequest *);
 typedef clientStream_status_t CSS(clientStreamNode *, ClientHttpRequest *);
 
 #endif /* SQUID_CLIENTSTREAM_FORWARD_H */
+
index a5aa55daf0bf28165810445bf1f970d2ca46db95..61bbc16415d67fc6aa758c47c28ddc0036a3ecd5 100644 (file)
@@ -572,3 +572,4 @@ snmp_meshCtblFn(variable_list * Var, snint * ErrP)
 }
 
 #endif /*SQUID_SNMP */
+
index 4bb5a607d67b73457632e31fa32f4b079c3dbff9..52e6a50514f4e3108c66491dfcf566c94dbe4998 100644 (file)
@@ -40,3 +40,4 @@ Ip::Address *client_entry(Ip::Address *current);
 #endif
 
 #endif /* SQUID_CLIENT_DB_H_ */
+
index 298828d42a8cd3a76f739268aad33c798f3e71ba..03139fc366911291bbd8410723bdd497bebd2031 100644 (file)
@@ -150,11 +150,11 @@ class ListeningStartedDialer: public CallDialer, public Ipc::StartListeningCb
 public:
     typedef void (*Handler)(AnyP::PortCfgPointer &portCfg, const Ipc::FdNoteId note, const Subscription::Pointer &sub);
     ListeningStartedDialer(Handler aHandler, AnyP::PortCfgPointer &aPortCfg, const Ipc::FdNoteId note, const Subscription::Pointer &aSub):
-            handler(aHandler), portCfg(aPortCfg), portTypeNote(note), sub(aSub) {}
+        handler(aHandler), portCfg(aPortCfg), portTypeNote(note), sub(aSub) {}
 
     virtual void print(std::ostream &os) const {
         startPrint(os) <<
-        ", " << FdNote(portTypeNote) << " port=" << (void*)&portCfg << ')';
+                       ", " << FdNote(portTypeNote) << " port=" << (void*)&portCfg << ')';
     }
 
     virtual bool canDial(AsyncCall &) const { return true; }
@@ -316,13 +316,13 @@ ClientSocketContext::connIsFinished()
 }
 
 ClientSocketContext::ClientSocketContext(const Comm::ConnectionPointer &aConn, ClientHttpRequest *aReq) :
-        clientConnection(aConn),
-        http(aReq),
-        reply(NULL),
-        next(NULL),
-        writtenToSocket(0),
-        mayUseConnection_ (false),
-        connRegistered_ (false)
+    clientConnection(aConn),
+    http(aReq),
+    reply(NULL),
+    next(NULL),
+    writtenToSocket(0),
+    mayUseConnection_ (false),
+    connRegistered_ (false)
 {
     assert(http != NULL);
     memset (reqbuf, '\0', sizeof (reqbuf));
@@ -817,7 +817,7 @@ ConnStateData::swanSong()
 {
     debugs(33, 2, HERE << clientConnection);
     flags.readMore = false;
-    clientdbEstablished(clientConnection->remote, -1); /* decrement */
+    clientdbEstablished(clientConnection->remote, -1);  /* decrement */
     assert(areAllContextsForThisConnection());
     freeAllContexts();
 
@@ -903,7 +903,7 @@ clientIsRequestBodyTooLargeForPolicy(int64_t bodyLength)
 {
     if (Config.maxRequestBodySize &&
             bodyLength > Config.maxRequestBodySize)
-        return 1;              /* too large */
+        return 1;       /* too large */
 
     return 0;
 }
@@ -1113,9 +1113,9 @@ ClientSocketContext::packRange(StoreIOBuffer const &source, MemBuf * mb)
             if (http->multipartRangeRequest() && i->debt() == i->currentSpec()->length) {
                 assert(http->memObject());
                 clientPackRangeHdr(
-                    http->memObject()->getReply(),     /* original reply */
-                    i->currentSpec(),          /* current range */
-                    i->boundary,       /* boundary, the same for all */
+                    http->memObject()->getReply(),  /* original reply */
+                    i->currentSpec(),       /* current range */
+                    i->boundary,    /* boundary, the same for all */
                     mb);
             }
 
@@ -1229,11 +1229,11 @@ clientIfRangeMatch(ClientHttpRequest * http, HttpReply * rep)
                (rep_tag.str ? rep_tag.str : "<none>"));
 
         if (!rep_tag.str)
-            return 0;          /* entity has no etag to compare with! */
+            return 0;       /* entity has no etag to compare with! */
 
         if (spec.tag.weak || rep_tag.weak) {
             debugs(33, DBG_IMPORTANT, "clientIfRangeMatch: Weak ETags are not allowed in If-Range: " << spec.tag.str << " ? " << rep_tag.str);
-            return 0;          /* must use strong validator for sub-range requests */
+            return 0;       /* must use strong validator for sub-range requests */
         }
 
         return etagIsStrongEqual(rep_tag, spec.tag);
@@ -1244,7 +1244,7 @@ clientIfRangeMatch(ClientHttpRequest * http, HttpReply * rep)
         return http->storeEntry()->lastmod <= spec.time;
     }
 
-    assert(0);                 /* should not happen */
+    assert(0);          /* should not happen */
     return 0;
 }
 
@@ -1283,7 +1283,7 @@ ClientSocketContext::buildRangeHeader(HttpReply * rep)
     else if (rep->content_length < 0)
         range_err = "unknown length";
     else if (rep->content_length != http->memObject()->getReply()->content_length)
-        range_err = "INCONSISTENT length";     /* a bug? */
+        range_err = "INCONSISTENT length";  /* a bug? */
 
     /* hits only - upstream CachePeer determines correct behaviour on misses, and client_side_reply determines
      * hits candidates
@@ -1678,7 +1678,7 @@ ClientSocketContext::getNextRangeOffset() const
         /* filter out data according to range specs */
         assert (canPackMoreRanges());
         {
-            int64_t start;             /* offset of still missing data */
+            int64_t start;      /* offset of still missing data */
             assert(http->range_iter.currentSpec());
             start = http->range_iter.currentSpec()->offset + http->range_iter.currentSpec()->length - http->range_iter.debt();
             debugs(33, 3, "clientPackMoreRanges: in:  offset: " << http->out.offset);
@@ -1690,7 +1690,7 @@ ClientSocketContext::getNextRangeOffset() const
                    " len: " << http->range_iter.currentSpec()->length <<
                    " debt: " << http->range_iter.debt());
             if (http->range_iter.currentSpec()->length != -1)
-                assert(http->out.offset <= start);     /* we did not miss it */
+                assert(http->out.offset <= start);  /* we did not miss it */
 
             return start;
         }
@@ -2027,7 +2027,7 @@ prepareAcceleratedURL(ConnStateData * conn, ClientHttpRequest *http, const Http1
         // skip the authority segment
         // RFC 3986 complex nested ABNF for "authority" boils down to this:
         static const CharacterSet authority = CharacterSet("authority","-._~%:@[]!$&'()*+,;=") +
-             CharacterSet::HEXDIG + CharacterSet::ALPHA + CharacterSet::DIGIT;
+                                              CharacterSet::HEXDIG + CharacterSet::ALPHA + CharacterSet::DIGIT;
         if (!tok.skipAll(authority))
             break;
 
@@ -2080,7 +2080,7 @@ prepareAcceleratedURL(ConnStateData * conn, ClientHttpRequest *http, const Http1
     } else if (conn->port->defaultsite /* && !vhost */) {
         debugs(33, 5, "ACCEL DEFAULTSITE REWRITE: defaultsite=" << conn->port->defaultsite << " + vport=" << vport);
         const int url_sz = hp->requestUri().length() + 32 + Config.appendDomainLen +
-                     strlen(conn->port->defaultsite);
+                           strlen(conn->port->defaultsite);
         http->uri = (char *)xcalloc(url_sz, 1);
         char vportStr[32];
         vportStr[0] = '\0';
@@ -2114,10 +2114,10 @@ prepareTransparentURL(ConnStateData * conn, ClientHttpRequest *http, const Http1
 
     if (const char *host = hp->getHeaderField("Host")) {
         const int url_sz = hp->requestUri().length() + 32 + Config.appendDomainLen +
-                     strlen(host);
+                           strlen(host);
         http->uri = (char *)xcalloc(url_sz, 1);
         snprintf(http->uri, url_sz, "%s://%s" SQUIDSBUFPH,
-             AnyP::UriScheme(conn->transferProtocol.protocol).c_str(), host, SQUIDSBUFPRINT(hp->requestUri()));
+                 AnyP::UriScheme(conn->transferProtocol.protocol).c_str(), host, SQUIDSBUFPRINT(hp->requestUri()));
         debugs(33, 5, "TRANSPARENT HOST REWRITE: " << http->uri);
     } else {
         /* Put the local socket IP address as the hostname.  */
@@ -3095,7 +3095,7 @@ ConnStateData::clientReadRequest(const CommIoCbParams &io)
         /* Continue to process previously read data */
         break;
 
-        // case Comm::COMM_ERROR:
+    // case Comm::COMM_ERROR:
     default: // no other flags should ever occur
         debugs(33, 2, io.conn << ": got flag " << rd.flag << "; " << xstrerr(rd.xerrno));
         notifyAllContexts(rd.xerrno);
@@ -3312,19 +3312,19 @@ clientLifetimeTimeout(const CommTimeoutCbParams &io)
 }
 
 ConnStateData::ConnStateData(const MasterXaction::Pointer &xact) :
-        AsyncJob("ConnStateData"), // kids overwrite
-        nrequests(0),
+    AsyncJob("ConnStateData"), // kids overwrite
+    nrequests(0),
 #if USE_OPENSSL
-        sslBumpMode(Ssl::bumpEnd),
+    sslBumpMode(Ssl::bumpEnd),
 #endif
-        needProxyProtocolHeader_(false),
+    needProxyProtocolHeader_(false),
 #if USE_OPENSSL
-        switchedToHttps_(false),
-        sslServerBump(NULL),
-        signAlgorithm(Ssl::algSignTrusted),
+    switchedToHttps_(false),
+    sslServerBump(NULL),
+    signAlgorithm(Ssl::algSignTrusted),
 #endif
-        stoppedSending_(NULL),
-        stoppedReceiving_(NULL)
+    stoppedSending_(NULL),
+    stoppedReceiving_(NULL)
 {
     flags.readMore = true; // kids may overwrite
     flags.swanSang = false;
@@ -4376,7 +4376,7 @@ clientHttpsConnectionsOpen(void)
 
         AsyncCall::Pointer listenCall = asyncCall(33, 2, "clientListenerConnectionOpened",
                                         ListeningStartedDialer(&clientListenerConnectionOpened,
-                                                               s, Ipc::fdnHttpsSocket, sub));
+                                                s, Ipc::fdnHttpsSocket, sub));
         Ipc::StartListening(SOCK_STREAM, IPPROTO_TCP, s->listenConn, Ipc::fdnHttpsSocket, listenCall);
         HttpSockets[NHttpSockets] = -1;
         ++NHttpSockets;
@@ -4669,8 +4669,8 @@ ConnStateData::finishDechunkingRequest(bool withSuccess)
 }
 
 ConnStateData::In::In() :
-        bodyParser(NULL),
-        buf()
+    bodyParser(NULL),
+    buf()
 {}
 
 ConnStateData::In::~In()
@@ -4880,3 +4880,4 @@ ConnStateData::unpinConnection(const bool andClose)
     /* NOTE: pinning.pinned should be kept. This combined with fd == -1 at the end of a request indicates that the host
      * connection has gone away */
 }
+
index 590d8dec18b61cfae1c0e6171e69e1cac594fe80..8cff942c5cfd4bccfda8e3065f405e8f07f6e490 100644 (file)
@@ -78,7 +78,7 @@ public:
     void keepaliveNextRequest();
 
     Comm::ConnectionPointer clientConnection; /// details about the client connection socket.
-    ClientHttpRequest *http;   /* we pretend to own that job */
+    ClientHttpRequest *http;    /* we pretend to own that job */
     HttpReply *reply;
     char reqbuf[HTTP_REQBUF_SZ];
     Pointer next;
@@ -504,3 +504,4 @@ void clientProcessRequest(ConnStateData *, const Http1::RequestParserPointer &,
 void clientPostHttpsAccept(ConnStateData *);
 
 #endif /* SQUID_CLIENTSIDE_H */
+
index c81b4d5bde2b7927f6dc4b1953ec9fd9ac8c8e87..c18e01399c3a591218d953f16707293a91072a2b 100644 (file)
@@ -1194,7 +1194,7 @@ clientReplyContext::replyStatus()
 
     if (http->storeEntry() == NULL) {
         debugs(88, 5, "clientReplyStatus: no storeEntry");
-        return STREAM_FAILED;  /* yuck, but what can we do? */
+        return STREAM_FAILED;   /* yuck, but what can we do? */
     }
 
     if (EBIT_TEST(http->storeEntry()->flags, ENTRY_ABORTED)) {
@@ -2252,3 +2252,4 @@ clientBuildError(err_type page_id, Http::StatusCode status, char const *url,
 
     return err;
 }
+
index b1c7d80720bce79dd2ff847de0e356c681668edd..ccec85d6df767f30252a141c46456399bcb0cc97 100644 (file)
@@ -78,25 +78,25 @@ public:
 
     ClientHttpRequest *http;
     int headers_sz;
-    store_client *sc;          /* The store_client we're using */
-    StoreIOBuffer tempBuffer;  /* For use in validating requests via IMS */
-    int old_reqsize;           /* ... again, for the buffer */
+    store_client *sc;       /* The store_client we're using */
+    StoreIOBuffer tempBuffer;   /* For use in validating requests via IMS */
+    int old_reqsize;        /* ... again, for the buffer */
     size_t reqsize;
     size_t reqofs;
-    char tempbuf[HTTP_REQBUF_SZ];      /* a temporary buffer if we need working storage */
+    char tempbuf[HTTP_REQBUF_SZ];   /* a temporary buffer if we need working storage */
 #if USE_CACHE_DIGESTS
 
-    const char *lookup_type;   /* temporary hack: storeGet() result: HIT/MISS/NONE */
+    const char *lookup_type;    /* temporary hack: storeGet() result: HIT/MISS/NONE */
 #endif
 
     struct {
 
         unsigned storelogiccomplete:1;
 
-        unsigned complete:1;           /* we have read all we can from upstream */
+        unsigned complete:1;        /* we have read all we can from upstream */
         bool headersSent;
     } flags;
-    clientStreamNode *ourNode; /* This will go away if/when this file gets refactored some more */
+    clientStreamNode *ourNode;  /* This will go away if/when this file gets refactored some more */
 
 private:
     clientStreamNode *getNextNode() const;
@@ -131,8 +131,9 @@ private:
     void sendNotModifiedOrPreconditionFailedError();
 
     StoreEntry *old_entry;
-    store_client *old_sc;      /* ... for entry to be validated */
+    store_client *old_sc;   /* ... for entry to be validated */
     bool deleting;
 };
 
 #endif /* SQUID_CLIENTSIDEREPLY_H */
+
index ff136c0ce995b900c742244a709401a7445e8d3e..999e2db20f18c57e882afb6c67cafa0d97cec671 100644 (file)
@@ -133,9 +133,9 @@ CBDATA_CLASS_INIT(ClientHttpRequest);
 
 ClientHttpRequest::ClientHttpRequest(ConnStateData * aConn) :
 #if USE_ADAPTATION
-        AsyncJob("ClientHttpRequest"),
+    AsyncJob("ClientHttpRequest"),
 #endif
-        loggingEntry_(NULL)
+    loggingEntry_(NULL)
 {
     setConn(aConn);
     al = new AccessLogEntry;
@@ -237,7 +237,7 @@ checkFailureRatio(err_type etype, hier_code hcode)
 
     hit_only_mode_until = squid_curtime + FAILURE_MODE_TIME;
 
-    request_failure_ratio = 0.8;       /* reset to something less than 1.0 */
+    request_failure_ratio = 0.8;    /* reset to something less than 1.0 */
 }
 
 ClientHttpRequest::~ClientHttpRequest()
@@ -363,7 +363,7 @@ clientBeginRequest(const HttpRequestMethod& method, char const *url, CSCB * stre
     request->indirect_client_addr.setNoAddr();
 #endif /* FOLLOW_X_FORWARDED_FOR */
 
-    request->my_addr.setNoAddr();      /* undefined for internal requests */
+    request->my_addr.setNoAddr();   /* undefined for internal requests */
 
     request->my_addr.port(0);
 
@@ -1345,7 +1345,7 @@ ClientRequestContext::clientStoreIdDone(const Helper::Reply &reply)
         break;
 
     case Helper::TimedOut:
-        // Timeouts for storeID are not implemented
+    // Timeouts for storeID are not implemented
     case Helper::BrokenHelper:
         debugs(85, DBG_IMPORTANT, "ERROR: storeID helper: " << reply);
         break;
@@ -1571,7 +1571,7 @@ ClientHttpRequest::sslBumpStart()
     getConn()->sslBumpMode = sslBumpNeed_;
 
     AsyncCall::Pointer bumpCall = commCbCall(85, 5, "ClientSocketContext::sslBumpEstablish",
-                                         CommIoCbPtrFun(&SslBumpEstablish, this));
+                                  CommIoCbPtrFun(&SslBumpEstablish, this));
 
     if (request->flags.interceptTproxy || request->flags.intercepted) {
         CommIoCbParams &params = GetCommParams<CommIoCbParams>(bumpCall);
@@ -1856,7 +1856,7 @@ ClientHttpRequest::startAdaptation(const Adaptation::ServiceGroupPointer &g)
 void
 ClientHttpRequest::noteAdaptationAnswer(const Adaptation::Answer &answer)
 {
-    assert(cbdataReferenceValid(this));                // indicates bug
+    assert(cbdataReferenceValid(this));     // indicates bug
     clearAdaptation(virginHeadSource);
     assert(!adaptedBodySource);
 
index 70c5c9fdfabb933d383a47f130a0c91d06537cda..468766ca4758b67f5a7fe933c6ece928469ddf9e 100644 (file)
@@ -50,3 +50,4 @@ ClientHttpRequest::loggingEntry() const
 {
     return loggingEntry_;
 }
+
index 0b621fd28ceb633b4f5561fae76d1295fb7dc792..80a8523961c5f7c58fe9c7b0d8d119e2f829e94c 100644 (file)
@@ -31,8 +31,8 @@ int clientBeginRequest(const HttpRequestMethod&, char const *, CSCB *, CSD *, Cl
 
 class ClientHttpRequest
 #if USE_ADAPTATION
-        : public Adaptation::Initiator, // to start adaptation transactions
-        public BodyConsumer     // to receive reply bodies in request satisf. mode
+    : public Adaptation::Initiator, // to start adaptation transactions
+      public BodyConsumer     // to receive reply bodies in request satisf. mode
 #endif
 {
     CBDATA_CLASS(ClientHttpRequest);
@@ -67,7 +67,7 @@ public:
      */
     Comm::ConnectionPointer clientConnection;
 
-    HttpRequest *request;              /* Parsed URL ... */
+    HttpRequest *request;       /* Parsed URL ... */
     char *uri;
     char *log_uri;
     String store_id; /* StoreID for transactions where the request member is nil */
@@ -78,8 +78,8 @@ public:
         size_t headers_sz;
     } out;
 
-    HttpHdrRangeIter range_iter;       /* data for iterating thru range specs */
-    size_t req_sz;             /* raw request size on input, not current request size */
+    HttpHdrRangeIter range_iter;    /* data for iterating thru range specs */
+    size_t req_sz;      /* raw request size on input, not current request size */
 
     /// the processing tags associated with this request transaction.
     // NP: still an enum so each stage altering it must take care when replacing it.
@@ -146,7 +146,7 @@ public:
     void startAdaptation(const Adaptation::ServiceGroupPointer &g);
 
 private:
-    /// Handles an adaptation client request failure. 
+    /// Handles an adaptation client request failure.
     /// Bypasses the error if possible, or build an error reply.
     void handleAdaptationFailure(int errDetail, bool bypassable = false);
 
@@ -190,3 +190,4 @@ void tunnelStart(ClientHttpRequest *, int64_t *, int *, const AccessLogEntry::Po
 #endif
 
 #endif /* SQUID_CLIENTSIDEREQUEST_H */
+
index d09833ca28cd0826e788c98f84e6269b36e71186..85faaef5bcb1a8d354d7e477866c0be6bfb7ce69 100644 (file)
 void purgeEntriesByUrl(HttpRequest * req, const char *url);
 
 Client::Client(FwdState *theFwdState): AsyncJob("Client"),
-        completed(false),
-        currentOffset(0),
-        responseBodyBuffer(NULL),
-        fwd(theFwdState),
-        requestSender(NULL),
+    completed(false),
+    currentOffset(0),
+    responseBodyBuffer(NULL),
+    fwd(theFwdState),
+    requestSender(NULL),
 #if USE_ADAPTATION
-        adaptedHeadSource(NULL),
-        adaptationAccessCheckPending(false),
-        startedAdaptation(false),
+    adaptedHeadSource(NULL),
+    adaptationAccessCheckPending(false),
+    startedAdaptation(false),
 #endif
-        receivedWholeRequestBody(false),
-        theVirginReply(NULL),
-        theFinalReply(NULL)
+    receivedWholeRequestBody(false),
+    theVirginReply(NULL),
+    theFinalReply(NULL)
 {
     entry = fwd->entry;
     entry->lock("Client");
@@ -974,7 +974,7 @@ Client::storeReplyBody(const char *data, ssize_t len)
 }
 
 size_t Client::replyBodySpace(const MemBuf &readBuf,
-                                       const size_t minSpace) const
+                              const size_t minSpace) const
 {
     size_t space = readBuf.spaceSize(); // available space w/o heroic measures
     if (space < minSpace) {
@@ -984,7 +984,7 @@ size_t Client::replyBodySpace(const MemBuf &readBuf,
 
 #if USE_ADAPTATION
     if (responseBodyBuffer) {
-        return 0;      // Stop reading if already overflowed waiting for ICAP to catch up
+        return 0;   // Stop reading if already overflowed waiting for ICAP to catch up
     }
 
     if (virginBodyDestination != NULL) {
@@ -1013,3 +1013,4 @@ size_t Client::replyBodySpace(const MemBuf &readBuf,
 
     return space;
 }
+
index 40c508e9b7a267b96e9ef3d55446702c17a4c0ff..edf52143e077a231bf90f8d66591b4b4b3b77d37 100644 (file)
@@ -30,10 +30,10 @@ class HttpReply;
  */
 class Client:
 #if USE_ADAPTATION
-        public Adaptation::Initiator,
-        public BodyProducer,
+    public Adaptation::Initiator,
+    public BodyProducer,
 #endif
-        public BodyConsumer
+    public BodyConsumer
 {
 
 public:
@@ -148,8 +148,8 @@ protected:
     void adjustBodyBytesRead(const int64_t delta);
 
     // These should be private
-    int64_t currentOffset;     /**< Our current offset in the StoreEntry */
-    MemBuf *responseBodyBuffer;        /**< Data temporarily buffered for ICAP */
+    int64_t currentOffset;  /**< Our current offset in the StoreEntry */
+    MemBuf *responseBodyBuffer; /**< Data temporarily buffered for ICAP */
 
 public: // should not be
     StoreEntry *entry;
@@ -179,3 +179,4 @@ private:
 };
 
 #endif /* SQUID_SRC_CLIENTS_CLIENT_H */
+
index 75e8372f737fce2292eb201d2acdbceb94afd7f7..4d812541b32901a1f92a7a54b94df4f1efad7919 100644 (file)
@@ -113,13 +113,13 @@ Ftp::Channel::clear()
 /* Ftp::CtrlChannel */
 
 Ftp::CtrlChannel::CtrlChannel():
-        buf(NULL),
-        size(0),
-        offset(0),
-        message(NULL),
-        last_command(NULL),
-        last_reply(NULL),
-        replycode(0)
+    buf(NULL),
+    size(0),
+    offset(0),
+    message(NULL),
+    last_command(NULL),
+    last_reply(NULL),
+    replycode(0)
 {
     buf = static_cast<char*>(memAllocBuf(4096, &size));
 }
@@ -136,10 +136,10 @@ Ftp::CtrlChannel::~CtrlChannel()
 /* Ftp::DataChannel */
 
 Ftp::DataChannel::DataChannel():
-        readBuf(NULL),
-        host(NULL),
-        port(0),
-        read_pending(false)
+    readBuf(NULL),
+    host(NULL),
+    port(0),
+    read_pending(false)
 {
 }
 
@@ -161,14 +161,14 @@ Ftp::DataChannel::addr(const Ip::Address &import)
 /* Ftp::Client */
 
 Ftp::Client::Client(FwdState *fwdState):
-        AsyncJob("Ftp::Client"),
-        ::Client(fwdState),
-        ctrl(),
-        data(),
-        state(BEGIN),
-        old_request(NULL),
-        old_reply(NULL),
-        shortenReadTimeout(false)
+    AsyncJob("Ftp::Client"),
+    ::Client(fwdState),
+     ctrl(),
+     data(),
+     state(BEGIN),
+     old_request(NULL),
+     old_reply(NULL),
+     shortenReadTimeout(false)
 {
     ++statCounter.server.all.requests;
     ++statCounter.server.ftp.requests;
@@ -651,7 +651,7 @@ Ftp::Client::sendPassive()
             state = SENT_EPSV_2;
             break;
         }
-        // else fall through to skip EPSV 2
+    // else fall through to skip EPSV 2
 
     case SENT_EPSV_2: /* EPSV IPv6 failed. Try EPSV IPv4 */
         if (ctrl.conn->local.isIPv4()) {
@@ -664,7 +664,7 @@ Ftp::Client::sendPassive()
             failed(ERR_FTP_FAILURE, 0);
             return false;
         }
-        // else fall through to skip EPSV 1
+    // else fall through to skip EPSV 1
 
     case SENT_EPSV_1: /* EPSV options exhausted. Try PASV now. */
         debugs(9, 5, "FTP Channel (" << ctrl.conn->remote << ") rejects EPSV connection attempts. Trying PASV instead.");
@@ -1128,3 +1128,4 @@ Ftp::Client::parseControlReply(size_t &bytesUsed)
 }
 
 }; // namespace Ftp
+
index 453cc5d07f4d96ee5c70310e23ecdf43b19d30be..944e1461e4429176f9812793b7df8d8d00443b74 100644 (file)
@@ -196,3 +196,4 @@ private:
 } // namespace Ftp
 
 #endif /* SQUID_FTP_CLIENT_H */
+
index c91ae56e0a1d64035588117976ffd7f7cd04f8c0..266c69143a0d4d61d0a65e90ebd0b7e0a3427157 100644 (file)
@@ -118,7 +118,7 @@ public:
     String cwd_message;
     char *old_filepath;
     char typecode;
-    MemBuf listing;            ///< FTP directory listing in HTML format.
+    MemBuf listing;     ///< FTP directory listing in HTML format.
 
     GatewayFlags flags;
 
@@ -243,73 +243,73 @@ static FTPSM ftpReadQuit;
 /************************************************
 ** Debugs Levels used here                     **
 *************************************************
-0      CRITICAL Events
-1      IMPORTANT Events
-       Protocol and Transmission failures.
-2      FTP Protocol Chatter
-3      Logic Flows
-4      Data Parsing Flows
-5      Data Dumps
-7      ??
+0   CRITICAL Events
+1   IMPORTANT Events
+    Protocol and Transmission failures.
+2   FTP Protocol Chatter
+3   Logic Flows
+4   Data Parsing Flows
+5   Data Dumps
+7   ??
 ************************************************/
 
 /************************************************
 ** State Machine Description (excluding hacks) **
 *************************************************
-From                   To
+From            To
 ---------------------------------------
-Welcome                        User
-User                   Pass
-Pass                   Type
-Type                   TraverseDirectory / GetFile
-TraverseDirectory      Cwd / GetFile / ListDir
-Cwd                    TraverseDirectory / Mkdir
-GetFile                        Mdtm
-Mdtm                   Size
-Size                   Epsv
-ListDir                        Epsv
-Epsv                   FileOrList
-FileOrList             Rest / Retr / Nlst / List / Mkdir (PUT /xxx;type=d)
-Rest                   Retr
-Retr / Nlst / List     DataRead* (on datachannel)
-DataRead*              ReadTransferDone
-ReadTransferDone       DataTransferDone
-Stor                   DataWrite* (on datachannel)
-DataWrite*             RequestPutBody** (from client)
-RequestPutBody**       DataWrite* / WriteTransferDone
-WriteTransferDone      DataTransferDone
-DataTransferDone       Quit
-Quit                   -
+Welcome         User
+User            Pass
+Pass            Type
+Type            TraverseDirectory / GetFile
+TraverseDirectory   Cwd / GetFile / ListDir
+Cwd         TraverseDirectory / Mkdir
+GetFile         Mdtm
+Mdtm            Size
+Size            Epsv
+ListDir         Epsv
+Epsv            FileOrList
+FileOrList      Rest / Retr / Nlst / List / Mkdir (PUT /xxx;type=d)
+Rest            Retr
+Retr / Nlst / List  DataRead* (on datachannel)
+DataRead*       ReadTransferDone
+ReadTransferDone    DataTransferDone
+Stor            DataWrite* (on datachannel)
+DataWrite*      RequestPutBody** (from client)
+RequestPutBody**    DataWrite* / WriteTransferDone
+WriteTransferDone   DataTransferDone
+DataTransferDone    Quit
+Quit            -
 ************************************************/
 
 FTPSM *FTP_SM_FUNCS[] = {
-    ftpReadWelcome,            /* BEGIN */
-    ftpReadUser,               /* SENT_USER */
-    ftpReadPass,               /* SENT_PASS */
-    ftpReadType,               /* SENT_TYPE */
-    ftpReadMdtm,               /* SENT_MDTM */
-    ftpReadSize,               /* SENT_SIZE */
-    ftpReadEPRT,               /* SENT_EPRT */
-    ftpReadPORT,               /* SENT_PORT */
-    ftpReadEPSV,               /* SENT_EPSV_ALL */
-    ftpReadEPSV,               /* SENT_EPSV_1 */
-    ftpReadEPSV,               /* SENT_EPSV_2 */
-    ftpReadPasv,               /* SENT_PASV */
-    ftpReadCwd,                /* SENT_CWD */
-    ftpReadList,               /* SENT_LIST */
-    ftpReadList,               /* SENT_NLST */
-    ftpReadRest,               /* SENT_REST */
-    ftpReadRetr,               /* SENT_RETR */
-    ftpReadStor,               /* SENT_STOR */
-    ftpReadQuit,               /* SENT_QUIT */
-    ftpReadTransferDone,       /* READING_DATA (RETR,LIST,NLST) */
-    ftpWriteTransferDone,      /* WRITING_DATA (STOR) */
-    ftpReadMkdir,              /* SENT_MKDIR */
-    NULL,                      /* SENT_FEAT */
-    NULL,                      /* SENT_PWD */
-    NULL,                      /* SENT_CDUP*/
-    NULL,                      /* SENT_DATA_REQUEST */
-    NULL                       /* SENT_COMMAND */
+    ftpReadWelcome,     /* BEGIN */
+    ftpReadUser,        /* SENT_USER */
+    ftpReadPass,        /* SENT_PASS */
+    ftpReadType,        /* SENT_TYPE */
+    ftpReadMdtm,        /* SENT_MDTM */
+    ftpReadSize,        /* SENT_SIZE */
+    ftpReadEPRT,        /* SENT_EPRT */
+    ftpReadPORT,        /* SENT_PORT */
+    ftpReadEPSV,        /* SENT_EPSV_ALL */
+    ftpReadEPSV,        /* SENT_EPSV_1 */
+    ftpReadEPSV,        /* SENT_EPSV_2 */
+    ftpReadPasv,        /* SENT_PASV */
+    ftpReadCwd,     /* SENT_CWD */
+    ftpReadList,        /* SENT_LIST */
+    ftpReadList,        /* SENT_NLST */
+    ftpReadRest,        /* SENT_REST */
+    ftpReadRetr,        /* SENT_RETR */
+    ftpReadStor,        /* SENT_STOR */
+    ftpReadQuit,        /* SENT_QUIT */
+    ftpReadTransferDone,    /* READING_DATA (RETR,LIST,NLST) */
+    ftpWriteTransferDone,   /* WRITING_DATA (STOR) */
+    ftpReadMkdir,       /* SENT_MKDIR */
+    NULL,           /* SENT_FEAT */
+    NULL,           /* SENT_PWD */
+    NULL,           /* SENT_CDUP*/
+    NULL,           /* SENT_DATA_REQUEST */
+    NULL            /* SENT_COMMAND */
 };
 
 /// handler called by Comm when FTP data channel is closed unexpectedly
@@ -327,23 +327,23 @@ Ftp::Gateway::dataClosed(const CommCloseCbParams &io)
 }
 
 Ftp::Gateway::Gateway(FwdState *fwdState):
-        AsyncJob("FtpStateData"),
-        Ftp::Client(fwdState),
-        password_url(0),
-        reply_hdr(NULL),
-        reply_hdr_state(0),
-        conn_att(0),
-        login_att(0),
-        mdtm(-1),
-        theSize(-1),
-        pathcomps(NULL),
-        filepath(NULL),
-        dirpath(NULL),
-        restart_offset(0),
-        proxy_host(NULL),
-        list_width(0),
-        old_filepath(NULL),
-        typecode('\0')
+    AsyncJob("FtpStateData"),
+    Ftp::Client(fwdState),
+    password_url(0),
+    reply_hdr(NULL),
+    reply_hdr_state(0),
+    conn_att(0),
+    login_att(0),
+    mdtm(-1),
+    theSize(-1),
+    pathcomps(NULL),
+    filepath(NULL),
+    dirpath(NULL),
+    restart_offset(0),
+    proxy_host(NULL),
+    list_width(0),
+    old_filepath(NULL),
+    typecode('\0')
 {
     debugs(9, 3, entry->url());
 
@@ -589,7 +589,7 @@ ftpListParseParts(const char *buf, struct Ftp::GatewayFlags flags)
         if (regexec(&scan_ftp_integer, day, 0, NULL, 0) != 0)
             continue;
 
-        if (regexec(&scan_ftp_time, year, 0, NULL, 0) != 0)    /* Yr | hh:mm */
+        if (regexec(&scan_ftp_time, year, 0, NULL, 0) != 0) /* Yr | hh:mm */
             continue;
 
         snprintf(tbuf, 128, "%s %2s %5s",
@@ -696,7 +696,7 @@ ftpListParseParts(const char *buf, struct Ftp::GatewayFlags flags)
                 tm = (time_t) strtol(ct + 1, &tmp, 0);
 
                 if (tmp != ct + 1)
-                    break;     /* not a valid integer */
+                    break;  /* not a valid integer */
 
                 p->date = xstrdup(ctime(&tm));
 
@@ -745,7 +745,7 @@ found:
         xfree(tokens[i]);
 
     if (!p->name)
-        ftpListPartsFree(&p);  /* cleanup */
+        ftpListPartsFree(&p);   /* cleanup */
 
     return p;
 }
@@ -814,7 +814,7 @@ Ftp::Gateway::htmlifyListEntry(const char *line)
         snprintf(icon, 2048, "<img border=\"0\" src=\"%s\" alt=\"%-6s\">",
                  mimeGetIconURL("internal-dir"),
                  "[DIR]");
-        strcat(href, "/");     /* margin is allocated above */
+        strcat(href, "/");  /* margin is allocated above */
         break;
 
     case 'l':
@@ -891,7 +891,7 @@ void
 Ftp::Gateway::parseListing()
 {
     char *buf = data.readBuf->content();
-    char *sbuf;                        /* NULL-terminated copy of termedBuf */
+    char *sbuf;         /* NULL-terminated copy of termedBuf */
     char *end;
     char *line;
     char *s;
@@ -1034,8 +1034,8 @@ Ftp::Gateway::processReplyBody()
  * TODO: we might be able to do something about locating username from other sources:
  *       ie, external ACL user=* tag or ident lookup
  *
- \retval 1     if we have everything needed to complete this request.
- \retval 0     if something is missing.
+ \retval 1  if we have everything needed to complete this request.
+ \retval 0  if something is missing.
  */
 int
 Ftp::Gateway::checkAuth(const HttpHeader * req_hdr)
@@ -1078,7 +1078,7 @@ Ftp::Gateway::checkAuth(const HttpHeader * req_hdr)
         }
     }
 
-    return 0;                  /* different username */
+    return 0;           /* different username */
 }
 
 static String str_type_eq;
@@ -1104,7 +1104,7 @@ Ftp::Gateway::checkUrlpath()
     if (!l) {
         flags.isdir = 1;
         flags.root_dir = 1;
-        flags.need_base_href = 1;      /* Work around broken browsers */
+        flags.need_base_href = 1;   /* Work around broken browsers */
     } else if (!request->urlpath.cmp("/%2f/")) {
         /* UNIX root directory */
         flags.isdir = 1;
@@ -1583,9 +1583,9 @@ ftpReadMkdir(Ftp::Gateway * ftpState)
 
     debugs(9, 3, HERE << "path " << path << ", code " << code);
 
-    if (code == 257) {         /* success */
+    if (code == 257) {      /* success */
         ftpSendCwd(ftpState);
-    } else if (code == 550) {  /* dir exists */
+    } else if (code == 550) {   /* dir exists */
 
         if (ftpState->flags.put_mkdir) {
             ftpState->flags.put_mkdir = 1;
@@ -2029,9 +2029,9 @@ ftpRestOrList(Ftp::Gateway * ftpState)
         ftpState->flags.isdir = 1;
 
         if (ftpState->flags.put) {
-            ftpSendMkdir(ftpState);    /* PUT name;type=d */
+            ftpSendMkdir(ftpState); /* PUT name;type=d */
         } else {
-            ftpSendNlst(ftpState);     /* GET name;type=d  sec 3.2.2 of RFC 1738 */
+            ftpSendNlst(ftpState);  /* GET name;type=d  sec 3.2.2 of RFC 1738 */
         }
     } else if (ftpState->flags.put) {
         ftpSendStor(ftpState);
@@ -2311,7 +2311,7 @@ ftpReadTransferDone(Ftp::Gateway * ftpState)
             /* QUIT operation handles sending the reply to client */
         }
         ftpSendQuit(ftpState);
-    } else {                   /* != 226 */
+    } else {            /* != 226 */
         debugs(9, DBG_IMPORTANT, HERE << "Got code " << code << " after reading data");
         ftpState->failed(ERR_FTP_FAILURE, 0);
         /* failed closes ctrl.conn and frees ftpState */
@@ -2340,7 +2340,7 @@ ftpWriteTransferDone(Ftp::Gateway * ftpState)
         return;
     }
 
-    ftpState->entry->timestampsSet();  /* XXX Is this needed? */
+    ftpState->entry->timestampsSet();   /* XXX Is this needed? */
     ftpSendReply(ftpState);
 }
 
@@ -2438,10 +2438,10 @@ ftpFail(Ftp::Gateway *ftpState)
            "slashhack=" << (ftpState->request->urlpath.caseCmp("/%2f", 4)==0? "T":"F") );
 
     /* Try the / hack to support "Netscape" FTP URL's for retreiving files */
-    if (!ftpState->flags.isdir &&      /* Not a directory */
-            !ftpState->flags.try_slash_hack && /* Not in slash hack */
-            ftpState->mdtm <= 0 && ftpState->theSize < 0 &&    /* Not known as a file */
-            ftpState->request->urlpath.caseCmp("/%2f", 4) != 0) {      /* No slash encoded */
+    if (!ftpState->flags.isdir &&   /* Not a directory */
+            !ftpState->flags.try_slash_hack &&  /* Not in slash hack */
+            ftpState->mdtm <= 0 && ftpState->theSize < 0 && /* Not known as a file */
+            ftpState->request->urlpath.caseCmp("/%2f", 4) != 0) {   /* No slash encoded */
 
         switch (ftpState->state) {
 
@@ -2563,7 +2563,7 @@ Ftp::Gateway::appendSuccessHeader()
 
     EBIT_CLR(entry->flags, ENTRY_FWD_HDR_WAIT);
 
-    entry->buffer();   /* released when done processing current data payload */
+    entry->buffer();    /* released when done processing current data payload */
 
     filename = (t = urlpath.rpos('/')) ? t + 1 : urlpath.termedBuf();
 
@@ -2703,7 +2703,7 @@ Ftp::Gateway::writeReplyBody(const char *dataToWrite, size_t dataLength)
  * A hack to ensure we do not double-complete on the forward entry.
  *
  \todo Ftp::Gateway logic should probably be rewritten to avoid
- *     double-completion or FwdState should be rewritten to allow it.
+ *  double-completion or FwdState should be rewritten to allow it.
  */
 void
 Ftp::Gateway::completeForwarding()
@@ -2722,8 +2722,8 @@ Ftp::Gateway::completeForwarding()
 /**
  * Have we lost the FTP server control channel?
  *
- \retval true  The server control channel is available.
- \retval false The server control channel is not available.
+ \retval true   The server control channel is available.
+ \retval false  The server control channel is not available.
  */
 bool
 Ftp::Gateway::haveControlChannel(const char *caller_name) const
@@ -2753,3 +2753,4 @@ Ftp::StartGateway(FwdState *const fwdState)
 {
     return AsyncJob::Start(new Ftp::Gateway(fwdState));
 }
+
index 852fe35ac1b9670406ac34b615e66cfa50f829e7..8233f8343cc8349ef7bd52683b9fda5cf903b55f 100644 (file)
@@ -135,10 +135,10 @@ const Ftp::Relay::SM_FUNC Ftp::Relay::SM_FUNCS[] = {
 };
 
 Ftp::Relay::Relay(FwdState *const fwdState):
-        AsyncJob("Ftp::Relay"),
-        Ftp::Client(fwdState),
-        thePreliminaryCb(NULL),
-        forwardingCompleted(false)
+    AsyncJob("Ftp::Relay"),
+    Ftp::Client(fwdState),
+    thePreliminaryCb(NULL),
+    forwardingCompleted(false)
 {
     savedReply.message = NULL;
     savedReply.lastCommand = NULL;
@@ -579,7 +579,7 @@ Ftp::Relay::readDataReply()
             forwardPreliminaryReply(&Ftp::Relay::startDataDownload);
         else if (fwd->request->forcedBodyContinuation /*&& serverState() == fssHandleUploadRequest*/)
             startDataUpload();
-        else // serverState() == fssHandleUploadRequest 
+        else // serverState() == fssHandleUploadRequest
             forwardPreliminaryReply(&Ftp::Relay::startDataUpload);
     } else
         forwardReply();
@@ -705,3 +705,4 @@ Ftp::StartRelay(FwdState *const fwdState)
 {
     return AsyncJob::Start(new Ftp::Relay(fwdState));
 }
+
index 122faf333cdaacc3808d46df08400fc3428ccba3..a23e3913870b801de665828b6fc30ed41954e6c5 100644 (file)
@@ -40,3 +40,4 @@ const char *UrlWith2f(HttpRequest *);
 } // namespace Ftp
 
 #endif /* SQUID_CLIENTS_FORWARD_H */
+
index 7800f6fbbe058681f1d7db6a36d510bb59de668e..97be9030d5fd3586437e23dca51a5a6775e5abe2 100644 (file)
@@ -840,7 +840,7 @@ comm_close_complete(const FdeCbParams &params)
         F->dynamicSslContext = NULL;
     }
 #endif
-    fd_close(params.fd);               /* update fdstat */
+    fd_close(params.fd);        /* update fdstat */
     close(params.fd);
 
     ++ statCounter.syscalls.sock.closes;
@@ -1017,7 +1017,7 @@ comm_remove_close_handler(int fd, CLCB * handler, void *data)
         typedef CommCloseCbParams Params;
         const Params &params = GetCommParams<Params>(p);
         if (call->dialer.handler == handler && params.data == data)
-            break;             /* This is our handler */
+            break;      /* This is our handler */
     }
 
     // comm_close removes all close handlers so our handler may be gone
@@ -1048,7 +1048,7 @@ commSetNoLinger(int fd)
 {
 
     struct linger L;
-    L.l_onoff = 0;             /* off */
+    L.l_onoff = 0;      /* off */
     L.l_linger = 0;
 
     if (setsockopt(fd, SOL_SOCKET, SO_LINGER, (char *) &L, sizeof(L)) < 0)
@@ -1439,7 +1439,7 @@ ClientInfo::setWriteLimiter(const int aWriteSpeedLimit, const double anInitialBu
 }
 
 CommQuotaQueue::CommQuotaQueue(ClientInfo *info): clientInfo(info),
-        ins(0), outs(0)
+    ins(0), outs(0)
 {
     assert(clientInfo);
 }
@@ -1521,7 +1521,7 @@ commCloseAllSockets(void)
         if (F->type != FD_SOCKET)
             continue;
 
-        if (F->flags.ipc)      /* don't close inter-process sockets */
+        if (F->flags.ipc)   /* don't close inter-process sockets */
             continue;
 
         if (F->timeoutHandler != NULL) {
@@ -1695,7 +1695,7 @@ commHalfClosedReader(const Comm::ConnectionPointer &conn, char *, size_t size, C
 CommRead::CommRead() : conn(NULL), buf(NULL), len(0), callback(NULL) {}
 
 CommRead::CommRead(const Comm::ConnectionPointer &c, char *buf_, int len_, AsyncCall::Pointer &callback_)
-        : conn(c), buf(buf_), len(len_), callback(callback_) {}
+    : conn(c), buf(buf_), len(len_), callback(callback_) {}
 
 DeferredRead::DeferredRead () : theReader(NULL), theContext(NULL), theRead(), cancelled(false) {}
 
@@ -1951,3 +1951,4 @@ comm_open_uds(int sock_type,
 
     return new_socket;
 }
+
index 2256ca71c76140f03ae375a2d213bd16ff0732f3..094540abc88c04ea7fd75bdbe9d101e679b3353b 100644 (file)
@@ -110,3 +110,4 @@ public:
 };
 
 #endif
+
index c7cb55049f6b11db803c7ad3a6be68d13c553a2b..10abaff03c7d2e19b1aefa0c859bc8ea363ddb2e 100644 (file)
@@ -65,3 +65,4 @@ Comm::AcceptLimiter::kick()
         }
     }
 }
+
index b07114602e4f42cc47c305eff3dd89f4b80d13eb..2045899e8676a04699357fe2bd193a0931d7135b 100644 (file)
@@ -62,3 +62,4 @@ private:
 }; // namepace Comm
 
 #endif /* _SQUID_SRC_COMM_ACCEPT_LIMITER_H */
+
index b8eb95244e8643c8a2c1f51d78931efd3a07a572..0f33ce661a59d89280b1100acfaa099c28b4fd27 100644 (file)
@@ -31,14 +31,14 @@ class CachePeer;
 CBDATA_NAMESPACED_CLASS_INIT(Comm, ConnOpener);
 
 Comm::ConnOpener::ConnOpener(Comm::ConnectionPointer &c, AsyncCall::Pointer &handler, time_t ctimeout) :
-        AsyncJob("Comm::ConnOpener"),
-        host_(NULL),
-        temporaryFd_(-1),
-        conn_(c),
-        callback_(handler),
-        totalTries_(0),
-        failRetries_(0),
-        deadline_(squid_curtime + static_cast<time_t>(ctimeout))
+    AsyncJob("Comm::ConnOpener"),
+    host_(NULL),
+    temporaryFd_(-1),
+    conn_(c),
+    callback_(handler),
+    totalTries_(0),
+    failRetries_(0),
+    deadline_(squid_curtime + static_cast<time_t>(ctimeout))
 {}
 
 Comm::ConnOpener::~ConnOpener()
@@ -479,3 +479,4 @@ Comm::ConnOpener::DelayedConnectRetry(void *data)
     }
     delete ptr;
 }
+
index 49465d36269559c8b3c1fcad4a9f52402dc3b75d..9eed81650ca7392e689b2c26d0fb595d543f9013 100644 (file)
@@ -92,3 +92,4 @@ private:
 }; // namespace Comm
 
 #endif /* _SQUID_SRC_COMM_CONNOPENER_H */
+
index 4d7b9188145a3add1cad18250c3d3b8f9fed066b..01d204b11aba774f37f48557fd9b1c7b4b7c13f5 100644 (file)
@@ -23,15 +23,15 @@ Comm::IsConnOpen(const Comm::ConnectionPointer &conn)
 }
 
 Comm::Connection::Connection() :
-        local(),
-        remote(),
-        peerType(HIER_NONE),
-        fd(-1),
-        tos(0),
-        nfmark(0),
-        flags(COMM_NONBLOCKING),
-        peer_(NULL),
-        startTime_(squid_curtime)
+    local(),
+    remote(),
+    peerType(HIER_NONE),
+    fd(-1),
+    tos(0),
+    nfmark(0),
+    flags(COMM_NONBLOCKING),
+    peer_(NULL),
+    startTime_(squid_curtime)
 {
     *rfc931 = 0; // quick init the head. the rest does not matter.
 }
@@ -101,3 +101,4 @@ Comm::Connection::setPeer(CachePeer *p)
         peer_ = cbdataReference(p);
     }
 }
+
index 8a820318d51b01c8a32d6172a6850ff69e1e33f3..cb79405320f579225ecd355278e25aa827c6d69a 100644 (file)
@@ -172,3 +172,4 @@ operator << (std::ostream &os, const Comm::ConnectionPointer &conn)
 }
 
 #endif
+
index 1874ace95c83ad2710be064777d5b55415c38752..7d2e4a6ca77f42e9bb7618c4d94a6deb49096784 100644 (file)
@@ -31,3 +31,4 @@ typedef enum {
 } // namespace Comm
 
 #endif /* _SQUID_SRC_COMM_FLAG_H */
+
index 44090e5b06cdcfc2e713c7a68349339b54fcad14..f7734322500147a2eb719ce6a472b0fa3594efed 100644 (file)
@@ -139,3 +139,4 @@ Comm::IoCallback::finish(Comm::Flag code, int xerrn)
     /* Reset for next round. */
     reset();
 }
+
index e104a4e81e593468476f618ee695a7a7abb0399e..e02c957d30479b4ef0398c2bf7d0b87e9145fb1e 100644 (file)
@@ -82,3 +82,4 @@ void CallbackTableDestruct();
 } // namespace Comm
 
 #endif /* _SQUID_COMM_IOCALLBACK_H */
+
index 735e3d1ab33beb647009d370b5f7ce8aa1801af7..93588ca01c41b327b0075a81747cc4e18277e7b7 100644 (file)
@@ -73,3 +73,4 @@ void QuickPollRequired(void);
 } // namespace Comm
 
 #endif /* _SQUID_SRC_COMM_LOOPS_H */
+
index 26961aa94f91dc02e96b4ffcfa16df80bd8015cc..1d68e0c73d128d2c06db19eca83c7e0ca782238b 100644 (file)
@@ -51,8 +51,8 @@
 #define DEBUG_DEVPOLL 0
 
 // OPEN_MAX is defined in <climits>
-#define        DEVPOLL_UPDATESIZE      OPEN_MAX
-#define        DEVPOLL_QUERYSIZE       OPEN_MAX
+#define DEVPOLL_UPDATESIZE  OPEN_MAX
+#define DEVPOLL_QUERYSIZE   OPEN_MAX
 
 /* TYPEDEFS */
 typedef short pollfd_events_t; /* type of pollfd.events from sys/poll.h */
@@ -442,3 +442,4 @@ Comm::QuickPollRequired(void)
 }
 
 #endif /* USE_DEVPOLL */
+
index b444d0a7a00f3bac9bfe533773d2be3a9f9f544b..65eacc3033a83236529b7895b8c6d63c96217974 100644 (file)
@@ -255,7 +255,7 @@ Comm::DoSelect(int msec)
     statCounter.select_fds_hist.count(num);
 
     if (num == 0)
-        return Comm::TIMEOUT;          /* No error.. */
+        return Comm::TIMEOUT;       /* No error.. */
 
     PROF_start(comm_handle_ready_fd);
 
@@ -312,3 +312,4 @@ Comm::QuickPollRequired(void)
 }
 
 #endif /* USE_EPOLL */
+
index 31287cfd8deffd6028a8c1405ab87003c77b24af..3fbb8172131e54bf0d73ffcb2c6cf0acb246a91e 100644 (file)
@@ -258,7 +258,7 @@ Comm::DoSelect(int msec)
     getCurrentTime();
 
     if (num == 0)
-        return Comm::OK;               /* No error.. */
+        return Comm::OK;        /* No error.. */
 
     for (i = 0; i < num; ++i) {
         int fd = (int) ke[i].ident;
@@ -307,3 +307,4 @@ commKQueueRegisterWithCacheManager(void)
 }
 
 #endif /* USE_KQUEUE */
+
index d3132b30b140fac8b69d33340c522b6265e25b6f..bd4b721bf81ec60e0183c1f25e44d421b115ab5e 100644 (file)
@@ -40,7 +40,7 @@
 #endif
 #endif
 
-static int MAX_POLL_TIME = 1000;       /* see also Comm::QuickPollRequired() */
+static int MAX_POLL_TIME = 1000;    /* see also Comm::QuickPollRequired() */
 
 #ifndef        howmany
 #define howmany(x, y)   (((x)+((y)-1))/(y))
@@ -649,3 +649,4 @@ Comm::QuickPollRequired(void)
 }
 
 #endif /* USE_POLL */
+
index c67a6c9e322cf3fccf93b3bbc68dbc41ba608b10..b1286c21253a4229070a63c16d4189bff79cbf23 100644 (file)
@@ -30,7 +30,7 @@
 #include <sys/stat.h>
 #endif
 
-static int MAX_POLL_TIME = 1000;       /* see also Comm::QuickPollRequired() */
+static int MAX_POLL_TIME = 1000;    /* see also Comm::QuickPollRequired() */
 
 #ifndef        howmany
 #define howmany(x, y)   (((x)+((y)-1))/(y))
@@ -388,7 +388,7 @@ Comm::DoSelect(int msec)
 
         for (j = 0; j < maxindex; ++j) {
             if ((tmask = fdsp[j]) == 0)
-                continue;      /* no bits here */
+                continue;   /* no bits here */
 
             for (k = 0; k < FD_MASK_BITS; ++k) {
                 if (!EBIT_TEST(tmask, k))
@@ -472,11 +472,11 @@ Comm::DoSelect(int msec)
 
         for (j = 0; j < maxindex; ++j) {
             if ((tmask = (fdsp[j] | pfdsp[j])) == 0)
-                continue;      /* no bits here */
+                continue;   /* no bits here */
 
             for (k = 0; k < FD_MASK_BITS; ++k) {
                 if (tmask == 0)
-                    break;     /* no more bits left */
+                    break;  /* no more bits left */
 
                 if (!EBIT_TEST(tmask, k))
                     continue;
@@ -484,7 +484,7 @@ Comm::DoSelect(int msec)
                 /* Found a set bit */
                 fd = (j * FD_MASK_BITS) + k;
 
-                EBIT_CLR(tmask, k);    /* this will be done */
+                EBIT_CLR(tmask, k); /* this will be done */
 
 #if DEBUG_FDBITS
 
@@ -537,11 +537,11 @@ Comm::DoSelect(int msec)
 
         for (j = 0; j < maxindex; ++j) {
             if ((tmask = fdsp[j]) == 0)
-                continue;      /* no bits here */
+                continue;   /* no bits here */
 
             for (k = 0; k < FD_MASK_BITS; ++k) {
                 if (tmask == 0)
-                    break;     /* no more bits left */
+                    break;  /* no more bits left */
 
                 if (!EBIT_TEST(tmask, k))
                     continue;
@@ -549,7 +549,7 @@ Comm::DoSelect(int msec)
                 /* Found a set bit */
                 fd = (j * FD_MASK_BITS) + k;
 
-                EBIT_CLR(tmask, k);    /* this will be done */
+                EBIT_CLR(tmask, k); /* this will be done */
 
 #if DEBUG_FDBITS
 
@@ -791,3 +791,4 @@ Comm::QuickPollRequired(void)
 }
 
 #endif /* USE_SELECT */
+
index 998731b5f8b8991df82c750da03fbcb41bf61cd6..df3cd5a423c842bb875dd2fc71dc0150895809d8 100644 (file)
@@ -24,7 +24,7 @@
 
 #include <cerrno>
 
-static int MAX_POLL_TIME = 1000;       /* see also Comm::QuickPollRequired() */
+static int MAX_POLL_TIME = 1000;    /* see also Comm::QuickPollRequired() */
 
 #ifndef        howmany
 #define howmany(x, y)   (((x)+((y)-1))/(y))
@@ -805,3 +805,4 @@ Comm::QuickPollRequired(void)
 }
 
 #endif /* USE_SELECT_WIN32 */
+
index b881adc5ada811ebd9b28aecfb5c525fe7de8093..0d68230e94a6c4894d23b6622fb81992ee9e51ba 100644 (file)
@@ -239,3 +239,4 @@ Comm::ReadCancel(int fd, AsyncCall::Pointer &callback)
     /* And the IO event */
     Comm::SetSelect(fd, COMM_SELECT_READ, NULL, NULL, 0);
 }
+
index 90cb7560fd4db1008ea609c836f9bafdef227062..8980ac6af98099a299d39543786c8bd62a5f0c7a 100644 (file)
@@ -60,3 +60,4 @@ inline void comm_read(const Comm::ConnectionPointer &conn, char *buf, int len, A
 void comm_read_cancel(int fd, IOCB *callback, void *data);
 
 #endif /* _SQUID_COMM_READ_H */
+
index 995de5fabfb43a82e26b8da2cbe166a2796c4de2..e9f39be131d284792aebea835bc3e9cea7689a58 100644 (file)
 CBDATA_NAMESPACED_CLASS_INIT(Comm, TcpAcceptor);
 
 Comm::TcpAcceptor::TcpAcceptor(const Comm::ConnectionPointer &newConn, const char *note, const Subscription::Pointer &aSub) :
-        AsyncJob("Comm::TcpAcceptor"),
-        errcode(0),
-        isLimited(0),
-        theCallSub(aSub),
-        conn(newConn),
-        listenPort_()
+    AsyncJob("Comm::TcpAcceptor"),
+    errcode(0),
+    isLimited(0),
+    theCallSub(aSub),
+    conn(newConn),
+    listenPort_()
 {}
 
 Comm::TcpAcceptor::TcpAcceptor(const AnyP::PortCfgPointer &p, const char *note, const Subscription::Pointer &aSub) :
-        AsyncJob("Comm::TcpAcceptor"),
-        errcode(0),
-        isLimited(0),
-        theCallSub(aSub),
-        conn(p->listenConn),
-        listenPort_(p)
+    AsyncJob("Comm::TcpAcceptor"),
+    errcode(0),
+    isLimited(0),
+    theCallSub(aSub),
+    conn(p->listenConn),
+    listenPort_(p)
 {}
 
 void
@@ -421,3 +421,4 @@ Comm::TcpAcceptor::oldAccept(Comm::ConnectionPointer &details)
     PROF_stop(comm_accept);
     return Comm::OK;
 }
+
index f8c45578be1c55606c8672bb0dacf745609f06bd..87d7efacf7625ef490d5eddc26e83555e6083710 100644 (file)
@@ -109,3 +109,4 @@ private:
 } // namespace Comm
 
 #endif /* SQUID_COMM_TCPACCEPTOR_H */
+
index ca31ce2cd5e421bd67a4f22e481a133b51132fe1..2ca0c622f908fe7ebfb6ec87bee29678bdb5c6b7 100644 (file)
@@ -16,7 +16,7 @@ namespace Comm
 
 /// dials a UDP port-opened call
 class UdpOpenDialer: public CallDialer,
-        public Ipc::StartListeningCb
+    public Ipc::StartListeningCb
 {
 public:
     typedef void (*Handler)(const Comm::ConnectionPointer &conn, int errNo);
@@ -33,3 +33,4 @@ public:
 } // namespace Comm
 
 #endif /* SQUID_COMM_UDPOPENDIALER_H */
+
index 4f52c749132d5c35d1aa63ea0a31dada2e49d9ef..1282a29943e26511c16962643ac24f71d7f89db0 100644 (file)
@@ -160,3 +160,4 @@ Comm::HandleWrite(int fd, void *data)
 
     PROF_stop(commHandleWrite);
 }
+
index 9c9058b9a2dc1bd8a09f7d6f3d4527eedf7724e3..7071f04a89abee7b22c02954ded754ea1188d3ab 100644 (file)
@@ -40,3 +40,4 @@ extern PF HandleWrite;
 } // namespace Comm
 
 #endif /* _SQUID_COMM_IOWRITE_H */
+
index 5754c91741eb0668df3e00b24da556ff10c6a212..1fc2445bc5dd6053d3593ac54536d56984698c86 100644 (file)
@@ -23,3 +23,4 @@ bool isOpen(const int fd);
 void commStopHalfClosedMonitor(int fd);
 
 #endif
+
index 7c456e69be75c4e3162f811403fdbe9b1d421d52..bcbb6e9619709867eba9abda7c8895587dfac4b1 100644 (file)
@@ -29,3 +29,4 @@ bool IsConnOpen(const Comm::ConnectionPointer &conn);
 }; // namespace Comm
 
 #endif /* _SQUID_COMM_FORWARD_H */
+
index f363132db8c7e59a13e16515fc12390b84705943..ebe7f86d19f03e542fd727f0180d40f4e10beb25 100644 (file)
@@ -10,3 +10,4 @@
 #define SQUID_COMM_POLL_H
 
 #endif /* SQUID_COMM_POLL_H */
+
index 1d6335196f8d9e828c7bbeb66df4a83a4b7529e8..915ca721647a887ca4144393e2766285b931f260 100644 (file)
@@ -217,7 +217,7 @@ debugOpenLog(const char *logfile)
     if (debug_log_file)
         xfree(debug_log_file);
 
-    debug_log_file = xstrdup(logfile); /* keep a static copy */
+    debug_log_file = xstrdup(logfile);  /* keep a static copy */
 
     if (debug_log && debug_log != stderr)
         fclose(debug_log);
@@ -753,7 +753,7 @@ Debug::xassert(const char *msg, const char *file, int line)
 
     if (CurrentDebug) {
         *CurrentDebug << "assertion failed: " << file << ":" << line <<
-        ": \"" << msg << "\"";
+                      ": \"" << msg << "\"";
     }
     abort();
 }
@@ -803,3 +803,4 @@ Raw::print(std::ostream &os) const
 
     return os;
 }
+
index ae347ef3a3b218bfad17916df6f04db7569b7fc4..52432f88fb09b95fdd399e1066c2835927950660 100644 (file)
 
 #define BROWSERNAMELEN 128
 
-#define ACL_SUNDAY     0x01
-#define ACL_MONDAY     0x02
-#define ACL_TUESDAY    0x04
-#define ACL_WEDNESDAY  0x08
-#define ACL_THURSDAY   0x10
-#define ACL_FRIDAY     0x20
-#define ACL_SATURDAY   0x40
-#define ACL_ALLWEEK    0x7F
-#define ACL_WEEKDAYS   0x3E
+#define ACL_SUNDAY  0x01
+#define ACL_MONDAY  0x02
+#define ACL_TUESDAY 0x04
+#define ACL_WEDNESDAY   0x08
+#define ACL_THURSDAY    0x10
+#define ACL_FRIDAY  0x20
+#define ACL_SATURDAY    0x40
+#define ACL_ALLWEEK 0x7F
+#define ACL_WEEKDAYS    0x3E
 
 /* Select types. */
 #define COMM_SELECT_READ   (0x1)
 
 #define DNS_INBUF_SZ 4096
 
-#define FD_DESC_SZ             64
+#define FD_DESC_SZ      64
 
-#define FQDN_LOOKUP_IF_MISS    0x01
+#define FQDN_LOOKUP_IF_MISS 0x01
 #define FQDN_MAX_NAMES 5
 
 #define HTTP_REPLY_FIELD_SZ 128
 
-#define BUF_TYPE_8K    1
+#define BUF_TYPE_8K     1
 #define BUF_TYPE_MALLOC 2
 
-#define ANONYMIZER_NONE                0
-#define ANONYMIZER_STANDARD    1
-#define ANONYMIZER_PARANOID    2
+#define ANONYMIZER_NONE     0
+#define ANONYMIZER_STANDARD 1
+#define ANONYMIZER_PARANOID 2
 
 #define USER_IDENT_SZ 64
 #define IDENT_NONE 0
 #define IDENT_PENDING 1
 #define IDENT_DONE 2
 
-#define IP_LOOKUP_IF_MISS      0x01
+#define IP_LOOKUP_IF_MISS   0x01
 
 #define MAX_MIME 4096
 
@@ -73,9 +73,9 @@
 #define ICP_FLAG_SRC_RTT     0x40000000ul
 
 /* Version */
-#define ICP_VERSION_2          2
-#define ICP_VERSION_3          3
-#define ICP_VERSION_CURRENT    ICP_VERSION_2
+#define ICP_VERSION_2       2
+#define ICP_VERSION_3       3
+#define ICP_VERSION_CURRENT ICP_VERSION_2
 
 #define DIRECT_UNKNOWN 0
 #define DIRECT_NO    1
 #define SM_PAGE_SIZE 4096
 #define MAX_CLIENT_BUF_SZ 4096
 
-#define EBIT_SET(flag, bit)    ((void)((flag) |= ((1L<<(bit)))))
-#define EBIT_CLR(flag, bit)    ((void)((flag) &= ~((1L<<(bit)))))
-#define EBIT_TEST(flag, bit)   ((flag) & ((1L<<(bit))))
+#define EBIT_SET(flag, bit)     ((void)((flag) |= ((1L<<(bit)))))
+#define EBIT_CLR(flag, bit)     ((void)((flag) &= ~((1L<<(bit)))))
+#define EBIT_TEST(flag, bit)    ((flag) & ((1L<<(bit))))
 
 /* bit opearations on a char[] mask of unlimited length */
 #define CBIT_BIT(bit)           (1<<((bit)%8))
 #define CBIT_BIN(mask, bit)     (mask)[(bit)>>3]
-#define CBIT_SET(mask, bit)    ((void)(CBIT_BIN(mask, bit) |= CBIT_BIT(bit)))
-#define CBIT_CLR(mask, bit)    ((void)(CBIT_BIN(mask, bit) &= ~CBIT_BIT(bit)))
-#define CBIT_TEST(mask, bit)   (CBIT_BIN(mask, bit) & CBIT_BIT(bit))
+#define CBIT_SET(mask, bit)     ((void)(CBIT_BIN(mask, bit) |= CBIT_BIT(bit)))
+#define CBIT_CLR(mask, bit)     ((void)(CBIT_BIN(mask, bit) &= ~CBIT_BIT(bit)))
+#define CBIT_TEST(mask, bit)    (CBIT_BIN(mask, bit) & CBIT_BIT(bit))
 
 #define MAX_FILES_PER_DIR (1<<20)
 
 
 #define PEER_MAX_ADDRESSES 10
 #define RTT_AV_FACTOR      50
-#define RTT_BACKGROUND_AV_FACTOR      25       /* Background pings need a smaller factor since they are sent less frequently */
+#define RTT_BACKGROUND_AV_FACTOR      25    /* Background pings need a smaller factor since they are sent less frequently */
 
 #define PEER_DEAD 0
 #define PEER_ALIVE 1
 #define FILE_MODE(x) ((x)&(O_RDONLY|O_WRONLY|O_RDWR))
 #endif
 
-#define        HTTP_REQBUF_SZ  4096
+#define HTTP_REQBUF_SZ  4096
 
 /* CygWin & Windows NT Port */
 #if _SQUID_WINDOWS_
 #define _WIN_SQUID_SERVICE_CONTROL_STOP SERVICE_CONTROL_STOP
 #define _WIN_SQUID_SERVICE_CONTROL_SHUTDOWN SERVICE_CONTROL_SHUTDOWN
 #define _WIN_SQUID_SERVICE_CONTROL_INTERROGATE SERVICE_CONTROL_INTERROGATE
-#define _WIN_SQUID_SERVICE_CONTROL_ROTATE      128
-#define _WIN_SQUID_SERVICE_CONTROL_RECONFIGURE 129
-#define _WIN_SQUID_SERVICE_CONTROL_DEBUG       130
-#define _WIN_SQUID_SERVICE_CONTROL_INTERRUPT   131
-#define _WIN_SQUID_SERVICE_OPTION              "--ntservice"
-#define _WIN_SQUID_RUN_MODE_INTERACTIVE                0
-#define _WIN_SQUID_RUN_MODE_SERVICE            1
+#define _WIN_SQUID_SERVICE_CONTROL_ROTATE   128
+#define _WIN_SQUID_SERVICE_CONTROL_RECONFIGURE  129
+#define _WIN_SQUID_SERVICE_CONTROL_DEBUG    130
+#define _WIN_SQUID_SERVICE_CONTROL_INTERRUPT    131
+#define _WIN_SQUID_SERVICE_OPTION       "--ntservice"
+#define _WIN_SQUID_RUN_MODE_INTERACTIVE     0
+#define _WIN_SQUID_RUN_MODE_SERVICE     1
 #endif
 
 #endif /* SQUID_DEFINES_H */
+
index 9949542d5d3199d9b2f961b9b1fd8af11c05ce98..ef7a586d223c23d5f8eb3be75dbca66605792e66 100644 (file)
@@ -1008,3 +1008,4 @@ ClassCHostPool::Id::bytesIn(int qty)
 }
 
 #endif /* USE_DELAY_POOLS */
+
index e05fddcbb66481d36b3e6df22b23ebd36d0578b2..3311937aac170c95953633dd968b536caed3effa 100644 (file)
@@ -421,7 +421,7 @@ diskHandleRead(int fd, void *data)
     {
 #endif
         debugs(6, 3, "diskHandleRead: FD " << fd << " seeking to offset " << ctrl_dat->offset);
-        lseek(fd, ctrl_dat->offset, SEEK_SET); /* XXX ignore return? */
+        lseek(fd, ctrl_dat->offset, SEEK_SET);  /* XXX ignore return? */
         ++ statCounter.syscalls.disk.seeks;
         F->disk.offset = ctrl_dat->offset;
     }
index 835924a061d2cc190bd1744a90df86545f3c2a70..d8de3fb619971fa8185591296e494407e9852439 100644 (file)
@@ -60,3 +60,4 @@ void safeunlink(const char *path, int quiet);
 int xrename(const char *from, const char *to); //disk.cc
 
 #endif /* SQUID_DISK_H_ */
+
index feb923f0dbee38cef5881992508e01257ed6a00a..9d52ad640e07f0f048be14ea14700310425362bc 100644 (file)
@@ -104,3 +104,4 @@ dlinkDelete(dlink_node * m, dlink_list * list)
 
     m->next = m->prev = NULL;
 }
+
index 7d3985a19c56aa6232cc585929d710abee65510e..2deb00cc58313a9853f621d56edb6b0416adde16 100644 (file)
@@ -39,3 +39,4 @@ void dlinkNodeDelete(dlink_node * m);
 dlink_node *dlinkNodeNew(void);
 
 #endif /* SQUID_DLINK_H */
+
index 3f899278d08cc10c30532f42426f175fecd21972..7be099be1e8830ed3704f266c205b0eb7ebe7b88 100644 (file)
@@ -1148,9 +1148,9 @@ idnsGrokReply(const char *buf, size_t sz, int from_ns)
 
 #if WHEN_EDNS_RESPONSES_ARE_PARSED
 // TODO: actually gr the message right here.
-//     pull out the DNS meta data we need (A records, AAAA records and EDNS OPT) and store in q
-//     this is overall better than force-feeding A response with AAAA an section later anyway.
-//     AND allows us to merge AN+AR sections from both responses (one day)
+//  pull out the DNS meta data we need (A records, AAAA records and EDNS OPT) and store in q
+//  this is overall better than force-feeding A response with AAAA an section later anyway.
+//  AND allows us to merge AN+AR sections from both responses (one day)
 
     if (q->edns_seen >= 0) {
         if (max_shared_edns == nameservers[from_ns].last_seen_edns && max_shared_edns < q->edns_seen) {
@@ -1853,3 +1853,4 @@ snmp_netDnsFn(variable_list * Var, snint * ErrP)
 }
 
 #endif /*SQUID_SNMP */
+
index a5a3d88c35e0a7adc448e9fee4210b7b7c5a3382..3088d0f5f38630f8a5e7fd2e5ed1975469c0fc7f 100644 (file)
@@ -114,8 +114,8 @@ enum {
  * its status
  */
 typedef enum {
-    STREAM_NONE,               /* No particular status */
-    STREAM_COMPLETE,           /* All data has been flushed, no more reads allowed */
+    STREAM_NONE,        /* No particular status */
+    STREAM_COMPLETE,        /* All data has been flushed, no more reads allowed */
     /* an unpredicted end has occured, no more
      * reads occured, but no need to tell
      * downstream that an error occured
@@ -250,3 +250,4 @@ typedef enum {
 #endif /* USE_HTCP */
 
 #endif /* SQUID_ENUMS_H */
+
index 50b1f927e5b8f303b4090503c30713996cf5321b..e6a4984e7b88c629445a5905eb6636d7b5370052 100644 (file)
@@ -50,3 +50,4 @@ const char *errorDetailName(int errDetailId)
 }
 
 #endif
+
index 4ebe9da9358358a9fa87138068f795dc268490c7..581286e9bb73466b67aeb1d637c92e4798c77711 100644 (file)
@@ -82,3 +82,4 @@ typedef enum {
 extern const char *err_type_str[];
 
 #endif /* _SQUID_ERR_TYPE_H */
+
index 9e0fe2334832748bf74c4199b79d5df2a30481d0..122e20b22f9db59e7b15e3b4a7dbd10b9c827c1d 100644 (file)
@@ -76,7 +76,7 @@ typedef struct {
  *      automagically to give you more control on the format
  */
 static const struct {
-    int type;                  /* and page_id */
+    int type;           /* and page_id */
     const char *text;
 }
 
@@ -538,13 +538,13 @@ errorReservePageId(const char *page_name)
 const char *
 errorPageName(int pageId)
 {
-    if (pageId >= ERR_NONE && pageId < ERR_MAX)                /* common case */
+    if (pageId >= ERR_NONE && pageId < ERR_MAX)     /* common case */
         return err_type_str[pageId];
 
     if (pageId >= ERR_MAX && pageId - ERR_MAX < (ssize_t)ErrorDynamicPages.size())
         return ErrorDynamicPages[pageId - ERR_MAX]->page_name;
 
-    return "ERR_UNKNOWN";      /* should not happen */
+    return "ERR_UNKNOWN";   /* should not happen */
 }
 
 ErrorState *
@@ -557,29 +557,29 @@ ErrorState::NewForwarding(err_type type, HttpRequest *request)
 }
 
 ErrorState::ErrorState(err_type t, Http::StatusCode status, HttpRequest * req) :
-        type(t),
-        page_id(t),
-        err_language(NULL),
-        httpStatus(status),
+    type(t),
+    page_id(t),
+    err_language(NULL),
+    httpStatus(status),
 #if USE_AUTH
-        auth_user_request (NULL),
+    auth_user_request (NULL),
 #endif
-        request(NULL),
-        url(NULL),
-        xerrno(0),
-        port(0),
-        dnsError(),
-        ttl(0),
-        src_addr(),
-        redirect_url(NULL),
-        callback(NULL),
-        callback_data(NULL),
-        request_hdrs(NULL),
-        err_msg(NULL),
+    request(NULL),
+    url(NULL),
+    xerrno(0),
+    port(0),
+    dnsError(),
+    ttl(0),
+    src_addr(),
+    redirect_url(NULL),
+    callback(NULL),
+    callback_data(NULL),
+    request_hdrs(NULL),
+    err_msg(NULL),
 #if USE_OPENSSL
-        detail(NULL),
+    detail(NULL),
 #endif
-        detailCode(ERR_DETAIL_NONE)
+    detailCode(ERR_DETAIL_NONE)
 {
     memset(&ftp, 0, sizeof(ftp));
 
@@ -779,7 +779,7 @@ const char *
 ErrorState::Convert(char token, bool building_deny_info_url, bool allowRecursion)
 {
     static MemBuf mb;
-    const char *p = NULL;      /* takes priority over mb if set */
+    const char *p = NULL;   /* takes priority over mb if set */
     int do_quote = 1;
     int no_urlescape = 0;       /* if true then item is NOT to be further URL-encoded */
     char ntoabuf[MAX_IPSTRLEN];
@@ -1091,7 +1091,7 @@ ErrorState::Convert(char token, bool building_deny_info_url, bool allowRecursion
     }
 
     if (!p)
-        p = mb.buf;            /* do not use mb after this assignment! */
+        p = mb.buf;     /* do not use mb after this assignment! */
 
     assert(p);
 
@@ -1276,14 +1276,14 @@ MemBuf *ErrorState::ConvertText(const char *text, bool allowRecursion)
     content->init();
 
     while ((p = strchr(m, '%'))) {
-        content->append(m, p - m);     /* copy */
-        const char *t = Convert(*++p, false, allowRecursion);  /* convert */
-        content->Printf("%s", t);      /* copy */
-        m = p + 1;                     /* advance */
+        content->append(m, p - m);  /* copy */
+        const char *t = Convert(*++p, false, allowRecursion);   /* convert */
+        content->Printf("%s", t);   /* copy */
+        m = p + 1;          /* advance */
     }
 
     if (*m)
-        content->Printf("%s", m);      /* copy tail */
+        content->Printf("%s", m);   /* copy tail */
 
     content->terminate();
 
@@ -1291,3 +1291,4 @@ MemBuf *ErrorState::ConvertText(const char *text, bool allowRecursion)
 
     return content;
 }
+
index 3f69e4893db03a8da483fb23dcbeef0780733cc5..2ca081853d3d3ad68130008a06c37eed6c56d9a3 100644 (file)
@@ -304,3 +304,4 @@ protected:
 bool strHdrAcptLangGetItem(const String &hdr, char *lang, int langLen, size_t &pos);
 
 #endif /* SQUID_ERRORPAGE_H */
+
index a68f0100ddecacb2b1c3d90b8323231b2185ef97..57e7ef7ce40ab4198a2e6270f5d624974b6da8ce 100644 (file)
@@ -173,3 +173,4 @@ ESIVariableExpression::eval (ESIVarState &state, char const *subref, char const
 }
 
 #endif /* USE_SQUID_ESI == 1 */
+
index 4d55013a53a463099d75d215d04326891bf350ad..635e5a405b64911e69054d037e923a5831f06b1b 100644 (file)
@@ -57,3 +57,4 @@ private:
 };
 
 #endif /* SQUID_ESIASSIGN_H */
+
index 2af1681e59f7e66514ba88b429798545a45ff618..78440fa877722cb44ccba8138f3ca0dfd5dfe30d 100644 (file)
@@ -23,3 +23,4 @@ struct esiAttempt : public esiSequence {
 };
 
 #endif /* SQUID_ESIATTEMPT_H */
+
index ef472a22557446ff54047ceed30cc16635a1f538..e2a37b34e2df46b4e44b5a55a2a3171d4d6c2fb0 100644 (file)
@@ -89,3 +89,4 @@ ESIContext::setErrorMessage(char const *anError)
 }
 
 #endif /* USE_SQUID_ESI == 1 */
+
index d9091ec4b97b7f758a71861ccf1861d1083361ce..c43773760e8e4f85999629290932401c8b947e83 100644 (file)
@@ -27,19 +27,19 @@ class ESIContext : public esiTreeParent, public ESIParserClient
 public:
     typedef RefCount<ESIContext> Pointer;
     ESIContext() :
-            thisNode(NULL),
-            http(NULL),
-            errorpage(ERR_NONE),
-            errorstatus(Http::scNone),
-            errormessage(NULL),
-            rep(NULL),
-            outbound_offset(0),
-            readpos(0),
-            pos(0),
-            varState(NULL),
-            cachedASTInUse(false),
-            reading_(true),
-            processing(false) {
+        thisNode(NULL),
+        http(NULL),
+        errorpage(ERR_NONE),
+        errorstatus(Http::scNone),
+        errormessage(NULL),
+        rep(NULL),
+        outbound_offset(0),
+        readpos(0),
+        pos(0),
+        varState(NULL),
+        cachedASTInUse(false),
+        reading_(true),
+        processing(false) {
         memset(&flags, 0, sizeof(flags));
     }
 
@@ -159,3 +159,4 @@ private:
 };
 
 #endif /* SQUID_ESICONTEXT_H */
+
index 1a27349097cbffb7f38cee5fe01b45d7688ef6b8..ba71e9015745cebd0f4d7f2939028b912af4c4af 100644 (file)
@@ -48,8 +48,8 @@ ESICustomParser::GetTrie()
 }
 
 ESICustomParser::ESICustomParser(ESIParserClient *aClient) :
-        theClient(aClient),
-        lastTag(ESITAG)
+    theClient(aClient),
+    lastTag(ESITAG)
 {}
 
 ESICustomParser::~ESICustomParser()
@@ -295,3 +295,4 @@ ESICustomParser::errorString() const
     else
         return "Parsing error strings not implemented";
 }
+
index 2291087f884b4d9d2bb50895f2b5ee439b2f74e2..4fe623af00f302189d22cc4900423cdb16421cdd 100644 (file)
@@ -52,3 +52,4 @@ private:
 };
 
 #endif /* SQUID_ESICUSTOMPARSER_H */
+
index 5453274e61580818d777465f3db196f05375d265..86961f413ec56b95f4fa739d050960e3f7746262 100644 (file)
@@ -84,3 +84,4 @@ public:
 };
 
 #endif /* SQUID_ESIELEMENT_H */
+
index 1b88599c5b451167723fc974ff8fe843e4626a66..c0a1df473b71ddee033d2fc1cf8c77fc98876fe2 100644 (file)
@@ -38,3 +38,4 @@ private:
 };
 
 #endif /* SQUID_ELEMENTLIST_H */
+
index b6044f9ce6e62ceecbde495cbac9a8b8837fd072..6f2dbbd22c66da4ac99f1518827c23f4e64e5b73 100644 (file)
@@ -402,9 +402,9 @@ esiStreamRead (clientStreamNode *thisNode, ClientHttpRequest *http)
     switch (context->kick ()) {
 
     case ESIContext::ESI_KICK_FAILED:
-        /* this can not happen - processing can't fail until we have data,
-         * and when we come here we have sent data to the client
-         */
+    /* this can not happen - processing can't fail until we have data,
+     * and when we come here we have sent data to the client
+     */
 
     case ESIContext::ESI_KICK_SENT:
 
@@ -921,9 +921,9 @@ ESIContext::ParserState::top()
 }
 
 ESIContext::ParserState::ParserState() :
-        stackdepth(0),
-        parsing(0),
-        inited_(false)
+    stackdepth(0),
+    parsing(0),
+    inited_(false)
 {}
 
 bool
@@ -1565,7 +1565,7 @@ esiLiteral::process (int dovars)
 }
 
 esiLiteral::esiLiteral(esiLiteral const &old) : buffer (old.buffer->cloneList()),
-        varState (NULL)
+    varState (NULL)
 {
     flags.donevars = 0;
 }
@@ -1662,8 +1662,8 @@ esiTry::~esiTry()
 }
 
 esiTry::esiTry(esiTreeParentPtr aParent) :
-        parent(aParent),
-        exceptbuffer(NULL)
+    parent(aParent),
+    exceptbuffer(NULL)
 {
     memset(&flags, 0, sizeof(flags));
 }
@@ -2287,10 +2287,10 @@ ElementList::size() const
 
 /* esiWhen */
 esiWhen::esiWhen(esiTreeParentPtr aParent, int attrcount, const char **attr,ESIVarState *aVar) :
-        esiSequence(aParent),
-        testValue(false),
-        unevaluatedExpression(NULL),
-        varState(NULL)
+    esiSequence(aParent),
+    testValue(false),
+    unevaluatedExpression(NULL),
+    varState(NULL)
 {
     char const *expression = NULL;
 
@@ -2346,10 +2346,10 @@ esiWhen::evaluate()
 }
 
 esiWhen::esiWhen(esiWhen const &old) :
-        esiSequence(old),
-        testValue(false),
-        unevaluatedExpression(NULL),
-        varState(NULL)
+    esiSequence(old),
+    testValue(false),
+    unevaluatedExpression(NULL),
+    varState(NULL)
 {
     if (old.unevaluatedExpression)
         unevaluatedExpression = xstrdup(old.unevaluatedExpression);
@@ -2419,3 +2419,4 @@ esiEnableProcessing (HttpReply *rep)
 }
 
 #endif /* USE_SQUID_ESI == 1 */
+
index 506b7371dce855eb9b639e71842455d21c1af5cd..92c3765114e4374e3497f0a33b972d4763c42069 100644 (file)
@@ -19,3 +19,4 @@ extern CSS esiStreamStatus;
 int esiEnableProcessing (HttpReply *);
 
 #endif /* SQUID_ESI_H */
+
index 62dd9d3cee2866003a0661e63cf8f545d8f17294..540b99fa2844eadeda050e404e2567516131d692 100644 (file)
@@ -26,3 +26,4 @@ public:
 };
 
 #endif /* SQUID_ESIEXCEPT_H */
+
index fe16e0129f1729ec793ec4781d881f5228ab5111..d961dc078cf54f14ed21e0f8273355320e2c6be8 100644 (file)
@@ -84,3 +84,4 @@ ESIExpatParser::errorString() const
 }
 
 #endif /* USE_SQUID_ESI */
+
index f68dd544a086848cb52c89f5991155652d28003b..5d73117aee5ee1919eae17ce52218c80163ac919 100644 (file)
@@ -24,7 +24,7 @@ public:
     ESIExpatParser(ESIParserClient *);
     ~ESIExpatParser();
 
-    /** \retval true   on success */
+    /** \retval true    on success */
     bool parse(char const *dataToParse, size_t const lengthOfData, bool const endOfStream);
 
     long int lineNumber() const;
@@ -47,3 +47,4 @@ private:
 #endif /* USE_SQUID_ESI */
 
 #endif /* SQUID_ESIEXPATPARSER_H */
+
index eb165a69bfa0005dd6f74514dde74eb089231326..5e8dd86e825e91154d01e0989f67255350bb111c 100644 (file)
@@ -51,7 +51,7 @@ typedef enum {
     ESI_EXPR_LESSEQ,
     ESI_EXPR_MORE,
     ESI_EXPR_MOREEQ,
-    ESI_EXPR_EXPR                      /* the result of an expr PRI 1 */
+    ESI_EXPR_EXPR           /* the result of an expr PRI 1 */
 } evaltype;
 
 typedef enum {
@@ -503,11 +503,11 @@ evalmorethan(stackmember * stack, int *depth, int whereAmI, stackmember * candid
         /* invalid comparison */
         return 1;
 
-    stackpop(stack, depth);    /* arg rhs */
+    stackpop(stack, depth); /* arg rhs */
 
-    stackpop(stack, depth);    /* me */
+    stackpop(stack, depth); /* me */
 
-    stackpop(stack, depth);    /* arg lhs */
+    stackpop(stack, depth); /* arg lhs */
 
     srv.valuetype = ESI_EXPR_EXPR;
 
@@ -552,11 +552,11 @@ evalequals(stackmember * stack, int *depth, int whereAmI,
         /* invalid comparison */
         return 1;
 
-    stackpop(stack, depth);    /* arg rhs */
+    stackpop(stack, depth); /* arg rhs */
 
-    stackpop(stack, depth);    /* me */
+    stackpop(stack, depth); /* me */
 
-    stackpop(stack, depth);    /* arg lhs */
+    stackpop(stack, depth); /* arg lhs */
 
     srv.valuetype = ESI_EXPR_EXPR;
 
@@ -599,11 +599,11 @@ evalnotequals(stackmember * stack, int *depth, int whereAmI, stackmember * candi
         /* invalid comparison */
         return 1;
 
-    stackpop(stack, depth);    /* arg rhs */
+    stackpop(stack, depth); /* arg rhs */
 
-    stackpop(stack, depth);    /* me */
+    stackpop(stack, depth); /* me */
 
-    stackpop(stack, depth);    /* arg lhs */
+    stackpop(stack, depth); /* arg lhs */
 
     srv.valuetype = ESI_EXPR_EXPR;
 
@@ -672,7 +672,7 @@ getsymbol(const char *s, char const **endptr)
     char const *origs = s;
     /* trim whitespace */
     s = trim(s);
-    rv.eval = NULL;            /* A literal */
+    rv.eval = NULL;     /* A literal */
     rv.valuetype = ESI_EXPR_INVALID;
     rv.valuestored = ESI_LITERAL_INVALID;
     rv.precedence = 1; /* A literal */
@@ -1034,3 +1034,4 @@ ESIExpression::Evaluate(char const *s)
 
     return stack[0].value.integral ? 1 : 0;
 }
+
index c2754a2baceafb24f3858f78e77cd2559745d225..cf88c2bc14d611c53952eb90919ebb7460d63f4a 100644 (file)
@@ -19,3 +19,4 @@ public:
 };
 
 #endif /* SQUID_ESIEXPRESSION_H */
+
index 5505bac0d6bc4558e98be032facffa8eb409922f..c87564c4d8aa46215326cdd096f3e113cb4d9a38 100644 (file)
@@ -260,12 +260,12 @@ ESIInclude::makeUsable(esiTreeParentPtr newParent, ESIVarState &newVarState) con
 }
 
 ESIInclude::ESIInclude(ESIInclude const &old) :
-        varState(NULL),
-        srcurl(NULL),
-        alturl(NULL),
-        parent(NULL),
-        started(false),
-        sent(false)
+    varState(NULL),
+    srcurl(NULL),
+    alturl(NULL),
+    parent(NULL),
+    started(false),
+    sent(false)
 {
     memset(&flags, 0, sizeof(flags));
     flags.onerrorcontinue = old.flags.onerrorcontinue;
@@ -310,12 +310,12 @@ ESIInclude::Start (ESIStreamContext::Pointer stream, char const *url, ESIVarStat
 }
 
 ESIInclude::ESIInclude(esiTreeParentPtr aParent, int attrcount, char const **attr, ESIContext *aContext) :
-        varState(NULL),
-        srcurl(NULL),
-        alturl(NULL),
-        parent(aParent),
-        started(false),
-        sent(false)
+    varState(NULL),
+    srcurl(NULL),
+    alturl(NULL),
+    parent(aParent),
+    started(false),
+    sent(false)
 {
     assert (aContext);
     memset(&flags, 0, sizeof(flags));
@@ -563,3 +563,4 @@ ESIInclude::subRequestDone (ESIStreamContext::Pointer stream, bool success)
 }
 
 #endif /* USE_SQUID_ESI == 1 */
+
index bef8f30768d9564ef6845105dd40f91d69d896ed..ac91354256589b7ffac7b0f392cd9d897d50677a 100644 (file)
@@ -72,3 +72,4 @@ private:
 };
 
 #endif /* SQUID_ESIINCLUDE_H */
+
index 7bc8f8a944399876cf23933894db96b77c9ccbc9..4f7f4da4fd7e7498aa5ddf673255bf3831bd9660 100644 (file)
@@ -127,3 +127,4 @@ ESILibxml2Parser::errorString() const
 }
 
 #endif /* USE_SQUID_ESI */
+
index 7290d7365a3201098453a29bfb50061444b037f8..8ce4b0cc49ece8b8824fc90a30cc508305bbe29c 100644 (file)
@@ -62,3 +62,4 @@ private:
 #endif /* USE_SQUID_ESI */
 
 #endif /* SQUID_ESILIBXML2PARSER_H */
+
index 8b54ff500233ffebedb22e6890a6943fb4db027f..3ebf884884f715798f87d5c73beabb3c7f93784f 100644 (file)
@@ -43,3 +43,4 @@ private:
 };
 
 #endif /* SQUID_ESILITERAL_H */
+
index 61ce3afaeb37319a8b34d10a85c93d1d2db7434b..34a98455c66105220dc66d5fc5a91fa8fe71b2ed 100644 (file)
@@ -54,3 +54,4 @@ void Esi::Clean()
     delete prCustom;
     prCustom = NULL;
 }
+
index 2458435decf10f964a6db884cb6069052f5af5e1..dde279cb3357b8deb42d08981220a0c8e85e3ab0 100644 (file)
@@ -18,3 +18,4 @@ void Clean();
 } // namespace Esi
 
 #endif /* SQUID_ESI_MODULE_H */
+
index 45ad62e91b2004bd5c57c928b6469a78d29fc444..e27c1dce1b61383d5b4007706198dd2ca046d2b9 100644 (file)
@@ -44,3 +44,4 @@ ESIParser::Register::~Register()
     assert(ESIParser::Parsers == this);
     ESIParser::Parsers = next;
 }
+
index ce669badbcabf7d4e795efc847e5cfb8f211ad6b..faebbe664594a6620c5a2986ec8df676f8928763 100644 (file)
@@ -65,10 +65,11 @@ public:
 #define EsiParserDefinition(ThisClass) \
     ESIParser::Pointer ThisClass::NewParser(ESIParserClient *aClient) \
     { \
-       return new ThisClass (aClient); \
+    return new ThisClass (aClient); \
     }
 
 #define EsiParserDeclaration \
     static ESIParser::Pointer NewParser(ESIParserClient *aClient)
 
 #endif /* SQUID_ESIPARSER_H */
+
index 5c0c88efcc0f2c50051b79e46cde9b616b79c765..89d4e1270db03503fb182ba080df9056243873e1 100644 (file)
@@ -214,3 +214,4 @@ ESISegment::dumpOne() const
     temp.limitInit(buf, len);
     debugs(86, 9, "ESISegment::dumpOne: \"" << temp << "\"");
 }
+
index 627b7465bd24753437448dd15f0541b3baa7a6ae..546f6ca8afcb3608ee8c3132659fc6a15a292c9c 100644 (file)
@@ -53,3 +53,4 @@ private:
 void ESISegmentFreeList (ESISegment::Pointer &head);
 
 #endif /* SQUID_ESISEGMENT_H */
+
index 38c00f5baecca042ab59401ee91a19e5d80edd32..8dfe8912db693d1ccd2190cc1540c97feb355a5c 100644 (file)
@@ -30,15 +30,15 @@ esiSequence::~esiSequence ()
 }
 
 esiSequence::esiSequence(esiTreeParentPtr aParent, bool incrementalFlag) :
-        elements(),
-        processedcount(0),
-        parent(aParent),
-        mayFail_(true),
-        failed(false),
-        provideIncrementalData(incrementalFlag),
-        processing(false),
-        processingResult(ESI_PROCESS_COMPLETE),
-        nextElementToProcess_(0)
+    elements(),
+    processedcount(0),
+    parent(aParent),
+    mayFail_(true),
+    failed(false),
+    provideIncrementalData(incrementalFlag),
+    processing(false),
+    processingResult(ESI_PROCESS_COMPLETE),
+    nextElementToProcess_(0)
 {
     memset(&flags, 0, sizeof(flags));
 }
@@ -318,14 +318,14 @@ esiSequence::fail (ESIElement *source, char const *anError)
 }
 
 esiSequence::esiSequence(esiSequence const &old) :
-        processedcount(0),
-        parent(NULL),
-        mayFail_(old.mayFail_),
-        failed(old.failed),
-        provideIncrementalData(old.provideIncrementalData),
-        processing(false),
-        processingResult(ESI_PROCESS_COMPLETE),
-        nextElementToProcess_(0)
+    processedcount(0),
+    parent(NULL),
+    mayFail_(old.mayFail_),
+    failed(old.failed),
+    provideIncrementalData(old.provideIncrementalData),
+    processing(false),
+    processingResult(ESI_PROCESS_COMPLETE),
+    nextElementToProcess_(0)
 {
     flags.dovars = old.flags.dovars;
 }
@@ -391,3 +391,4 @@ esiSequence::makeUsable(esiTreeParentPtr newParent, ESIVarState &newVarState) co
 }
 
 #endif /* USE_SQUID_ESI == 1 */
+
index e668497831530f22659ce0cc5f70ac040594829a..576d271dd6e90e00ddd869750f8f4bc96212b448 100644 (file)
@@ -65,3 +65,4 @@ private:
 };
 
 #endif /* SQUID_ESISEQUENCE_H */
+
index 48babc3c9f92d69eafeff4e252c318816ae5a62d..85d03f7ac9f95f8132d3fddd9b76c281d77b4a76 100644 (file)
@@ -28,3 +28,4 @@ public:
 };
 
 #endif /* SQUID_ESIVAR_H */
+
index 1091925a11098550cb0d892199a328b606142d3d..d33d3cb715fc19f5cf93fa380b1e1152156fe9a5 100644 (file)
@@ -270,8 +270,8 @@ ESIVariableQuery::~ESIVariableQuery()
 }
 
 ESIVarState::ESIVarState(HttpHeader const *aHeader, char const *uri) :
-        output(NULL),
-        hdr(hoReply)
+    output(NULL),
+    hdr(hoReply)
 {
     memset(&flags, 0, sizeof(flags));
 
@@ -636,9 +636,9 @@ ESIVarState::doIt ()
 
 #define LOOKFORSTART 0
 ESIVariableProcessor::ESIVariableProcessor(char *aString, ESISegment::Pointer &aSegment, Trie &aTrie, ESIVarState *aState) :
-        string(aString), output (aSegment), variables(aTrie), varState (aState),
-        state(LOOKFORSTART), pos(0), var_pos(0), done_pos(0), found_subref (NULL),
-        found_default (NULL), currentFunction(NULL)
+    string(aString), output (aSegment), variables(aTrie), varState (aState),
+    state(LOOKFORSTART), pos(0), var_pos(0), done_pos(0), found_subref (NULL),
+    found_default (NULL), currentFunction(NULL)
 {
     len = strlen (string);
     vartype = varState->GetVar("",0);
index da82b8ebd55e8f448c9a2fb52206c4728d5bd1c6..757d97073045a2fe38e9ee96572a3d7b37955117 100644 (file)
@@ -171,3 +171,4 @@ private:
 };
 
 #endif /* SQUID_ESIVARSTATE_H */
+
index 9f70883df79d998883ee6a7010c93aad71a19674..3576fb27dc2ee90e3421ba8cc8b75f37b5dbd58a 100644 (file)
@@ -10,3 +10,4 @@
 #include "eui/Config.h"
 
 Eui::EuiConfig Eui::TheConfig;
+
index 84b28272e95bb7f18c5bd59e72f2180078e0495e..bb82ed1b6c35f89dc636757f167a1098c6c46437 100644 (file)
@@ -23,3 +23,4 @@ extern EuiConfig TheConfig;
 } // namespace Eui
 
 #endif /* SQUID_EUI_CONFIG_H */
+
index 3556c3c151b048ea67fe29a1a89bf6dce334523d..a09ebcbb2acd80e089ce3ab80fed412b3eabdd93 100644 (file)
@@ -101,7 +101,7 @@ Eui::Eui48::decode(const char *asc)
     if (sscanf(asc, "%x:%x:%x:%x:%x:%x", &a1, &a2, &a3, &a4, &a5, &a6) != 6) {
         debugs(28, DBG_CRITICAL, "Decode EUI-48: Invalid ethernet address '" << asc << "'");
         clear();
-        return false;          /* This is not valid address */
+        return false;       /* This is not valid address */
     }
 
     eui[0] = (u_char) a1;
@@ -521,3 +521,4 @@ Eui::Eui48::lookup(const Ip::Address &c)
 /* ==== END EUI LOOKUP SUPPORT =============================================== */
 
 #endif /* USE_SQUID_EUI */
+
index dad409a8cb5c71d0aac37d58994b678246f32820..f1fcc673e40f4a38b0678f50739730f1a5e7d696 100644 (file)
@@ -75,3 +75,4 @@ private:
 
 #endif /* USE_SQUID_EUI */
 #endif /* _SQUID_EUI_EUI48_H */
+
index 60167035831a692f0be6374b96b2d922bc22079d..654f36c42d6168f359d73127cb75d00b550ab0e5 100644 (file)
@@ -93,3 +93,4 @@ Eui::Eui64::lookupNdp(const Ip::Address &c)
 }
 
 #endif /* USE_SQUID_EUI */
+
index 3e97a3f1f1388b39b380f3f30d3ac33d9ffee1e8..029833f5028b5bdac03f9934a1249b6c2aca6297 100644 (file)
@@ -88,3 +88,4 @@ private:
 
 #endif /* USE_SQUID_EUI */
 #endif /* _SQUID_EUI_EUI64_H */
+
index b51e2e867010b52fa251008d9143561d8e3805e5..6f9c8f3b0881e580a65d901618bd3750a4c32613 100644 (file)
@@ -47,14 +47,14 @@ private:
 };
 
 EventDialer::EventDialer(EVH *aHandler, void *anArg, bool lockedArg):
-        theHandler(aHandler), theArg(anArg), isLockedArg(lockedArg)
+    theHandler(aHandler), theArg(anArg), isLockedArg(lockedArg)
 {
     if (isLockedArg)
         (void)cbdataReference(theArg);
 }
 
 EventDialer::EventDialer(const EventDialer &d):
-        theHandler(d.theHandler), theArg(d.theArg), isLockedArg(d.isLockedArg)
+    theHandler(d.theHandler), theArg(d.theArg), isLockedArg(d.isLockedArg)
 {
     if (isLockedArg)
         (void)cbdataReference(theArg);
@@ -90,8 +90,8 @@ EventDialer::print(std::ostream &os) const
 
 ev_entry::ev_entry(char const * aName, EVH * aFunction, void * aArgument, double evWhen,
                    int aWeight, bool haveArgument) : name(aName), func(aFunction),
-        arg(haveArgument ? cbdataReference(aArgument) : aArgument), when(evWhen), weight(aWeight),
-        cbdata(haveArgument)
+    arg(haveArgument ? cbdataReference(aArgument) : aArgument), when(evWhen), weight(aWeight),
+    cbdata(haveArgument)
 {
 }
 
@@ -284,7 +284,7 @@ EventScheduler::dump(StoreEntry * sentry)
     while (e != NULL) {
         storeAppendPrintf(sentry, "%-25s\t%0.3f sec\t%5d\t %s\n",
                           e->name, e->when ? e->when - current_dtime : 0, e->weight,
-                  (e->arg && e->cbdata) ? cbdataReferenceValid(e->arg) ? "yes" : "no" : "N/A");
+                          (e->arg && e->cbdata) ? cbdataReferenceValid(e->arg) ? "yes" : "no" : "N/A");
         e = e->next;
     }
 }
@@ -330,3 +330,4 @@ EventScheduler::schedule(const char *name, EVH * func, void *arg, double when, i
     event->next = *E;
     *E = event;
 }
+
index 4046a16dd33c78a8a5c064c402e5453ca19318c9..0e0897d93c74b4addc1064c078e41d86cf2b3145 100644 (file)
@@ -71,3 +71,4 @@ private:
 };
 
 #endif /* SQUID_EVENT_H */
+
index 93394647958cec5193eb9a5f198df0f30c7e4782..3668b483fcf2999a5026273614756865aa1765e6 100644 (file)
@@ -1285,10 +1285,10 @@ free_externalAclState(void *data)
  *
  *   user=      The users name (login)
  *   message=   Message describing the reason
- *   tag=      A string tag to be applied to the request that triggered the acl match.
- *             applies to both OK and ERR responses.
- *             Won't override existing request tags.
- *   log=      A string to be used in access logging
+ *   tag=   A string tag to be applied to the request that triggered the acl match.
+ *          applies to both OK and ERR responses.
+ *          Won't override existing request tags.
+ *   log=   A string to be used in access logging
  *
  * Other keywords may be added to the protocol later
  *
@@ -1588,3 +1588,4 @@ ACLExternal::isProxyAuth() const
     return false;
 #endif
 }
+
index 08ea87f817e4ddcbbc66aae6be585f1f313b21b7..d1fca623fe680a70733bc39b463a0e43d6834331 100644 (file)
@@ -14,3 +14,4 @@ void fatalf(const char *fmt,...) PRINTF_FORMAT_ARG1;
 void fatal_dump(const char *message);
 
 #endif /* SQUID_FATAL_H */
+
index 96e37ae39ab6732fecae6e7789bc1d6b80ffa69d..069a063c60338e86f80adc4d0e9322f74d213582 100644 (file)
--- a/src/fd.cc
+++ b/src/fd.cc
@@ -351,3 +351,4 @@ fdAdjustReserved(void)
            " due to failures (" << (Squid_MaxFD - newReserve) << "/" << Squid_MaxFD << " file descriptors available)");
     RESERVED_FD = newReserve;
 }
+
index fcefa0ecb5bf05ffc433959990e327d00c5c18e1..09d9c2d3e5f0c93db54fd3e4fea580cf6bd67ffb 100644 (file)
--- a/src/fd.h
+++ b/src/fd.h
@@ -22,3 +22,4 @@ int default_read_method(int, char *, int);
 int default_write_method(int, const char *, int);
 
 #endif /* SQUID_FD_H_ */
+
index fd3c2c0610f163511a572f0fc8e22d034be1ce20..a99fa3b8c6c34c26c3f8033a0ce5f58f7b3dba3f 100644 (file)
@@ -103,3 +103,4 @@ fde::noteUse()
 {
     ++ pconn.uses;
 }
+
index d202e4f137ebafed4bdb62df2238f0a844f766cb..80a2f481cb1fca19c57cecff59e1d8aee17436aa 100644 (file)
--- a/src/fde.h
+++ b/src/fde.h
@@ -181,3 +181,4 @@ int fdNFree(void);
 #define FD_WRITE_METHOD(fd, buf, len) (*fd_table[fd].write_method)(fd, buf, len)
 
 #endif /* SQUID_FDE_H */
+
index e37a572c38df77d9977bef6fadb4ae45438a0176..52a3b4ab3715cb940f5ec3f14096a2f71cfb42be 100644 (file)
@@ -33,8 +33,8 @@
 #define FM_INITIAL_NUMBER (1<<14)
 
 FileMap::FileMap() :
-        capacity_(FM_INITIAL_NUMBER), usedSlots_(0),
-        nwords(capacity_ >> LONG_BIT_SHIFT)
+    capacity_(FM_INITIAL_NUMBER), usedSlots_(0),
+    nwords(capacity_ >> LONG_BIT_SHIFT)
 {
     debugs(8, 3, HERE << "creating space for " << capacity_ << " files");
     debugs(8, 5, "--> " << nwords << " words of " << sizeof(*bitmap) << " bytes each");
@@ -47,7 +47,7 @@ FileMap::grow()
     int old_sz = nwords * sizeof(*bitmap);
     void *old_map = bitmap;
     capacity_ <<= 1;
-    assert(capacity_ <= (1 << 24));    /* swap_filen is 25 bits, signed */
+    assert(capacity_ <= (1 << 24)); /* swap_filen is 25 bits, signed */
     nwords = capacity_ >> LONG_BIT_SHIFT;
     debugs(8, 3, HERE << " creating space for " << capacity_ << " files");
     debugs(8, 5, "--> " << nwords << " words of " << sizeof(*bitmap) << " bytes each");
@@ -136,3 +136,4 @@ FileMap::~FileMap()
 {
     safe_free(bitmap);
 }
+
index 7fed3e421f9e3642ae342d3274ad3b9edb622354..06fdd9af972dd576e8c6f88d24fc1f9633058d37 100644 (file)
@@ -28,7 +28,7 @@ namespace Format
  * Bytecodes for the configureable format stuff
  */
 typedef enum {
-    LFT_NONE,                  /* dummy */
+    LFT_NONE,           /* dummy */
 
     /* arbitrary string between tokens */
     LFT_STRING,
@@ -220,7 +220,7 @@ typedef enum {
 #endif
 
     LFT_NOTE,
-    LFT_PERCENT,                       /* special string cases for escaped chars */
+    LFT_PERCENT,            /* special string cases for escaped chars */
 
     // TODO assign better bytecode names and Token strings for these
     LFT_EXT_ACL_USER_CERT_RAW,
@@ -246,3 +246,4 @@ enum Quoting {
 } // namespace Format
 
 #endif /* _SQUID_FMT_BYTECODE_H */
+
index bb67a7f949765ec1d96bc20bd200fc12408c5890..82081cf36828c4eb980dc520cbc0b99f546ab63a 100644 (file)
@@ -51,3 +51,4 @@ Format::FmtConfig::registerTokens(const String &nsName, TokenTableEntry const *t
     else
         debugs(0, DBG_CRITICAL, "BUG: format tokens for '" << nsName << "' missing!");
 }
+
index c71e36becdc4206598884347e30f35214f4dd33b..cdcdd61fee72d3f800544796406bcd360ad688a9 100644 (file)
@@ -82,3 +82,4 @@ extern FmtConfig TheConfig;
 #define dump_format(E,N,D) (D).dumpFormats((E),(N))
 
 #endif
+
index 82d743b0a8904ae1e7bf81dcc000b79253365dc0..904f658942f22bfa1b97a89cd4a0518a4e89b859 100644 (file)
@@ -32,8 +32,8 @@
 #define strOrNull(s) ((s)==NULL||(s)[0]=='\0'?NULL:(s))
 
 Format::Format::Format(const char *n) :
-        format(NULL),
-        next(NULL)
+    format(NULL),
+    next(NULL)
 {
     name = xstrdup(n);
 }
@@ -106,7 +106,7 @@ Format::Format::dump(StoreEntry * entry, const char *directiveName)
                 ByteCode_t type = t->type;
 
                 switch (type) {
-                    /* special cases */
+                /* special cases */
 
                 case LFT_STRING:
                     break;
@@ -315,7 +315,7 @@ Format::Format::assemble(MemBuf &mb, const AccessLogEntry::Pointer &al, int logS
     char tmp[1024];
     String sb;
 
-    for (Token *fmt = format; fmt != NULL; fmt = fmt->next) {  /* for each token */
+    for (Token *fmt = format; fmt != NULL; fmt = fmt->next) {   /* for each token */
         const char *out = NULL;
         int quote = 0;
         long int outint = 0;
@@ -510,7 +510,7 @@ Format::Format::assemble(MemBuf &mb, const AccessLogEntry::Pointer &al, int logS
         case LFT_TIME_START:
             outtv = al->cache.start_time;
             doSec = 1;
-        break;
+            break;
 
         case LFT_TIME_TO_HANDLE_REQUEST:
             outtv = al->cache.trTime;
@@ -840,11 +840,11 @@ Format::Format::assemble(MemBuf &mb, const AccessLogEntry::Pointer &al, int logS
             out = strOrNull(al->cache.extuser);
             break;
 
-            /* case LFT_USER_REALM: */
-            /* case LFT_USER_SCHEME: */
+        /* case LFT_USER_REALM: */
+        /* case LFT_USER_SCHEME: */
 
-            // the fmt->type can not be LFT_HTTP_SENT_STATUS_CODE_OLD_30
-            // but compiler complains if ommited
+        // the fmt->type can not be LFT_HTTP_SENT_STATUS_CODE_OLD_30
+        // but compiler complains if ommited
         case LFT_HTTP_SENT_STATUS_CODE_OLD_30:
         case LFT_HTTP_SENT_STATUS_CODE:
             outint = al->http.code;
@@ -861,11 +861,11 @@ Format::Format::assemble(MemBuf &mb, const AccessLogEntry::Pointer &al, int logS
                 doint = 1;
             }
             break;
-            /* case LFT_HTTP_STATUS:
-             *           out = statusline->text;
-             *     quote = 1;
-             *     break;
-             */
+        /* case LFT_HTTP_STATUS:
+         *           out = statusline->text;
+         *     quote = 1;
+         *     break;
+         */
         case LFT_HTTP_BODY_BYTES_READ:
             if (al->hier.bodyBytesRead >= 0) {
                 outoff = al->hier.bodyBytesRead;
@@ -1068,8 +1068,8 @@ Format::Format::assemble(MemBuf &mb, const AccessLogEntry::Pointer &al, int logS
             dooff =1;
             break;
 
-            /*case LFT_REQUEST_SIZE_BODY: */
-            /*case LFT_REQUEST_SIZE_BODY_NO_TE: */
+        /*case LFT_REQUEST_SIZE_BODY: */
+        /*case LFT_REQUEST_SIZE_BODY_NO_TE: */
 
         case LFT_ADAPTED_REPLY_SIZE_TOTAL:
             outoff = al->http.clientReplySz.messageTotal();
@@ -1095,14 +1095,14 @@ Format::Format::assemble(MemBuf &mb, const AccessLogEntry::Pointer &al, int logS
             doint = 1;
             break;
 
-            /*case LFT_REPLY_SIZE_BODY: */
-            /*case LFT_REPLY_SIZE_BODY_NO_TE: */
+        /*case LFT_REPLY_SIZE_BODY: */
+        /*case LFT_REPLY_SIZE_BODY_NO_TE: */
 
         case LFT_CLIENT_IO_SIZE_TOTAL:
             outint = al->http.clientRequestSz.messageTotal() + al->http.clientReplySz.messageTotal();
             doint = 1;
             break;
-            /*case LFT_SERVER_IO_SIZE_TOTAL: */
+        /*case LFT_SERVER_IO_SIZE_TOTAL: */
 
         case LFT_TAG:
             if (al->request)
@@ -1217,10 +1217,10 @@ Format::Format::assemble(MemBuf &mb, const AccessLogEntry::Pointer &al, int logS
             out = "%";
             break;
 
-            // XXX: external_acl_type format tokens which are not output by logformat.
-            // They are listed here because the switch requires
-            // every ByteCode_t to be explicitly enumerated.
-            // But do not output due to lack of access to the values.
+        // XXX: external_acl_type format tokens which are not output by logformat.
+        // They are listed here because the switch requires
+        // every ByteCode_t to be explicitly enumerated.
+        // But do not output due to lack of access to the values.
         case LFT_EXT_ACL_USER_CERT_RAW:
         case LFT_EXT_ACL_USER_CERTCHAIN_RAW:
         case LFT_EXT_ACL_USER_CERT:
@@ -1325,3 +1325,4 @@ Format::Format::assemble(MemBuf &mb, const AccessLogEntry::Pointer &al, int logS
             safe_free(out);
     }
 }
+
index ad818281a70d72389c037bde68341be581dee882..60ce32116607fdf2f32ffdd5687b1757aff92468 100644 (file)
@@ -61,3 +61,4 @@ public:
 } // namespace Format
 
 #endif /* _SQUID_FORMAT_FORMAT_H */
+
index 35e6e1c707ba6c3c6882eda44212c6e152c92cd8..54add3c4492eb9c1426fcaae8adf7ba27045f221 100644 (file)
@@ -121,3 +121,4 @@ Format::QuoteMimeBlob(const char *header)
     *buf_cursor = '\0';
     return buf;
 }
+
index f1630671f30b2dd156917dd3720722c028c9fd8d..a8be744dbc9e7308c2ac656a3ea0289bf01a37ee 100644 (file)
@@ -25,3 +25,4 @@ char *QuoteMimeBlob(const char *header);
 }; // namespace Format
 
 #endif /* _SQUID_FORMAT_QUOTING_H */
+
index afe6126239d2672d8907e5def2d72146a437effc..c016b479bfca378222979ecc58eaebac25004c4f 100644 (file)
@@ -39,7 +39,7 @@ static TokenTableEntry TokenTable1C[] = {
 
     {"%", LFT_PERCENT},
 
-    {NULL, LFT_NONE}           /* this must be last */
+    {NULL, LFT_NONE}        /* this must be last */
 };
 
 /// 2-char tokens
@@ -97,7 +97,7 @@ static TokenTableEntry TokenTable2C[] = {
     {">rv", LFT_CLIENT_REQ_VERSION},
 
     {"rm", LFT_REQUEST_METHOD},
-    {"ru", LFT_REQUEST_URI},   /* doesn't include the query-string */
+    {"ru", LFT_REQUEST_URI},    /* doesn't include the query-string */
     {"rp", LFT_REQUEST_URLPATH_OLD_31},
     /* { "rq", LFT_REQUEST_QUERY }, * /     / * the query-string, INCLUDING the leading ? */
     {"rv", LFT_REQUEST_VERSION},
@@ -131,7 +131,7 @@ static TokenTableEntry TokenTable2C[] = {
     {"ea", LFT_EXT_LOG},
     {"sn", LFT_SEQUENCE_NUMBER},
 
-    {NULL, LFT_NONE}           /* this must be last */
+    {NULL, LFT_NONE}        /* this must be last */
 };
 
 /// Miscellaneous >2 byte tokens
@@ -145,7 +145,7 @@ static TokenTableEntry TokenTableMisc[] = {
     {"err_detail", LFT_SQUID_ERROR_DETAIL },
     {"note", LFT_NOTE },
     {"credentials", LFT_CREDENTIALS},
-    {NULL, LFT_NONE}           /* this must be last */
+    {NULL, LFT_NONE}        /* this must be last */
 };
 
 #if USE_ADAPTATION
@@ -571,15 +571,15 @@ Format::Token::parse(const char *def, Quoting *quoting)
 }
 
 Format::Token::Token() : type(LFT_NONE),
-        label(NULL),
-        widthMin(-1),
-        widthMax(-1),
-        quote(LOG_QUOTE_NONE),
-        left(false),
-        space(false),
-        zero(false),
-        divisor(1),
-        next(NULL)
+    label(NULL),
+    widthMin(-1),
+    widthMax(-1),
+    quote(LOG_QUOTE_NONE),
+    left(false),
+    space(false),
+    zero(false),
+    divisor(1),
+    next(NULL)
 {
     data.string = NULL;
     data.header.header = NULL;
index b38b25e8da8e218fff2c8ee9f72862b39bda9f25..b14e520f84850fc7f4f5d0113d5f28ec63f10c86 100644 (file)
@@ -65,7 +65,7 @@ public:
     bool space;
     bool zero;
     int divisor;    // class invariant: MUST NOT be zero.
-    Token *next;       /* todo: move from linked list to array */
+    Token *next;    /* todo: move from linked list to array */
 
 private:
     const char *scanForToken(TokenTableEntry const table[], const char *cur);
@@ -74,3 +74,4 @@ private:
 } // namespace Format
 
 #endif /* _SQUID_FORMAT_TOKEN_H */
+
index ebddc016ef37d9dcc930ba7d1a35af9a8bc9d535..c30da86b6de23a5c576d230cf6ce49bec1326b84 100644 (file)
@@ -44,3 +44,4 @@ public:
 } // namespace Format
 
 #endif /* _SQUID_FORMAT_TOKENTABLEENTRY_H */
+
index 45550ae4fcdf063a57b021e746a2c7d6c1a6f619..dc57ea17f2ce3f31bde523fea915a23cec2cf72b 100644 (file)
@@ -79,7 +79,7 @@
 class fqdncache_entry
 {
 public:
-    hash_link hash;            /* must be first */
+    hash_link hash;     /* must be first */
     time_t lastref;
     time_t expires;
     unsigned char name_count;
@@ -168,7 +168,7 @@ fqdncacheRelease(fqdncache_entry * f)
 
 /**
  \ingroup FQDNCacheInternal
- \param name   FQDN hash string.
+ \param name    FQDN hash string.
  \retval Match for given name
  */
 static fqdncache_entry *
@@ -239,8 +239,8 @@ purge_entries_fromhosts(void)
     fqdncache_entry *t;
 
     while (m) {
-        if (i != NULL) {       /* need to delay deletion */
-            fqdncacheRelease(i);       /* we just override locks */
+        if (i != NULL) {    /* need to delay deletion */
+            fqdncacheRelease(i);    /* we just override locks */
             i = NULL;
         }
 
@@ -408,12 +408,12 @@ fqdncacheHandleReply(void *data, const rfc1035_rr * answers, int na, const char
 /**
  \ingroup FQDNCacheAPI
  *
- \param addr           IP address of domain to resolve.
- \param handler                A pointer to the function to be called when
- *                     the reply from the FQDN cache
- *                     (or the DNS if the FQDN cache misses)
- \param handlerData    Information that is passed to the handler
- *                     and does not affect the FQDN cache.
+ \param addr        IP address of domain to resolve.
+ \param handler     A pointer to the function to be called when
+ *          the reply from the FQDN cache
+ *          (or the DNS if the FQDN cache misses)
+ \param handlerData Information that is passed to the handler
+ *          and does not affect the FQDN cache.
  */
 void
 fqdncache_nbgethostbyaddr(const Ip::Address &addr, FQDNH * handler, void *handlerData)
@@ -478,8 +478,8 @@ fqdncache_nbgethostbyaddr(const Ip::Address &addr, FQDNH * handler, void *handle
  * DNS, unless this is requested, by setting the flags
  * to FQDN_LOOKUP_IF_MISS.
  *
- \param addr   address of the FQDN being resolved
- \param flags  values are NULL or FQDN_LOOKUP_IF_MISS. default is NULL.
+ \param addr    address of the FQDN being resolved
+ \param flags   values are NULL or FQDN_LOOKUP_IF_MISS. default is NULL.
  *
  */
 const char *
@@ -653,8 +653,8 @@ fqdncache_restart(void)
  * The worldist is to be managed by the caller,
  * including pointed-to strings
  *
- \param addr           FQDN name to be added.
- \param hostnames      ??
+ \param addr        FQDN name to be added.
+ \param hostnames   ??
  */
 void
 fqdncacheAddEntryFromHosts(char *addr, wordlist * hostnames)
@@ -686,7 +686,7 @@ fqdncacheAddEntryFromHosts(char *addr, wordlist * hostnames)
     }
 
     fce->name_count = j;
-    fce->names[j] = NULL;      /* it's safe */
+    fce->names[j] = NULL;   /* it's safe */
     fce->flags.fromhosts = true;
     fqdncacheAddEntry(fce);
     fqdncacheLockEntry(fce);
@@ -804,3 +804,4 @@ snmp_netFqdnFn(variable_list * Var, snint * ErrP)
 }
 
 #endif /*SQUID_SNMP */
+
index ccbef21f53852495f034bcb3c48cbb3333c87751..4081736f937021c8f4d0cc90494ab95c391056aa 100644 (file)
@@ -28,3 +28,4 @@ const char *fqdncache_gethostbyaddr(const Ip::Address &, int flags);
 void fqdncache_nbgethostbyaddr(const Ip::Address &, FQDNH *, void *);
 
 #endif /* SQUID_FQDNCACHE_H_ */
+
index 36d1064bd46bcad18f1400d30a0959ac76c5d689..bf8c0dc260bf8507cef58d1dadbbd270ddfed42b 100644 (file)
@@ -70,3 +70,4 @@ void Fs::Clean()
 #endif
 
 }
+
index 35ad788785489d55ef9da18600bac5dea3bdef04..62f00a8e6755b2079990ee091e0a5bdaae40e9df 100644 (file)
@@ -18,3 +18,4 @@ void Clean();
 } // namespace Fs
 
 #endif /* SQUID_FS_MODULE_H */
+
index f1cd5a388fcb27199dfb2bd577f1772ba32e796f..5c70428e37cbf07875d166b154f12672aac359b7 100644 (file)
@@ -20,3 +20,4 @@
  */
 
 /* Unused variable: */
+
index 9727227c986b3b42542253fd9a3da3966712223e..23893d7ac6eb8d348455a384e279d72eab0bf25d 100644 (file)
@@ -21,3 +21,4 @@
 
 /* Unused variable: */
 Fs::Ufs::StoreFSufs<Fs::Ufs::UFSSwapDir> *DiskdInstance_foo = NULL;
+
index 8598e910f21bd7f322c51e2d5091ebc8065d4cb3..ace61a1ee519265bb752a54b0c3742d6b74b6940 100644 (file)
@@ -15,3 +15,4 @@ Rock::DbCellHeader::DbCellHeader()
 {
     memset(this, 0, sizeof(*this));
 }
+
index 81a43c2cead3556d6e476156ef30c4777ce66d56..f23e827adcd364bd0286cc9278f26dcb1acf7196 100644 (file)
@@ -49,3 +49,4 @@ public:
 } // namespace Rock
 
 #endif /* SQUID_FS_ROCK_DB_CELL_H */
+
index f3d53181fc1b4e494a0e16384e8310baa6fe6867..d34911f594e6f1852690797d051c9dd4ed19836e 100644 (file)
@@ -39,3 +39,4 @@ class DbCellHeader;
 }
 
 #endif /* SQUID_FS_ROCK_FORWARD_H */
+
index c22ec6b26205c04fa76ead3e77d781dfe55fc0d3..3fb0427a4b4b3c9fa4dbb59bf6869813bd01b45d 100644 (file)
@@ -16,17 +16,18 @@ CBDATA_NAMESPACED_CLASS_INIT(Rock, WriteRequest);
 
 Rock::ReadRequest::ReadRequest(const ::ReadRequest &base,
                                const IoState::Pointer &anSio):
-        ::ReadRequest(base),
-        sio(anSio)
+    ::ReadRequest(base),
+     sio(anSio)
 {
 }
 
 Rock::WriteRequest::WriteRequest(const ::WriteRequest &base,
                                  const IoState::Pointer &anSio):
-        ::WriteRequest(base),
-        sio(anSio),
-        sidCurrent(-1),
-        sidNext(-1),
-        eof(false)
+    ::WriteRequest(base),
+     sio(anSio),
+     sidCurrent(-1),
+     sidNext(-1),
+     eof(false)
 {
 }
+
index a5193e03fadf8b8499efe7f80269503036ff9f71..9f5257b0d842eee6f1c85c920bf4433438f0bca8 100644 (file)
@@ -48,3 +48,4 @@ public:
 } // namespace Rock
 
 #endif /* SQUID_FS_ROCK_IO_REQUESTS_H */
+
index e9a5f5494fb6537e0eb1a38fe5af9d1713564324..ee70acbae414c5e49cfb28856755928615bc1180 100644 (file)
@@ -27,13 +27,13 @@ Rock::IoState::IoState(Rock::SwapDir::Pointer &aDir,
                        StoreIOState::STFNCB *cbFile,
                        StoreIOState::STIOCB *cbIo,
                        void *data):
-        readableAnchor_(NULL),
-        writeableAnchor_(NULL),
-        sidCurrent(-1),
-        dir(aDir),
-        slotSize(dir->slotSize),
-        objOffset(0),
-        theBuf(dir->slotSize)
+    readableAnchor_(NULL),
+    writeableAnchor_(NULL),
+    sidCurrent(-1),
+    dir(aDir),
+    slotSize(dir->slotSize),
+    objOffset(0),
+    theBuf(dir->slotSize)
 {
     e = anEntry;
     e->lock("rock I/O");
@@ -351,20 +351,20 @@ class StoreIOStateCb: public CallDialer
 {
 public:
     StoreIOStateCb(StoreIOState::STIOCB *cb, void *data, int err, const Rock::IoState::Pointer &anSio):
-            callback(NULL),
-            callback_data(NULL),
-            errflag(err),
-            sio(anSio) {
+        callback(NULL),
+        callback_data(NULL),
+        errflag(err),
+        sio(anSio) {
 
         callback = cb;
         callback_data = cbdataReference(data);
     }
 
     StoreIOStateCb(const StoreIOStateCb &cb):
-            callback(NULL),
-            callback_data(NULL),
-            errflag(cb.errflag),
-            sio(cb.sio) {
+        callback(NULL),
+        callback_data(NULL),
+        errflag(cb.errflag),
+        sio(cb.sio) {
 
         callback = cb.callback;
         callback_data = cbdataReference(cb.callback_data);
index be52e7ba1fe7727481fa10f3d236ad7628072464..4d18db032b7031b4cfd90b95e4b1b1b65e24a6ac 100644 (file)
@@ -77,3 +77,4 @@ private:
 } // namespace Rock
 
 #endif /* SQUID_FS_ROCK_IO_STATE_H */
+
index d10bf7909000d62dbd01e0e9bed090c9a60eec2e..d1265f4e437a7881333a87f810c2eb7ced28b00d 100644 (file)
@@ -81,7 +81,7 @@ class LoadingEntry
 {
 public:
     LoadingEntry(): size(0), version(0), state(leEmpty), anchored(0),
-            mapped(0), freed(0), more(-1) {}
+        mapped(0), freed(0), more(-1) {}
 
     /* store entry-level information indexed by sfileno */
     uint64_t size; ///< payload seen so far
@@ -102,16 +102,16 @@ public:
 } /* namespace Rock */
 
 Rock::Rebuild::Rebuild(SwapDir *dir): AsyncJob("Rock::Rebuild"),
-        sd(dir),
-        entries(NULL),
-        dbSize(0),
-        dbSlotSize(0),
-        dbSlotLimit(0),
-        dbEntryLimit(0),
-        fd(-1),
-        dbOffset(0),
-        loadingPos(0),
-        validationPos(0)
+    sd(dir),
+    entries(NULL),
+    dbSize(0),
+    dbSlotSize(0),
+    dbSlotLimit(0),
+    dbEntryLimit(0),
+    fd(-1),
+    dbOffset(0),
+    loadingPos(0),
+    validationPos(0)
 {
     assert(sd);
     memset(&counts, 0, sizeof(counts));
@@ -687,3 +687,4 @@ Rock::Rebuild::useNewSlot(const SlotId slotId, const DbCellHeader &header)
     }
     }
 }
+
index 30103bd743a20d295e6f76d24e1ddfcf2e9c6305..c7c516f88cedbf454edd9f07898bac57e4fd037f 100644 (file)
@@ -83,3 +83,4 @@ private:
 } // namespace Rock
 
 #endif /* SQUID_FS_ROCK_REBUILD_H */
+
index b2584a4b67125daa278c61e28557cbdea0443e0a..2f7bdc8c4768def9f02d52562ff31eaa741ee653 100644 (file)
@@ -55,3 +55,4 @@ Rock::StoreFileSystem::Stats(StoreEntry *sentry)
 {
     assert(false); // XXX: implement
 }
+
index 6583e549fc0f095b4c43aba355a9175dff06b1ec..40f64ff4ed8f030ef565c75d08f00a926776e84f 100644 (file)
@@ -41,3 +41,4 @@ private:
 } // namespace Rock
 
 #endif /* SQUID_FS_ROCK_FS_H */
+
index ef22b9e7ba2be58b2fbda230b166589ca00984fc..5871e0da0d6cd2100657a4b39fd53ca1e6c751b2 100644 (file)
@@ -39,8 +39,8 @@
 const int64_t Rock::SwapDir::HeaderSize = 16*1024;
 
 Rock::SwapDir::SwapDir(): ::SwapDir("rock"),
-        slotSize(HeaderSize), filePath(NULL), map(NULL), io(NULL),
-        waitingForPage(NULL)
+    slotSize(HeaderSize), filePath(NULL), map(NULL), io(NULL),
+    waitingForPage(NULL)
 {
 }
 
@@ -95,7 +95,7 @@ Rock::SwapDir::anchorCollapsed(StoreEntry &collapsed, bool &inSync)
 
     sfileno filen;
     const Ipc::StoreMapAnchor *const slot = map->openForReading(
-                                                reinterpret_cast<cache_key*>(collapsed.key), filen);
+            reinterpret_cast<cache_key*>(collapsed.key), filen);
     if (!slot)
         return false;
 
@@ -1067,3 +1067,4 @@ Rock::SwapDirRr::~SwapDirRr()
         delete freeSlotsOwners[i];
     }
 }
+
index 1eefe5e25c578862c860438d0b6ec44286d1ff36..665c4e2e7c849b331f403164537bfb765726b3ca 100644 (file)
@@ -160,3 +160,4 @@ private:
 } // namespace Rock
 
 #endif /* SQUID_FS_ROCK_SWAP_DIR_H */
+
index 54efaec20feff7e2a33f0e38c31cbde0b69551ed..fa84c1bc82a3c5640dd6b725f2b8b3701616abc1 100644 (file)
@@ -29,7 +29,7 @@
 CBDATA_NAMESPACED_CLASS_INIT(Fs::Ufs,RebuildState);
 
 Fs::Ufs::RebuildState::RebuildState(RefCount<UFSSwapDir> aSwapDir) :
-        sd (aSwapDir), LogParser(NULL), e(NULL), fromLog(true), _done (false)
+    sd (aSwapDir), LogParser(NULL), e(NULL), fromLog(true), _done (false)
 {
     /*
      * If the swap.state file exists in the cache_dir, then
@@ -541,3 +541,4 @@ Fs::Ufs::RebuildState::currentItem()
 {
     return currentEntry();
 }
+
index 4be3edc0c758f6f52094960a22075a7864804f4a..1f5201cd97bc27b574ef6f8393f13f6c106be9d7 100644 (file)
@@ -79,3 +79,4 @@ private:
 } /* namespace Fs */
 
 #endif /* SQUID_FS_UFS_REBUILDSTATE_H */
+
index 3e6ab8390471b13dce0d5cf04ce98b9bb90b41c0..4ac1e7a79873cbf5190ccb057cffd75e848ce653 100644 (file)
@@ -16,3 +16,4 @@
 
 /* Unused variable: */
 Fs::Ufs::StoreFSufs<Fs::Ufs::UFSSwapDir> *UfsInstance_foo = NULL;
+
index 5873d03deaaf6be7793c3a7ce0867150a38ec8c5..cf15e072456db5a93240ce1628282e5232335a1c 100644 (file)
@@ -10,7 +10,7 @@
 #define SQUID_STOREFSUFS_H
 
 /**
- \defgroup UFS UFS Storage Filesystem
+ \defgroup UFS  UFS Storage Filesystem
  \ingroup FileSystems
  */
 
@@ -92,3 +92,4 @@ StoreFSufs<C>::setup()
 } /* namespace Fs */
 
 #endif /* SQUID_STOREFSUFS_H */
+
index ec01cfbb08d0e427c1932c41e1c79b0701540c5c..503f1a53f9af13629dad066a02712056555e30af 100644 (file)
@@ -16,8 +16,8 @@
 CBDATA_NAMESPACED_CLASS_INIT(Fs::Ufs,StoreSearchUFS);
 
 Fs::Ufs::StoreSearchUFS::StoreSearchUFS(RefCount<UFSSwapDir> aSwapDir) :
-        sd(aSwapDir), walker (sd->repl->WalkInit(sd->repl)),
-        current (NULL), _done (false)
+    sd(aSwapDir), walker (sd->repl->WalkInit(sd->repl)),
+    current (NULL), _done (false)
 {}
 
 Fs::Ufs::StoreSearchUFS::~StoreSearchUFS()
@@ -66,3 +66,4 @@ Fs::Ufs::StoreSearchUFS::currentItem()
 {
     return current;
 }
+
index fa9df4739f034b3a02283b19c61de08d91631db9..caeef28f48683bd5cba608f229cf19bc7c539689 100644 (file)
@@ -60,3 +60,4 @@ private:
 } //namespace Ufs
 } //namespace Fs
 #endif /* SQUID_FS_UFS_STORESEARCHUFS_H */
+
index e7fa5d6ab019429264db2986de16bae640ffc203..e51133a7da2b876df236eb24fc59bcf33ae15187 100644 (file)
@@ -316,7 +316,7 @@ Fs::Ufs::UFSStoreState::doCloseCallback(int errflag)
      * us that the file has been closed.  This must be the last line,
      * as theFile may be the only object holding us in memory.
      */
-    theFile = NULL;    // refcounted
+    theFile = NULL; // refcounted
 }
 
 /* ============= THE REAL UFS CODE ================ */
@@ -438,7 +438,7 @@ Fs::Ufs::UFSStoreState::drainWriteQueue()
 
 /*
  * DPW 2006-05-24
- * This blows. DiskThreadsDiskFile::close() won't actually do the close
+ * This blows.  DiskThreadsDiskFile::close() won't actually do the close
  * if ioInProgress() is true.  So we have to check it here.  Maybe someday
  * DiskThreadsDiskFile::close() will be modified to have a return value,
  * or will remember to do the close for us.
index 69c5c9eb507bd37dd321823049030f016c8cced1..03ffd1a7012a1348b973a7bf4aa2667a7a6b454d 100644 (file)
@@ -104,3 +104,4 @@ private:
 } //namespace Fs
 
 #endif /* SQUID_FS_UFS_UFSSTORESTATE_H */
+
index 29e52fab1ba1a57ca422236646ce4e02dd9e4b73..d2db4cbe46d4943e6443e0cee64cff1bd8285bb4 100644 (file)
@@ -160,3 +160,4 @@ Fs::Ufs::UFSStrategy::statfs(StoreEntry & sentry)const
 {
     io->statfs(sentry);
 }
+
index fd3a9b63f85b1a40e6475f41fb488c2373e8c59a..be5a11e0a3c8e72cdd275a3d5a5e91a19d3d24a7 100644 (file)
@@ -67,3 +67,4 @@ private:
 } //namespace Fs
 
 #endif /* SQUID_FS_UFS_UFSSTRATEGY_H */
+
index 52179c90a99b8162b9f3584e5ca71959b848aac2..0d3e3f9ca94d9f1f84d220b390de566913807614 100644 (file)
@@ -62,8 +62,8 @@ public:
 };
 
 UFSCleanLog::UFSCleanLog(SwapDir *aSwapDir) :
-        cur(NULL), newLog(NULL), cln(NULL), outbuf(NULL),
-        outbuf_offset(0), fd(-1),walker(NULL), sd(aSwapDir)
+    cur(NULL), newLog(NULL), cln(NULL), outbuf(NULL),
+    outbuf_offset(0), fd(-1),walker(NULL), sd(aSwapDir)
 {}
 
 const StoreEntry *
@@ -305,18 +305,18 @@ Fs::Ufs::UFSSwapDir::create()
 }
 
 Fs::Ufs::UFSSwapDir::UFSSwapDir(char const *aType, const char *anIOType) :
-        SwapDir(aType),
-        IO(NULL),
-        fsdata(NULL),
-        map(new FileMap()),
-        suggest(0),
-        l1(16),
-        l2(256),
-        swaplog_fd(-1),
-        currentIOOptions(new ConfigOptionVector()),
-        ioType(xstrdup(anIOType)),
-        cur_size(0),
-        n_disk_objects(0)
+    SwapDir(aType),
+    IO(NULL),
+    fsdata(NULL),
+    map(new FileMap()),
+    suggest(0),
+    l1(16),
+    l2(256),
+    swaplog_fd(-1),
+    currentIOOptions(new ConfigOptionVector()),
+    ioType(xstrdup(anIOType)),
+    cur_size(0),
+    n_disk_objects(0)
 {
     /* modulename is only set to disk modules that are built, by configure,
      * so the Find call should never return NULL here.
@@ -1326,3 +1326,4 @@ Fs::Ufs::UFSSwapDir::DirClean(int swap_index)
     debugs(36, 3, HERE << "Cleaned " << k << " unused files from " << p1);
     return k;
 }
+
index e910a78c292d5adfeeac7d0c3af88c5c149042c7..f322ff21e95ac87f1cb8869d3574f1267b7789b8 100644 (file)
@@ -169,3 +169,4 @@ private:
 } //namespace Ufs
 } //namespace Fs
 #endif /* SQUID_FS_UFS_UFSSWAPDIR_H */
+
index 2bf42f59ef30fc74530135ae9083195f066c480b..9c85df1b413abb2ffb06ef3400d1e3ee0af4b34d 100644 (file)
@@ -181,3 +181,4 @@ Fs::Ufs::UFSSwapLogParser::SwapLogEntries()
 
     return 0;
 }
+
index cb9a16ef2cead2c5f58f44214682d89390537136..aa06f1bec9fdf19d6387b0f49861b90d8687b40a 100644 (file)
@@ -42,3 +42,4 @@ public:
 } //namespace Ufs
 } //namespace Fs
 #endif /* SQUID_FS_UFS_UFSSWAPLOGPARSER_H */
+
index 653b745dc4313c0925664a4925ab7ad30f71fa1a..454bc6791a7c4b2dfe0cb748509b7c48f54f8086 100644 (file)
@@ -191,3 +191,4 @@ Ftp::cmdUser()
     static const SBuf cmd("USER");
     return cmd;
 }
+
index b9fdf946760653c698fc286deb7fdb982c97fd10..ad7cf0f602319b4814bcfbbf5b220d025f02d7c9 100644 (file)
@@ -53,3 +53,4 @@ const SBuf &cmdUser();
 } // namespace Ftp
 
 #endif /* SQUID_FTP_ELEMENTS_H */
+
index 7c824d8d3e313a907759d2bc6a7d0eb5ede8ef79..27909b2f22e780d0f57f47a55836e83af2c16f70 100644 (file)
@@ -112,3 +112,4 @@ Ftp::UnescapeDoubleQuoted(const char *quotedPath)
     }
     return path.content();
 }
+
index 9a23332d25e23a398a2167f145ad7a15e6a1cd01..cb50346c820409bbf03f11275da5a75a77abb5f5 100644 (file)
@@ -27,3 +27,4 @@ const char *UnescapeDoubleQuoted(const char *quotedPath);
 } // namespace Ftp
 
 #endif /* SQUID_FTP_PARSING_H */
+
index 00ac24fee5605196b74235668524241d051d0504..d588a79b28b7140b7ec0963cffde507a3f97d75f 100644 (file)
@@ -17,7 +17,7 @@
 #include "rfc2181.h"
 #include "SBuf.h"
 
-extern char *ConfigFile;       /* NULL */
+extern char *ConfigFile;    /* NULL */
 extern char *IcpOpcodeStr[];
 extern char tmp_error_buf[ERROR_BUF_SZ];
 extern char ThisCache[RFC2181_MAXHOSTNAMELEN << 1];
@@ -25,12 +25,12 @@ extern char ThisCache2[RFC2181_MAXHOSTNAMELEN << 1];
 extern char config_input_line[BUFSIZ];
 /// During parsing, the name of the current squid.conf directive being parsed.
 extern const char *cfg_directive; /* NULL */
-extern const char *DefaultConfigFile;  /* DEFAULT_CONFIG_FILE */
-extern const char *cfg_filename;       /* NULL */
-extern const char *dash_str;   /* "-" */
-extern const char *null_string;        /* "" */
-extern const char *version_string;     /* VERSION */
-extern const char *appname_string;     /* PACKAGE */
+extern const char *DefaultConfigFile;   /* DEFAULT_CONFIG_FILE */
+extern const char *cfg_filename;    /* NULL */
+extern const char *dash_str;    /* "-" */
+extern const char *null_string; /* "" */
+extern const char *version_string;  /* VERSION */
+extern const char *appname_string;  /* PACKAGE */
 extern char const *visible_appname_string; /* NULL */
 extern const char *fdTypeStr[];
 extern const char *hier_strings[];
@@ -38,72 +38,72 @@ extern const char *memStatusStr[];
 extern const char *pingStatusStr[];
 extern const char *storeStatusStr[];
 extern const char *swapStatusStr[];
-extern int Biggest_FD;         /* -1 */
-extern int Number_FD;          /* 0 */
-extern int Opening_FD;         /* 0 */
-extern int NDnsServersAlloc;   /* 0 */
+extern int Biggest_FD;      /* -1 */
+extern int Number_FD;       /* 0 */
+extern int Opening_FD;      /* 0 */
+extern int NDnsServersAlloc;    /* 0 */
 extern int RESERVED_FD;
-extern int Squid_MaxFD;                /* SQUID_MAXFD */
-extern int config_lineno;      /* 0 */
-extern int opt_reuseaddr;      /* 1 */
-extern int neighbors_do_private_keys;  /* 1 */
-extern int opt_catch_signals;  /* 1 */
-extern int opt_foreground_rebuild;     /* 0 */
-extern char *opt_forwarded_for;        /* NULL */
-extern int opt_reload_hit_only;        /* 0 */
+extern int Squid_MaxFD;     /* SQUID_MAXFD */
+extern int config_lineno;   /* 0 */
+extern int opt_reuseaddr;   /* 1 */
+extern int neighbors_do_private_keys;   /* 1 */
+extern int opt_catch_signals;   /* 1 */
+extern int opt_foreground_rebuild;  /* 0 */
+extern char *opt_forwarded_for; /* NULL */
+extern int opt_reload_hit_only; /* 0 */
 
-extern int opt_udp_hit_obj;    /* 0 */
-extern int opt_create_swap_dirs;       /* 0 */
-extern int opt_store_doublecheck;      /* 0 */
-extern int syslog_enable;      /* 0 */
-extern int DnsSocketA;         /* -1 */
-extern int DnsSocketB;         /* -1 */
-extern int n_disk_objects;     /* 0 */
+extern int opt_udp_hit_obj; /* 0 */
+extern int opt_create_swap_dirs;    /* 0 */
+extern int opt_store_doublecheck;   /* 0 */
+extern int syslog_enable;   /* 0 */
+extern int DnsSocketA;      /* -1 */
+extern int DnsSocketB;      /* -1 */
+extern int n_disk_objects;  /* 0 */
 extern IoStats IOStats;
 
-extern AclDenyInfoList *DenyInfoList;  /* NULL */
+extern AclDenyInfoList *DenyInfoList;   /* NULL */
 
 extern struct timeval squid_start;
-extern int starting_up;        /* 1 */
-extern int shutting_down;      /* 0 */
-extern int reconfiguring;      /* 0 */
-extern time_t hit_only_mode_until;     /* 0 */
-extern double request_failure_ratio;   /* 0.0 */
-extern int store_hash_buckets; /* 0 */
-extern hash_table *store_table;        /* NULL */
-extern int hot_obj_count;      /* 0 */
-extern int CacheDigestHashFuncCount;   /* 4 */
-extern CacheDigest *store_digest;      /* NULL */
-extern const char *StoreDigestFileName;                /* "store_digest" */
-extern const char *StoreDigestMimeStr; /* "application/cache-digest" */
+extern int starting_up; /* 1 */
+extern int shutting_down;   /* 0 */
+extern int reconfiguring;   /* 0 */
+extern time_t hit_only_mode_until;  /* 0 */
+extern double request_failure_ratio;    /* 0.0 */
+extern int store_hash_buckets;  /* 0 */
+extern hash_table *store_table; /* NULL */
+extern int hot_obj_count;   /* 0 */
+extern int CacheDigestHashFuncCount;    /* 4 */
+extern CacheDigest *store_digest;   /* NULL */
+extern const char *StoreDigestFileName;     /* "store_digest" */
+extern const char *StoreDigestMimeStr;  /* "application/cache-digest" */
 
-extern const char *MultipartMsgBoundaryStr;    /* "Unique-Squid-Separator" */
+extern const char *MultipartMsgBoundaryStr; /* "Unique-Squid-Separator" */
 #if USE_HTTP_VIOLATIONS
-extern int refresh_nocache_hack;       /* 0 */
+extern int refresh_nocache_hack;    /* 0 */
 #endif
 
-extern int store_open_disk_fd; /* 0 */
+extern int store_open_disk_fd;  /* 0 */
 extern const char *SwapDirType[];
-extern int store_swap_low;     /* 0 */
-extern int store_swap_high;    /* 0 */
-extern size_t store_pages_max; /* 0 */
-extern int64_t store_maxobjsize;       /* 0 */
-extern hash_table *proxy_auth_username_cache;  /* NULL */
+extern int store_swap_low;  /* 0 */
+extern int store_swap_high; /* 0 */
+extern size_t store_pages_max;  /* 0 */
+extern int64_t store_maxobjsize;    /* 0 */
+extern hash_table *proxy_auth_username_cache;   /* NULL */
 extern int incoming_sockets_accepted;
 #if _SQUID_WINDOWS_
-extern unsigned int WIN32_Socks_initialized;   /* 0 */
+extern unsigned int WIN32_Socks_initialized;    /* 0 */
 #endif
 #if _SQUID_WINDOWS_
-extern unsigned int WIN32_OS_version;  /* 0 */
+extern unsigned int WIN32_OS_version;   /* 0 */
 extern char *WIN32_OS_string;           /* NULL */
 extern char *WIN32_Command_Line;        /* NULL */
 extern char *WIN32_Service_Command_Line; /* NULL */
 extern unsigned int WIN32_run_mode;     /* _WIN_SQUID_RUN_MODE_INTERACTIVE */
 #endif
 
-extern int ssl_ex_index_server;        /* -1 */
+extern int ssl_ex_index_server; /* -1 */
 extern int ssl_ctx_ex_index_dont_verify_domain; /* -1 */
-extern int ssl_ex_index_cert_error_check;      /* -1 */
+extern int ssl_ex_index_cert_error_check;   /* -1 */
 extern int ssl_ex_index_ssl_error_detail;      /* -1 */
 extern int ssl_ex_index_ssl_peeked_cert;      /* -1 */
 extern int ssl_ex_index_ssl_errors;   /* -1 */
@@ -111,7 +111,7 @@ extern int ssl_ex_index_ssl_cert_chain;  /* -1 */
 extern int ssl_ex_index_ssl_validation_counter;  /* -1 */
 
 extern const char *external_acl_message;      /* NULL */
-extern int opt_send_signal;    /* -1 */
+extern int opt_send_signal; /* -1 */
 extern int opt_no_daemon; /* 0 */
 extern int opt_parse_cfg_only; /* 0 */
 
@@ -120,3 +120,4 @@ extern int opt_parse_cfg_only; /* 0 */
 extern int KidIdentifier; /* 0 */
 
 #endif /* SQUID_GLOBALS_H */
+
index 17d9e129964d458aea3a850b75fa70be45cf1f53..0043260543ece8758926cd2f9a279937f0d56f95 100644 (file)
@@ -117,7 +117,7 @@ public:
     char request[MAX_URL];
     int cso_recno;
     int len;
-    char *buf;                 /* pts to a 4k page */
+    char *buf;          /* pts to a 4k page */
     Comm::ConnectionPointer serverConn;
     FwdState::Pointer fwd;
     char replybuf[BUFSIZ];
@@ -278,9 +278,9 @@ gopher_request_parse(const HttpRequest * req, char *type_id, char *request)
 /**
  * Parse the request to determine whether it is cachable.
  *
- * \param req  Request data.
- * \retval 0   Not cachable.
- * \retval 1   Cachable.
+ * \param req   Request data.
+ * \retval 0    Not cachable.
+ * \retval 1    Cachable.
  */
 int
 gopherCachable(const HttpRequest * req)
@@ -493,22 +493,22 @@ gopherToHTML(GopherStateData * gopherState, char *inbuf, int len)
                         junk = strchr(host, TAB);
 
                         if (junk)
-                            *junk++ = 0;       /* Chop port */
+                            *junk++ = 0;    /* Chop port */
                         else {
                             junk = strchr(host, '\r');
 
                             if (junk)
-                                *junk++ = 0;   /* Chop port */
+                                *junk++ = 0;    /* Chop port */
                             else {
                                 junk = strchr(host, '\n');
 
                                 if (junk)
-                                    *junk++ = 0;       /* Chop port */
+                                    *junk++ = 0;    /* Chop port */
                             }
                         }
 
                         if ((port[1] == '0') && (!port[2]))
-                            port[0] = 0;       /* 0 means none */
+                            port[0] = 0;    /* 0 means none */
                     }
 
                     /* escape a selector here */
@@ -613,7 +613,7 @@ gopherToHTML(GopherStateData * gopherState, char *inbuf, int len)
             }
 
             break;
-        }                      /* HTML_DIR, HTML_INDEX_RESULT */
+            }           /* HTML_DIR, HTML_INDEX_RESULT */
 
         case GopherStateData::HTML_CSO_RESULT: {
             if (line[0] == '-') {
@@ -663,11 +663,11 @@ gopherToHTML(GopherStateData * gopherState, char *inbuf, int len)
                     break;
                 }
 
-                case 102:      /* Number of matches */
+                case 102:   /* Number of matches */
 
-                case 501:      /* No Match */
+                case 501:   /* No Match */
 
-                case 502: {    /* Too Many Matches */
+                case 502: { /* Too Many Matches */
                     /* Print the message the server returns */
                     snprintf(tmpbuf, TEMP_BUF_SIZE, "</PRE><HR noshade size=\"1px\"><H2>%s</H2>\n<PRE>", html_quote(result));
                     outbuf.append(tmpbuf);
@@ -677,14 +677,14 @@ gopherToHTML(GopherStateData * gopherState, char *inbuf, int len)
                 }
             }
 
-        }                      /* HTML_CSO_RESULT */
+            }           /* HTML_CSO_RESULT */
 
         default:
-            break;             /* do nothing */
+            break;      /* do nothing */
 
-        }                      /* switch */
+        }           /* switch */
 
-    }                          /* while loop */
+    }               /* while loop */
 
     if (outbuf.size() > 0) {
         entry->append(outbuf.rawBuf(), outbuf.size());
@@ -836,7 +836,7 @@ gopherSendComplete(const Comm::ConnectionPointer &conn, char *buf, size_t size,
         gopherState->serverConn->close();
 
         if (buf)
-            memFree(buf, MEM_4K_BUF);  /* Allocated by gopherSendRequest. */
+            memFree(buf, MEM_4K_BUF);   /* Allocated by gopherSendRequest. */
 
         return;
     }
@@ -881,7 +881,7 @@ gopherSendComplete(const Comm::ConnectionPointer &conn, char *buf, size_t size,
     entry->delayAwareRead(conn, gopherState->replybuf, BUFSIZ, call);
 
     if (buf)
-        memFree(buf, MEM_4K_BUF);      /* Allocated by gopherSendRequest. */
+        memFree(buf, MEM_4K_BUF);   /* Allocated by gopherSendRequest. */
 }
 
 /**
@@ -897,7 +897,7 @@ gopherSendRequest(int fd, void *data)
         const char *t = strchr(gopherState->request, '?');
 
         if (t != NULL)
-            ++t;               /* skip the ? */
+            ++t;        /* skip the ? */
         else
             t = "";
 
@@ -965,3 +965,4 @@ gopherStart(FwdState * fwd)
                                      CommTimeoutCbPtrFun(gopherTimeout, gopherState));
     commSetConnTimeout(fwd->serverConnection(), Config.Timeout.read, timeoutCall);
 }
+
index 267d5d658ca8c462a1feb7b0ed60033bc2806b6e..e703dfb54f5c559b9084aee3775b330b4fc3d01b 100644 (file)
@@ -26,3 +26,4 @@ void gopherStart(FwdState *);
 int gopherCachable(const HttpRequest *);
 
 #endif /* SQUID_GOPHER_H_ */
+
index db438e1b0f7cc3e8ae6093a5a57d8e43dc0e81eb..df6cace9710154b41b15c3890b0ae4ee34975725 100644 (file)
@@ -239,13 +239,12 @@ helperOpenServers(helper * hlp)
         AsyncCall::Pointer closeCall = asyncCall(5,4, "helperServerFree", cbdataDialer(helperServerFree, srv));
         comm_add_close_handler(rfd, closeCall);
 
-        if (hlp->timeout && hlp->childs.concurrency){
+        if (hlp->timeout && hlp->childs.concurrency) {
             AsyncCall::Pointer timeoutCall = commCbCall(84, 4, "helper_server::requestTimeout",
-                                                        CommTimeoutCbPtrFun(helper_server::requestTimeout, srv));
+                                             CommTimeoutCbPtrFun(helper_server::requestTimeout, srv));
             commSetConnTimeout(srv->readPipe, hlp->timeout, timeoutCall);
         }
 
-
         AsyncCall::Pointer call = commCbCall(5,4, "helperHandleRead",
                                              CommIoCbPtrFun(helperHandleRead, srv));
         comm_read(srv->readPipe, srv->rbuf, srv->rbuf_sz - 1, call);
@@ -631,9 +630,9 @@ helperStatefulStats(StoreEntry * sentry, statefulhelper * hlp, const char *label
                           srv->flags.reserved ? 'R' : ' ',
                           srv->flags.shutdown ? 'S' : ' ',
                           srv->request ? (srv->request->placeholder ? 'P' : ' ') : ' ',
-                                  tt < 0.0 ? 0.0 : tt,
-                                  (int) srv->roffset,
-                                  srv->request ? Format::QuoteMimeBlob(srv->request->buf) : "(none)");
+                          tt < 0.0 ? 0.0 : tt,
+                          (int) srv->roffset,
+                          srv->request ? Format::QuoteMimeBlob(srv->request->buf) : "(none)");
     }
 
     storeAppendPrintf(sentry, "\nFlags key:\n\n");
@@ -661,7 +660,7 @@ helperShutdown(helper * hlp)
 
         assert(hlp->childs.n_active > 0);
         -- hlp->childs.n_active;
-        srv->flags.shutdown = true;    /* request it to shut itself down */
+        srv->flags.shutdown = true; /* request it to shut itself down */
 
         if (srv->flags.closing) {
             debugs(84, 3, "helperShutdown: " << hlp->id_name << " #" << srv->index << " is CLOSING.");
@@ -698,7 +697,7 @@ helperStatefulShutdown(statefulhelper * hlp)
 
         assert(hlp->childs.n_active > 0);
         -- hlp->childs.n_active;
-        srv->flags.shutdown = true;    /* request it to shut itself down */
+        srv->flags.shutdown = true; /* request it to shut itself down */
 
         if (srv->stats.pending) {
             debugs(84, 3, "helperStatefulShutdown: " << hlp->id_name << " #" << srv->index << " is BUSY.");
@@ -934,7 +933,7 @@ helperReturnBuffer(int request_number, helper_server * srv, helper * hlp, char *
             hlp->submitRequest(r);
         } else
             delete r;
-    } else if (srv->stats.timedout){
+    } else if (srv->stats.timedout) {
         debugs(84, 3, "Timedout reply received for request-ID: " << request_number << " , ignore");
     } else {
         debugs(84, DBG_IMPORTANT, "helperHandleRead: unexpected reply on channel " <<
@@ -1531,7 +1530,7 @@ helper_server::checkForTimedOutRequests(bool const retry)
         } else if (cbdataReferenceValidDone(r->data, &cbdata)) {
             if (!parent->onTimedOutResponse.isEmpty()) {
                 // Helper::Reply needs a non const buffer
-                char *replyMsg = xstrdup(parent->onTimedOutResponse.c_str()); 
+                char *replyMsg = xstrdup(parent->onTimedOutResponse.c_str());
                 r->callback(cbdata, Helper::Reply(replyMsg, strlen(replyMsg)));
                 xfree(replyMsg);
             } else
@@ -1558,10 +1557,11 @@ helper_server::requestTimeout(const CommTimeoutCbParams &io)
 
     debugs(84, 3, HERE << io.conn << " establish new helper_server::requestTimeout");
     AsyncCall::Pointer timeoutCall = commCbCall(84, 4, "helper_server::requestTimeout",
-                                                CommTimeoutCbPtrFun(helper_server::requestTimeout, srv));
+                                     CommTimeoutCbPtrFun(helper_server::requestTimeout, srv));
 
     const int timeSpent = srv->requests.empty() ? 0 : (squid_curtime - srv->requests.front()->dispatch_time.tv_sec);
     const int timeLeft = max(1, (static_cast<int>(srv->parent->timeout) - timeSpent));
 
     commSetConnTimeout(io.conn, timeLeft, timeoutCall);
 }
+
index 8c7237836ed787491893453d6eefa446d23a5a72..b7c4cea4cd0abeea00978bae3c3c2a8454bd572c 100644 (file)
@@ -45,16 +45,16 @@ class helper
 
 public:
     inline helper(const char *name) :
-            cmdline(NULL),
-            id_name(name),
-            ipc_type(0),
-            full_time(0),
-            last_queue_warn(0),
-            last_restart(0),
-            timeout(0),
-            retryTimedOut(false),
-            retryBrokenHelper(false),
-            eom('\n') {
+        cmdline(NULL),
+        id_name(name),
+        ipc_type(0),
+        full_time(0),
+        last_queue_warn(0),
+        last_restart(0),
+        timeout(0),
+        retryTimedOut(false),
+        retryBrokenHelper(false),
+        eom('\n') {
         memset(&stats, 0, sizeof(stats));
     }
     ~helper();
@@ -65,7 +65,7 @@ public:
     ///< If not full, submit request. Otherwise, either kill Squid or return false.
     bool trySubmit(const char *buf, HLPCB * callback, void *data);
 
-    /// Submits a request to the helper or add it to the queue if none of 
+    /// Submits a request to the helper or add it to the queue if none of
     /// the servers is available.
     void submitRequest(Helper::Request *r);
 public:
@@ -200,7 +200,7 @@ public:
     /// or the configured "on timeout response" for timedout requests.
     void checkForTimedOutRequests(bool const retry);
 
-    /// Read timeout handler 
+    /// Read timeout handler
     static void requestTimeout(const CommTimeoutCbParams &io);
 };
 
@@ -215,7 +215,7 @@ public:
     statefulhelper *parent;
     Helper::Request *request;
 
-    void *data;                        /* State data used by the calling routines */
+    void *data;         /* State data used by the calling routines */
 };
 
 /* helper.c */
@@ -231,3 +231,4 @@ void helperStatefulReleaseServer(helper_stateful_server * srv);
 void *helperStatefulServerGetData(helper_stateful_server * srv);
 
 #endif /* SQUID_HELPER_H */
+
index f628025dbce0932d605fe72d49afd9dc06c392f9..d1fb3203fddc4757f8bf9f23d701def3f40f75fe 100644 (file)
 #include <cstring>
 
 Helper::ChildConfig::ChildConfig():
-        n_max(0),
-        n_startup(0),
-        n_idle(1),
-        concurrency(0),
-        n_running(0),
-        n_active(0),
-        queue_size(0),
-        defaultQueueSize(true)
+    n_max(0),
+    n_startup(0),
+    n_idle(1),
+    concurrency(0),
+    n_running(0),
+    n_active(0),
+    queue_size(0),
+    defaultQueueSize(true)
 {}
 
 Helper::ChildConfig::ChildConfig(const unsigned int m):
-        n_max(m),
-        n_startup(0),
-        n_idle(1),
-        concurrency(0),
-        n_running(0),
-        n_active(0),
-        queue_size(2 * m),
-        defaultQueueSize(true)
+    n_max(m),
+    n_startup(0),
+    n_idle(1),
+    concurrency(0),
+    n_running(0),
+    n_active(0),
+    queue_size(2 * m),
+    defaultQueueSize(true)
 {}
 
 Helper::ChildConfig &
@@ -113,7 +113,8 @@ Helper::ChildConfig::parseConfig()
         debugs(0, DBG_CRITICAL, "WARNING OVERIDE: Capping idle=" << n_idle << " to the defined maximum (" << n_max <<")");
         n_idle = n_max;
     }
-    
+
     if (defaultQueueSize)
         queue_size = 2 * n_max;
 }
+
index a5ed9fa9a241ab6cd3aea108334853919535d81b..f2caf6f190b9b9a3a5e7897249a9652b3afce57d 100644 (file)
@@ -106,3 +106,4 @@ public:
 #define free_HelperChildConfig(dummy)  // NO.
 
 #endif /* _SQUID_SRC_HELPER_CHILDCONFIG_H */
+
index fdb28a8ee9135da0cdd2102077f6a9bf5e1e061a..41501e95aaa41057acd6a49c397273f6e0ec75d8 100644 (file)
@@ -17,8 +17,8 @@
 #include "SquidString.h"
 
 Helper::Reply::Reply(char *buf, size_t len) :
-        result(Helper::Unknown),
-        whichServer(NULL)
+    result(Helper::Unknown),
+    whichServer(NULL)
 {
     parse(buf,len);
 }
@@ -225,3 +225,4 @@ operator <<(std::ostream &os, const Helper::Reply &r)
 
     return os;
 }
+
index a361fbccba3345128d4d153c0c678caf467d0d1c..1544dbe132290a9684060d7b9a4a9559ee7768ab 100644 (file)
@@ -82,3 +82,4 @@ private:
 std::ostream &operator <<(std::ostream &os, const Helper::Reply &r);
 
 #endif /* _SQUID_SRC_HELPER_REPLY_H */
+
index a77b0e043324c33ba6e25f264e847785a15f570e..f41758c4d228b5d11a6d1b2c1ea082f80c840576 100644 (file)
@@ -21,12 +21,12 @@ class Request
 
 public:
     Request(HLPCB *c, void *d, const char *b) :
-            buf(b ? xstrdup(b) : NULL),
-            callback(c),
-            data(cbdataReference(d)),
-            placeholder(b == NULL),
-            Id(0),
-            retries(0)
+        buf(b ? xstrdup(b) : NULL),
+        callback(c),
+        data(cbdataReference(d)),
+        placeholder(b == NULL),
+        Id(0),
+        retries(0)
     {
         memset(&dispatch_time, 0, sizeof(dispatch_time));
     }
@@ -56,3 +56,4 @@ public:
 } // namespace Helper
 
 #endif /* _SQUID_SRC_HELPER_REQUEST_H */
+
index 8a7b0304a0ce5b6565f36e126f7fc6a594b1418a..d675568f53d38466e5217966eaf3da072324c6c8 100644 (file)
@@ -28,3 +28,4 @@ enum ResultCode {
 } // namespace Helper
 
 #endif /* _SQUID_SRC_HELPER_RESULTCODE_H */
+
index 8d4c43b6cc49d3e76ba093de8f27f57432f29dea..4832bb742adac7d6e5917716536366ed2d474db1 100644 (file)
@@ -27,3 +27,4 @@ class Request;
 typedef void HLPCB(void *, const Helper::Reply &);
 
 #endif /* SQUID_SRC_HELPER_FORWARD_H */
+
index b64d90272af2efc1952d63b3e97ff18e82dca41f..0eefe4460f13d20d5e487e9810f6d033585c82bd 100644 (file)
@@ -43,3 +43,4 @@ extern const char *hier_code_str[];
 inline hier_code operator++(hier_code &i) { return i = (hier_code)(1+(int)i); }
 
 #endif /* SQUID__HIER_CODE_H */
+
index ceed3637d9160fbf7759c8246ba9cae30a88b6f9..db592cbd2a39a7ef84e293c5f4ffe0ad9bc266c0 100644 (file)
@@ -142,14 +142,14 @@ class htcpSpecifier : public StoreClient
 
 public:
     htcpSpecifier() :
-         method(NULL),
-         uri(NULL),
-         version(NULL),
-         req_hdrs(NULL),
-         reqHdrsSz(0),
-         request(NULL),
-         checkHitRequest(NULL),
-         dhdr(NULL)
+        method(NULL),
+        uri(NULL),
+        version(NULL),
+        req_hdrs(NULL),
+        reqHdrsSz(0),
+        request(NULL),
+        checkHitRequest(NULL),
+        dhdr(NULL)
     {}
     // XXX: destructor?
 
@@ -446,9 +446,9 @@ htcpBuildTstOpData(char *buf, size_t buflen, htcpStuff * stuff)
         debugs(31, 3, "htcpBuildTstOpData: RR_RESPONSE");
         debugs(31, 3, "htcpBuildTstOpData: F1 = " << stuff->f1);
 
-        if (stuff->f1)         /* cache miss */
+        if (stuff->f1)      /* cache miss */
             return 0;
-        else                   /* cache hit */
+        else            /* cache hit */
             return htcpBuildDetail(buf, buflen, stuff);
 
     default:
@@ -513,7 +513,7 @@ htcpBuildData(char *buf, size_t buflen, htcpStuff * stuff)
     if (buflen < hdr_sz)
         return -1;
 
-    off += hdr_sz;             /* skip! */
+    off += hdr_sz;      /* skip! */
 
     op_data_sz = htcpBuildOpData(buf + off, buflen - off, stuff);
 
@@ -1076,7 +1076,7 @@ htcpHandleTst(htcpDataHeader * hdr, char *buf, int sz, Ip::Address &from)
 }
 
 HtcpReplyData::HtcpReplyData() :
-        hit(0), hdr(hoHtcpReply), msg_id(0), version(0.0)
+    hit(0), hdr(hoHtcpReply), msg_id(0), version(0.0)
 {
     memset(&cto, 0, sizeof(cto));
 }
@@ -1202,10 +1202,10 @@ void
 htcpSpecifier::checkedHit(StoreEntry *e)
 {
     if (e) {
-        htcpTstReply(dhdr, e, this, from);             /* hit */
+        htcpTstReply(dhdr, e, this, from);      /* hit */
         htcpLogHtcp(from, dhdr->opcode, LOG_UDP_HIT, uri);
     } else {
-        htcpTstReply(dhdr, NULL, NULL, from);  /* cache miss */
+        htcpTstReply(dhdr, NULL, NULL, from);   /* cache miss */
         htcpLogHtcp(from, dhdr->opcode, LOG_UDP_MISS, uri);
     }
 
@@ -1276,12 +1276,12 @@ htcpHandleClr(htcpDataHeader * hdr, char *buf, int sz, Ip::Address &from)
     switch (htcpClrStore(s)) {
 
     case 1:
-        htcpClrReply(hdr, 1, from);    /* hit */
+        htcpClrReply(hdr, 1, from); /* hit */
         htcpLogHtcp(from, hdr->opcode, LOG_UDP_HIT, s->uri);
         break;
 
     case 0:
-        htcpClrReply(hdr, 0, from);    /* miss */
+        htcpClrReply(hdr, 0, from); /* miss */
         htcpLogHtcp(from, hdr->opcode, LOG_UDP_MISS, s->uri);
         break;
 
@@ -1714,3 +1714,4 @@ htcpLogHtcp(Ip::Address &caddr, int opcode, LogTags logcode, const char *url)
     al->cache.trTime.tv_usec = 0;
     accessLogLog(al, NULL);
 }
+
index 31d109542bbcb17f235e11cd3c4e554ca89ed3be..eb3592ce993f7f511a9ef9175a8be52a8405f226 100644 (file)
@@ -50,7 +50,7 @@ void htcpOpenPorts(void);
  * \param p
  * \retval 1    Successfully sent request.
  * \retval 0    Unable to send request at this time. HTCP may be shutting down or starting up.
- *             Don't wait for a reply or count in stats as sent.
+ *      Don't wait for a reply or count in stats as sent.
  * \retval -1   Error sending request.
  */
 int htcpQuery(StoreEntry * e, HttpRequest * req, CachePeer * p);
@@ -67,3 +67,4 @@ void htcpClosePorts(void);
 #endif /* USE_HTCP */
 
 #endif /* SQUID_HTCP_H */
+
index ea319aca20c53e07e00829f0a382acf56f1f8001..a4250c0a11a57e6c54ad4d726381eb185a83310d 100644 (file)
 
 #define SQUID_ENTER_THROWING_CODE() try {
 #define SQUID_EXIT_THROWING_CODE(status) \
-       status = true; \
+    status = true; \
     } \
     catch (const std::exception &e) { \
-       debugs (11, 1, "Exception error:" << e.what()); \
-       status = false; \
+    debugs (11, 1, "Exception error:" << e.what()); \
+    status = false; \
     }
 
 CBDATA_CLASS_INIT(HttpStateData);
@@ -84,8 +84,8 @@ static void copyOneHeaderFromClientsideRequestToUpstreamRequest(const HttpHeader
 void httpHdrAdd(HttpHeader *heads, HttpRequest *request, const AccessLogEntryPointer &al, HeaderWithAclList &headers_add);
 
 HttpStateData::HttpStateData(FwdState *theFwdState) : AsyncJob("HttpStateData"), Client(theFwdState),
-        lastChunk(0), header_bytes_read(0), reply_bytes_read(0),
-        body_bytes_truncated(0), httpChunkDecoder(NULL)
+    lastChunk(0), header_bytes_read(0), reply_bytes_read(0),
+    body_bytes_truncated(0), httpChunkDecoder(NULL)
 {
     debugs(11,5,HERE << "HttpStateData " << this << " created");
     ignoreCacheControl = false;
@@ -447,7 +447,7 @@ HttpStateData::cacheableReply()
         }
 
     switch (rep->sline.status()) {
-        /* Responses that are cacheable */
+    /* Responses that are cacheable */
 
     case Http::scOkay:
 
@@ -474,7 +474,7 @@ HttpStateData::cacheableReply()
         /* NOTREACHED */
         break;
 
-        /* Responses that only are cacheable if the server says so */
+    /* Responses that only are cacheable if the server says so */
 
     case Http::scFound:
     case Http::scTemporaryRedirect:
@@ -492,7 +492,7 @@ HttpStateData::cacheableReply()
         /* NOTREACHED */
         break;
 
-        /* Errors can be negatively cached */
+    /* Errors can be negatively cached */
 
     case Http::scNoContent:
 
@@ -525,9 +525,9 @@ HttpStateData::cacheableReply()
         /* NOTREACHED */
         break;
 
-        /* Some responses can never be cached */
+    /* Some responses can never be cached */
 
-    case Http::scPartialContent:       /* Not yet supported */
+    case Http::scPartialContent:    /* Not yet supported */
 
     case Http::scSeeOther:
 
@@ -537,7 +537,7 @@ HttpStateData::cacheableReply()
 
     case Http::scProxyAuthenticationRequired:
 
-    case Http::scInvalidHeader:        /* Squid header parsing error */
+    case Http::scInvalidHeader: /* Squid header parsing error */
 
     case Http::scHeaderTooLarge:
 
@@ -1873,7 +1873,7 @@ copyOneHeaderFromClientsideRequestToUpstreamRequest(const HttpHeaderEntry *e, co
 
     switch (e->id) {
 
-        /** \par RFC 2616 sect 13.5.1 - Hop-by-Hop headers which Squid should not pass on. */
+    /** \par RFC 2616 sect 13.5.1 - Hop-by-Hop headers which Squid should not pass on. */
 
     case HDR_PROXY_AUTHORIZATION:
         /** \par Proxy-Authorization:
@@ -1888,7 +1888,7 @@ copyOneHeaderFromClientsideRequestToUpstreamRequest(const HttpHeaderEntry *e, co
         }
         break;
 
-        /** \par RFC 2616 sect 13.5.1 - Hop-by-Hop headers which Squid does not pass on. */
+    /** \par RFC 2616 sect 13.5.1 - Hop-by-Hop headers which Squid does not pass on. */
 
     case HDR_CONNECTION:          /** \par Connection: */
     case HDR_TE:                  /** \par TE: */
@@ -1899,7 +1899,7 @@ copyOneHeaderFromClientsideRequestToUpstreamRequest(const HttpHeaderEntry *e, co
     case HDR_TRANSFER_ENCODING:   /** \par Transfer-Encoding: */
         break;
 
-        /** \par OTHER headers I haven't bothered to track down yet. */
+    /** \par OTHER headers I haven't bothered to track down yet. */
 
     case HDR_AUTHORIZATION:
         /** \par WWW-Authorization:
@@ -2412,3 +2412,4 @@ HttpStateData::abortTransaction(const char *reason)
     fwd->handleUnregisteredServerEnd();
     mustStop("HttpStateData::abortTransaction");
 }
+
index e4606e5e9ac3b89f7223e7c16f8cd5e4288ca7c6..5a99a396c06703eedb617478b692a8127f4c1c19 100644 (file)
@@ -42,13 +42,13 @@ public:
     // Determine whether the response is a cacheable representation
     int cacheableReply();
 
-    CachePeer *_peer;          /* CachePeer request made to */
-    int eof;                   /* reached end-of-object? */
-    int lastChunk;             /* reached last chunk of a chunk-encoded reply */
+    CachePeer *_peer;       /* CachePeer request made to */
+    int eof;            /* reached end-of-object? */
+    int lastChunk;      /* reached last chunk of a chunk-encoded reply */
     HttpStateFlags flags;
     size_t read_sz;
-    int header_bytes_read;     // to find end of response,
-    int64_t reply_bytes_read;  // without relying on StoreEntry
+    int header_bytes_read;  // to find end of response,
+    int64_t reply_bytes_read;   // without relying on StoreEntry
     int body_bytes_truncated; // positive when we read more than we wanted
     MemBuf *readBuf;
     bool ignoreCacheControl;
@@ -118,3 +118,4 @@ void httpStart(FwdState *);
 const char *httpMakeVaryMark(HttpRequest * request, HttpReply const * reply);
 
 #endif /* SQUID_HTTP_H */
+
index cfe2e52d4227d2b99d036f6c693306c5545ed8d9..e408f32df1fa16ed3252632a0f595a713250f1b3 100644 (file)
@@ -107,3 +107,4 @@ MethodStr(const MethodType m)
 }; // namespace Http
 
 #endif /* SQUID_SRC_HTTP_METHODTYPE_H */
+
index 8d4cda37f737aa32a63683671f6cce7ed5913906..4bd1481545818003578d32f4fc5818d5bd6126df 100644 (file)
@@ -31,9 +31,10 @@ ProtocolVersion(unsigned int aMajor, unsigned int aMinor)
 inline AnyP::ProtocolVersion
 ProtocolVersion()
 {
-  return AnyP::ProtocolVersion(AnyP::PROTO_HTTP,1,1);
+    return AnyP::ProtocolVersion(AnyP::PROTO_HTTP,1,1);
 }
 
 }; // namespace Http
 
 #endif /* SQUID_HTTP_PROTOCOLVERSION_H */
+
index 40b5d3188f369ab7292807a8ce0cb0a389c5aabf..977f721a789717052bac8c7b15295832cb0cdf1d 100644 (file)
@@ -120,3 +120,4 @@ typedef enum {
 } http_hdr_type;
 
 #endif /* SQUID_HTTP_REGISTEREDHEADERS_H */
+
index 0c6b0b28df64786adcb3f650bd49246274ac602c..417cccb37bfadca6a7c717a406500f5737637a67 100644 (file)
@@ -121,25 +121,25 @@ HttpRequestMethod::isHttpSafe() const
     // checking and adding. If only to say it is known to define none.
 
     switch (theMethod) {
-        // RFC 2068 - none
+    // RFC 2068 - none
 
-        // RFC 2616 section 9.1.1
+    // RFC 2616 section 9.1.1
     case Http::METHOD_GET:
     case Http::METHOD_HEAD:
     case Http::METHOD_OPTIONS:
 
-        // RFC 3253 section 3.6
+    // RFC 3253 section 3.6
     case Http::METHOD_REPORT:
 
-        // RFC 3648 - none
-        // RFC 3744 - none
-        // RFC 4437 - none
-        // RFC 4791 - none
+    // RFC 3648 - none
+    // RFC 3744 - none
+    // RFC 4437 - none
+    // RFC 4791 - none
 
-        // RFC 4918 section 9.1
+    // RFC 4918 section 9.1
     case Http::METHOD_PROPFIND:
 
-        // RFC 5323 section 2
+    // RFC 5323 section 2
     case Http::METHOD_SEARCH:
 
         // RFC 5789 - none
@@ -163,9 +163,9 @@ HttpRequestMethod::isIdempotent() const
     // checking and adding. If only to say it is known to define none.
 
     switch (theMethod) {
-        // RFC 2068 - TODO check LINK/UNLINK definition
+    // RFC 2068 - TODO check LINK/UNLINK definition
 
-        // RFC 2616 section 9.1.2
+    // RFC 2616 section 9.1.2
     case Http::METHOD_GET:
     case Http::METHOD_HEAD:
     case Http::METHOD_PUT:
@@ -173,13 +173,13 @@ HttpRequestMethod::isIdempotent() const
     case Http::METHOD_OPTIONS:
     case Http::METHOD_TRACE:
 
-        // RFC 3253 - TODO check
-        // RFC 3648 - TODO check
-        // RFC 3744 - TODO check
-        // RFC 4437 - TODO check
-        // RFC 4791 - TODO check
+    // RFC 3253 - TODO check
+    // RFC 3648 - TODO check
+    // RFC 3744 - TODO check
+    // RFC 4437 - TODO check
+    // RFC 4791 - TODO check
 
-        // RFC 4918 section 9
+    // RFC 4918 section 9
     case Http::METHOD_PROPFIND:
     case Http::METHOD_PROPPATCH:
     case Http::METHOD_MKCOL:
@@ -204,7 +204,7 @@ HttpRequestMethod::respMaybeCacheable() const
     // Only a few methods are defined as cacheable.
     // All other methods from the below RFC are "MUST NOT cache"
     switch (theMethod) {
-        // RFC 2616 section 9
+    // RFC 2616 section 9
     case Http::METHOD_GET:
     case Http::METHOD_HEAD:
         return true;
@@ -245,9 +245,9 @@ HttpRequestMethod::respMaybeCacheable() const
         return ??;
 #endif
 
-        // Special Squid method tokens are not cacheable.
-        // RFC 2616 defines all unregistered or unspecified methods as non-cacheable
-        // until such time as an RFC defines them cacheable.
+    // Special Squid method tokens are not cacheable.
+    // RFC 2616 defines all unregistered or unspecified methods as non-cacheable
+    // until such time as an RFC defines them cacheable.
     default:
         return false;
     }
@@ -257,22 +257,22 @@ bool
 HttpRequestMethod::shouldInvalidate() const
 {
     switch (theMethod) {
-        /* RFC 2616 section 13.10 - "MUST invalidate" */
+    /* RFC 2616 section 13.10 - "MUST invalidate" */
     case Http::METHOD_POST:
     case Http::METHOD_PUT:
     case Http::METHOD_DELETE:
         return true;
 
-        /* Squid extension to force invalidation */
+    /* Squid extension to force invalidation */
     case Http::METHOD_PURGE:
         return true;
 
-        /*
-         * RFC 2616 sayeth, in section 13.10, final paragraph:
-         * A cache that passes through requests for methods it does not
-         * understand SHOULD invalidate any entities referred to by the
-         * Request-URI.
-         */
+    /*
+     * RFC 2616 sayeth, in section 13.10, final paragraph:
+     * A cache that passes through requests for methods it does not
+     * understand SHOULD invalidate any entities referred to by the
+     * Request-URI.
+     */
     case Http::METHOD_OTHER:
         return true;
 
@@ -289,7 +289,7 @@ HttpRequestMethod::purgesOthers() const
         return true;
 
     switch (theMethod) {
-        /* common sense suggests purging is not required? */
+    /* common sense suggests purging is not required? */
     case Http::METHOD_GET:     // XXX: but we do purge HEAD on successful GET
     case Http::METHOD_HEAD:
     case Http::METHOD_NONE:
@@ -307,3 +307,4 @@ HttpRequestMethod::purgesOthers() const
         return true;
     }
 }
+
index a95861fc522febd27be5d673a01b6f0fad8dff62..19b15d4145eee6d0f2938a595ce61cca3634a83a 100644 (file)
@@ -123,3 +123,4 @@ operator << (std::ostream &os, HttpRequestMethod const &method)
 }
 
 #endif /* SQUID_HTTPREQUESTMETHOD_H */
+
index 2bea66beaad1573e8e8224fc6f0132ca0b3e735c..c6058ba118948576a7361e5d5b7ff8a2c48f653c 100644 (file)
@@ -15,12 +15,12 @@ Http::StatusCodeString(const Http::StatusCode status)
 {
     switch (status) {
 
-        // 000
+    // 000
     case Http::scNone:
-        return "Init";         /* we init .status with code 0 */
+        return "Init";      /* we init .status with code 0 */
         break;
 
-        // 100-199
+    // 100-199
     case Http::scContinue:
         return "Continue";
         break;
@@ -33,7 +33,7 @@ Http::StatusCodeString(const Http::StatusCode status)
         return "Processing";
         break;
 
-        // 200-299
+    // 200-299
     case Http::scOkay:
         return "OK";
         break;
@@ -74,7 +74,7 @@ Http::StatusCodeString(const Http::StatusCode status)
         return "IM Used";
         break;
 
-        // 300-399
+    // 300-399
     case Http::scMultipleChoices:
         return "Multiple Choices";
         break;
@@ -107,7 +107,7 @@ Http::StatusCodeString(const Http::StatusCode status)
         return "Permanent Redirect";
         break;
 
-        // 400-499
+    // 400-499
     case Http::scBadRequest:
         return "Bad Request";
         break;
@@ -212,7 +212,7 @@ Http::StatusCodeString(const Http::StatusCode status)
         return "Request Header Fields Too Large";
         break;
 
-        // 500-599
+    // 500-599
     case Http::scInternalServerError:
         return "Internal Server Error";
         break;
@@ -257,13 +257,14 @@ Http::StatusCodeString(const Http::StatusCode status)
         return "Network Authentication Required";
         break;
 
-        // 600+
+    // 600+
     case Http::scInvalidHeader:
     case Http::scHeaderTooLarge:
-        // fall through to default.
+    // fall through to default.
 
     default:
         debugs(57, 3, "Unassigned HTTP status code: " << status);
     }
     return "Unassigned";
 }
+
index 88fe7cf6885edfb34d5a232b06736deff053430a..3c5d95eaa186feeb30596156677166dc7fd0d0b4 100644 (file)
@@ -90,3 +90,4 @@ const char *StatusCodeString(const Http::StatusCode status);
 } // namespace Http
 
 #endif /* _SQUID_SRC_HTTP_STATUSCODE_H */
+
index ff0a77e95357b7e79380b7ec1193c4e7c6f5b564..26f921b88f305a9d21b3f0cfaaf4623814cc3f8a 100644 (file)
@@ -74,7 +74,7 @@ Http::StatusLine::packInto(Packer * p) const
 bool
 Http::StatusLine::parse(const String &protoPrefix, const char *start, const char *end)
 {
-    status_ = Http::scInvalidHeader;   /* Squid header parsing error */
+    status_ = Http::scInvalidHeader;    /* Squid header parsing error */
 
     // XXX: HttpMsg::parse() has a similar check but is using
     // casesensitive comparison (which is required by HTTP errata?)
@@ -110,5 +110,6 @@ Http::StatusLine::parse(const String &protoPrefix, const char *start, const char
 
     /* we ignore 'reason-phrase' */
     /* Should assert start < end ? */
-    return true;                       /* success */
+    return true;            /* success */
 }
+
index a464aebab90b967713820b152d3306260ebe4f41..1fe13219c9251477cc60b351c96f8af70fa525cf 100644 (file)
@@ -76,3 +76,4 @@ private:
 } // namespace Http
 
 #endif /* SQUID_HTTP_STATUSLINE_H */
+
index 6e80624c72b398b2d3fc1141d876810a569994c9..f5220f2b72ca4c638d43002e50b12e3bf712702d 100644 (file)
@@ -22,3 +22,4 @@ class HttpReply;
 typedef RefCount<HttpReply> HttpReplyPointer;
 
 #endif /* SQUID_SRC_HTTP_FORWARD_H */
+
index 10ed3603dc71cc34bb45e4507bc6f6fe96fbbce3..dbc96bd80fd2b7e37d93bf128a41be24d74ca357 100644 (file)
@@ -24,7 +24,7 @@ Http::One::Parser::clear()
 }
 
 // arbitrary maximum-length for headers which can be found by Http1Parser::getHeaderField()
-#define GET_HDR_SZ     1024
+#define GET_HDR_SZ  1024
 
 // BUG: returns only the first header line with given name,
 //      ignores multi-line headers and obs-fold headers
@@ -78,3 +78,4 @@ Http::One::Parser::getHeaderField(const char *name)
 
     return NULL;
 }
+
index 2c9c584b4e81ecd9692a219491f0b0c09a49e2f7..be92831a6ec20e25a8ca83a0d7cf314d912326cb 100644 (file)
@@ -108,3 +108,4 @@ protected:
 } // namespace Http
 
 #endif /*  _SQUID_SRC_HTTP_ONE_PARSER_H */
+
index e455785b2cacc33d1e6b885013e3082607cc5845..64ffbfde3f687ab6a6b1a954529aaead479e4abb 100644 (file)
@@ -15,8 +15,8 @@
 #include "SquidConfig.h"
 
 Http::One::RequestParser::RequestParser() :
-        Parser(),
-        request_parse_status(Http::scNone)
+    Parser(),
+    request_parse_status(Http::scNone)
 {
     req.start = req.end = -1;
     req.m_start = req.m_end = -1;
@@ -362,3 +362,4 @@ Http::One::RequestParser::parse(const SBuf &aBuf)
 
     return !needsMoreData();
 }
+
index 5c6538ae64442a64eb718796909eeae065230bf7..b6636bd7bb26a457999ece0e254f0e6861908010 100644 (file)
@@ -71,3 +71,4 @@ private:
 } // namespace Http
 
 #endif /*  _SQUID_SRC_HTTP_ONE_REQUESTPARSER_H */
+
index fa63ebc1f5bb135c795277e8ef64f0f7eca7709d..b849b8e7be9a0c9e1ee5f888822f82602cc25221 100644 (file)
@@ -26,3 +26,4 @@ typedef RefCount<Http::One::RequestParser> RequestParserPointer;
 namespace Http1 = Http::One;
 
 #endif /* SQUID_SRC_HTTP_ONE_FORWARD_H */
+
index d13ee039d570745f5d2e554092b6273ca1a09e22..08dc74b8e1717b6eab0df4d34cd9e730a1d0cc89 100644 (file)
@@ -96,3 +96,4 @@ Icmp::Log(const Ip::Address &addr, const uint8_t type, const char* pkt_str, cons
 }
 
 #endif /* USE_ICMP */
+
index 73f15db68ac08fdd27b89acc25b46f057208fca3..c0a0b2d7b7c00962f6094c56052361d4706f501c 100644 (file)
@@ -13,7 +13,7 @@
 
 #include "ip/Address.h"
 
-#define PINGER_PAYLOAD_SZ      8192
+#define PINGER_PAYLOAD_SZ   8192
 
 #define MAX_PAYLOAD 256 // WAS: SQUIDHOSTNAMELEN
 #define MAX_PKT4_SZ (MAX_PAYLOAD + sizeof(struct timeval) + sizeof (char) + sizeof(struct icmphdr) + 1)
@@ -98,13 +98,13 @@ protected:
     /**
      * Translate TTL to a hop distance
      *
-     \param ttl        negative     : n > 33
-     \param ttl        n(0...32)    : 32 >= n >= 1
-     \param ttl        n(33...62)   : 32 >= n >= 1
-     \param ttl        n(63...64)   : 2 >= n >= 1
-     \param ttl        n(65...128)  : 64 >= n >= 1
-     \param ttl        n(129...192) : 64 >= n >= 1
-     \param ttl        n(193...)    : n < 255
+     \param ttl negative     : n > 33
+     \param ttl n(0...32)    : 32 >= n >= 1
+     \param ttl n(33...62)   : 32 >= n >= 1
+     \param ttl n(63...64)   : 2 >= n >= 1
+     \param ttl n(65...128)  : 64 >= n >= 1
+     \param ttl n(129...192) : 64 >= n >= 1
+     \param ttl n(193...)    : n < 255
      *
      \bug BUG? ttl<0 can produce high hop values
      \bug BUG? ttl>255 can produce zero or negative hop values
@@ -121,3 +121,4 @@ protected:
 };
 
 #endif
+
index 02f19d33a1b9bf67c2aa697cd291c97d3be7de59..06b8754ae7c271d6be4bcc6f20d709f2bb2da481 100644 (file)
@@ -253,3 +253,4 @@ Icmp4::Recv(void)
 }
 
 #endif /* USE_ICMP */
+
index 2e1e2589314f7281f3bc53b46b2b36ffc2cfe639..bba20bd661b57549e833210200a8fb4020e026bc 100644 (file)
@@ -152,3 +152,4 @@ extern Icmp4 icmp4;
 #endif /* USE_ICMP && SQUID_HELPER */
 
 #endif
+
index d9e362768910013047ba505aebc523869778c3a9..cdd6a863a1874b88fb4019a8432ca8c8e246b4f1 100644 (file)
@@ -34,11 +34,11 @@ IcmpPacketType(uint8_t v)
 {
     // NP: LowPktStr is for codes 0-127
     static const char *icmp6LowPktStr[] = {
-        "ICMPv6 0",                    // 0
-        "Destination Unreachable",     // 1 - RFC2463
-        "Packet Too Big",              // 2 - RFC2463
-        "Time Exceeded",               // 3 - RFC2463
-        "Parameter Problem",           // 4 - RFC2463
+        "ICMPv6 0",         // 0
+        "Destination Unreachable",  // 1 - RFC2463
+        "Packet Too Big",       // 2 - RFC2463
+        "Time Exceeded",        // 3 - RFC2463
+        "Parameter Problem",        // 4 - RFC2463
     };
 
     // low codes 1-4 registered
@@ -47,32 +47,32 @@ IcmpPacketType(uint8_t v)
 
     // NP: HighPktStr is for codes 128-255
     static const char *icmp6HighPktStr[] = {
-        "Echo Request",                                        // 128 - RFC2463
-        "Echo Reply",                                  // 129 - RFC2463
-        "Multicast Listener Query",                    // 130 - RFC2710
-        "Multicast Listener Report",                   // 131 - RFC2710
-        "Multicast Listener Done",                     // 132 - RFC2710
-        "Router Solicitation",                         // 133 - RFC4861
-        "Router Advertisement",                                // 134 - RFC4861
-        "Neighbor Solicitation",                       // 135 - RFC4861
-        "Neighbor Advertisement",                      // 136 - RFC4861
-        "Redirect Message",                            // 137 - RFC4861
-        "Router Renumbering",                          // 138 - Crawford
-        "ICMP Node Information Query",                 // 139 - RFC4620
-        "ICMP Node Information Response",              // 140 - RFC4620
-        "Inverse Neighbor Discovery Solicitation",     // 141 - RFC3122
-        "Inverse Neighbor Discovery Advertisement",    // 142 - RFC3122
-        "Version 2 Multicast Listener Report",         // 143 - RFC3810
-        "Home Agent Address Discovery Request",                // 144 - RFC3775
-        "Home Agent Address Discovery Reply",          // 145 - RFC3775
-        "Mobile Prefix Solicitation",                  // 146 - RFC3775
-        "Mobile Prefix Advertisement",                 // 147 - RFC3775
-        "Certification Path Solicitation",             // 148 - RFC3971
-        "Certification Path Advertisement",            // 149 - RFC3971
-        "ICMP Experimental (150)",                     // 150 - RFC4065
-        "Multicast Router Advertisement",              // 151 - RFC4286
-        "Multicast Router Solicitation",               // 152 - RFC4286
-        "Multicast Router Termination",                        // 153 - [RFC4286]
+        "Echo Request",                 // 128 - RFC2463
+        "Echo Reply",                   // 129 - RFC2463
+        "Multicast Listener Query",         // 130 - RFC2710
+        "Multicast Listener Report",            // 131 - RFC2710
+        "Multicast Listener Done",          // 132 - RFC2710
+        "Router Solicitation",              // 133 - RFC4861
+        "Router Advertisement",             // 134 - RFC4861
+        "Neighbor Solicitation",            // 135 - RFC4861
+        "Neighbor Advertisement",           // 136 - RFC4861
+        "Redirect Message",             // 137 - RFC4861
+        "Router Renumbering",               // 138 - Crawford
+        "ICMP Node Information Query",          // 139 - RFC4620
+        "ICMP Node Information Response",       // 140 - RFC4620
+        "Inverse Neighbor Discovery Solicitation",  // 141 - RFC3122
+        "Inverse Neighbor Discovery Advertisement", // 142 - RFC3122
+        "Version 2 Multicast Listener Report",      // 143 - RFC3810
+        "Home Agent Address Discovery Request",     // 144 - RFC3775
+        "Home Agent Address Discovery Reply",       // 145 - RFC3775
+        "Mobile Prefix Solicitation",           // 146 - RFC3775
+        "Mobile Prefix Advertisement",          // 147 - RFC3775
+        "Certification Path Solicitation",      // 148 - RFC3971
+        "Certification Path Advertisement",     // 149 - RFC3971
+        "ICMP Experimental (150)",          // 150 - RFC4065
+        "Multicast Router Advertisement",       // 151 - RFC4286
+        "Multicast Router Solicitation",        // 152 - RFC4286
+        "Multicast Router Termination",         // 153 - [RFC4286]
     };
 
     // high codes 127-153 registered
@@ -242,27 +242,27 @@ Icmp6::Recv(void)
 // FIXME INET6 : The IPv6 Header (ip6_hdr) is not availble directly >:-(
 //
 // TTL still has to come from the IP header somewhere.
-//     still need to strip and process it properly.
-//     probably have to rely on RTT as given by timestamp in data sent and current.
+//  still need to strip and process it properly.
+//  probably have to rely on RTT as given by timestamp in data sent and current.
     /* IPv6 Header Structures (linux)
     struct ip6_hdr
 
     // fields (via simple define)
-    #define ip6_vfc            // N.A
-    #define ip6_flow   // N/A
-    #define ip6_plen   // payload length.
-    #define ip6_nxt            // expect to be type 0x3a - ICMPv6
-    #define ip6_hlim   // MAX hops  (always 64, but no guarantee)
-    #define ip6_hops   // HOPS!!!  (can it be true??)
+    #define ip6_vfc     // N.A
+    #define ip6_flow    // N/A
+    #define ip6_plen    // payload length.
+    #define ip6_nxt     // expect to be type 0x3a - ICMPv6
+    #define ip6_hlim    // MAX hops  (always 64, but no guarantee)
+    #define ip6_hops    // HOPS!!!  (can it be true??)
 
         ip = (struct ip6_hdr *) pkt;
         pkt += sizeof(ip6_hdr);
 
     debugs(42, DBG_CRITICAL, HERE << "ip6_nxt=" << ip->ip6_nxt <<
-               ", ip6_plen=" << ip->ip6_plen <<
-               ", ip6_hlim=" << ip->ip6_hlim <<
-               ", ip6_hops=" << ip->ip6_hops   <<
-               " ::: 40 == sizef(ip6_hdr) == " << sizeof(ip6_hdr)
+            ", ip6_plen=" << ip->ip6_plen <<
+            ", ip6_hlim=" << ip->ip6_hlim <<
+            ", ip6_hops=" << ip->ip6_hops   <<
+            " ::: 40 == sizef(ip6_hdr) == " << sizeof(ip6_hdr)
     );
     */
 
@@ -303,7 +303,7 @@ Icmp6::Recv(void)
     /*
      * FIXME INET6: Without access to the IPv6-Hops header we must rely on the total RTT
      *      and could caculate the hops from that, but it produces some weird value mappings using ipHops
-     * for now everything is 1 v6 hop away with variant RTT
+     *  for now everything is 1 v6 hop away with variant RTT
      * WANT:    preply.hops = ip->ip6_hops; // ipHops(ip->ip_hops);
      */
     preply.hops = 1;
@@ -329,3 +329,4 @@ Icmp6::Recv(void)
 }
 
 #endif /* USE_ICMP */
+
index 5242d07375f0f3329a568cbf15924f007c13630d..f00d67cdc4a13488304127da1b24b6100a08fb05 100644 (file)
@@ -63,3 +63,4 @@ extern Icmp6 icmp6;
 
 #endif /* USE_ICMP && SQUID_HELPER */
 #endif /* _INCLUDE_ICMPV6_H */
+
index 30323899dfcff0c7859aeb969862b74982b2605d..98376efaa3b91b6befc703fc5181b093fc557d07 100644 (file)
@@ -40,3 +40,4 @@ public:
 };
 
 #endif /* ICMPCONFIG_H */
+
index 95f7a6fe40d44d0325f6ee10ef6b140ea229f046..c6602b36e4357cd036a212d5f101b945c7988db1 100644 (file)
@@ -218,3 +218,4 @@ IcmpPinger::SendResult(pingerReplyData &preply, int len)
 }
 
 #endif /* USE_ICMP */
+
index 03607937622715e098c46cd495dacc9f2f4a2c44..f012b5ccdc81bb5cc067a83436449f8f79eef443 100644 (file)
@@ -56,3 +56,4 @@ extern IcmpPinger control;
 #endif
 
 #endif
+
index 63cb78897baa842fdecf54616328ce863feb23c1..83deeb032a47a096841ebc9b3b97b407b6c50ee0 100644 (file)
@@ -282,3 +282,4 @@ IcmpSquid::Close(void)
 
 #endif
 }
+
index 503a4abf55c260322759dda41a45d234e3ea44a9..b21fe26c39c796b39652a43c0bc0d802c9447898 100644 (file)
@@ -42,3 +42,4 @@ public:
 extern IcmpSquid icmpEngine;
 
 #endif /* _INCLUDE_ICMPSQUID_H */
+
index 19ed0d057d5cd09cd24d12def2004f95f3cb608c..198c37b8bacf31da5808065e0d4381b311ff741a 100644 (file)
@@ -50,7 +50,7 @@
 #include "ipcache.h"
 #include "StoreClient.h"
 
-#define        NETDB_REQBUF_SZ 4096
+#define NETDB_REQBUF_SZ 4096
 
 typedef enum {
     STATE_NONE,
@@ -568,7 +568,7 @@ netdbReloadState(void)
         if (! (addr = q) )
             continue;
 
-        if (netdbLookupAddr(addr) != NULL)     /* no dups! */
+        if (netdbLookupAddr(addr) != NULL)  /* no dups! */
             continue;
 
         if ((q = strtok(NULL, w_space)) == NULL)
@@ -616,7 +616,7 @@ netdbReloadState(void)
         netdbHashInsert(n, addr);
 
         while ((q = strtok(NULL, w_space)) != NULL) {
-            if (netdbLookupHost(q) != NULL)    /* no dups! */
+            if (netdbLookupHost(q) != NULL) /* no dups! */
                 continue;
 
             netdbHostInsert(n, q);
@@ -1148,7 +1148,7 @@ netdbExchangeUpdatePeer(Ip::Address &addr, CachePeer * e, double rtt, double hop
 
     p->hops = hops;
 
-    p->expires = squid_curtime + 3600; /* XXX ? */
+    p->expires = squid_curtime + 3600;  /* XXX ? */
 
     if (n->n_peers < 2)
         return;
@@ -1206,7 +1206,7 @@ netdbBinaryExchange(StoreEntry * s)
         if (0.0 == n->rtt)
             continue;
 
-        if (n->rtt > 60000)    /* RTT > 1 MIN probably bogus */
+        if (n->rtt > 60000) /* RTT > 1 MIN probably bogus */
             continue;
 
         if (! (addr = n->network) )
@@ -1304,7 +1304,7 @@ netdbExchangeStart(void *data)
     tempBuffer.data = ex->buf;
     storeClientCopy(ex->sc, ex->e, tempBuffer,
                     netdbExchangeHandleReply, ex);
-    ex->r->flags.loopDetected = true;  /* cheat! -- force direct */
+    ex->r->flags.loopDetected = true;   /* cheat! -- force direct */
 
     // XXX: send as Proxy-Authenticate instead
     if (p->login)
@@ -1358,13 +1358,13 @@ netdbClosestParent(HttpRequest * request)
 
         p = peerFindByName(h->peername);
 
-        if (NULL == p)         /* not found */
+        if (NULL == p)      /* not found */
             continue;
 
         if (neighborType(p, request) != PEER_PARENT)
             continue;
 
-        if (!peerHTTPOkay(p, request)) /* not allowed */
+        if (!peerHTTPOkay(p, request))  /* not allowed */
             continue;
 
         return p;
@@ -1373,3 +1373,4 @@ netdbClosestParent(HttpRequest * request)
 #endif
     return NULL;
 }
+
index ad5a89c38d893a87aca972cbb8129fae559ab39a..a9f6d925e86ca24358d22271e2596ddada865b94 100644 (file)
@@ -78,3 +78,4 @@ CachePeer *netdbClosestParent(HttpRequest *);
 void netdbHostData(const char *host, int *samp, int *rtt, int *hops);
 
 #endif /* ICMP_NET_DB_H */
+
index 7303e4d62d1f66692ac3323960266271a7c4b369..c064bc1663f0990a105bb81182776093a59053fe 100644 (file)
@@ -82,9 +82,9 @@ Win32__WSAFDIsSet(int fd, fd_set FAR * set)
 #define PINGER_TIMEOUT 10
 
 /* non-windows use STDOUT for feedback to squid */
-#define LINK_TO_SQUID  1
+#define LINK_TO_SQUID   1
 
-#endif /* _SQUID_WINDOWS_ */
+#endif  /* _SQUID_WINDOWS_ */
 
 // ICMP Engines are declared global here so they can call each other easily.
 IcmpPinger control;
@@ -234,3 +234,4 @@ main(int argc, char *argv[])
 }
 
 #endif /* USE_ICMP */
+
index 7217a0dfb9217028ff19488921db625ce9fe8748..de9722a358d25bafe4bc8b993ad8a93bca7b18c6 100644 (file)
@@ -115,3 +115,4 @@ testIcmp::testHops()
 }
 
 #endif /* USE_ICMP */
+
index 74ef80a28a4dc35d2c2006036c9fe9e7a1be1e9f..e720e0ac6a894df5184151bee91183c814c05df9 100644 (file)
@@ -55,3 +55,4 @@ protected:
 };
 
 #endif
+
index 55299ac119b73e14fc6ff51e99933aaaa232f5ad..92e68ad492d96c8973a544b25e295e6c672c76d7 100644 (file)
@@ -41,3 +41,4 @@ typedef enum {
 extern const char *icp_opcode_str[];
 
 #endif /* _SQUID_ICP_OPCODE_H */
+
index 9686aaae2246c76eb788e2203c834c5549c71221..5ff6c3cd500e9cbb7ba19d490b0e508b81d46240 100644 (file)
@@ -75,12 +75,12 @@ Comm::ConnectionPointer icpOutgoingConn = NULL;
 
 /* icp_common_t */
 _icp_common_t::_icp_common_t() :
-        opcode(ICP_INVALID), version(0), length(0), reqnum(0),
-        flags(0), pad(0), shostid(0)
+    opcode(ICP_INVALID), version(0), length(0), reqnum(0),
+    flags(0), pad(0), shostid(0)
 {}
 
 _icp_common_t::_icp_common_t(char *buf, unsigned int len) :
-        opcode(ICP_INVALID), version(0), reqnum(0), flags(0), pad(0), shostid(0)
+    opcode(ICP_INVALID), version(0), reqnum(0), flags(0), pad(0), shostid(0)
 {
     if (len < sizeof(_icp_common_t)) {
         /* mark as invalid */
@@ -110,10 +110,10 @@ _icp_common_t::getOpCode() const
 /* ICPState */
 
 ICPState::ICPState(icp_common_t &aHeader, HttpRequest *aRequest):
-        header(aHeader),
-        request(aRequest),
-        fd(-1),
-        url(NULL)
+    header(aHeader),
+    request(aRequest),
+    fd(-1),
+    url(NULL)
 {
     HTTPMSGLOCK(request);
 }
@@ -134,7 +134,7 @@ class ICP2State : public ICPState, public StoreClient
 
 public:
     ICP2State(icp_common_t & aHeader, HttpRequest *aRequest):
-            ICPState(aHeader, aRequest),rtt(0),src_rtt(0),flags(0) {}
+        ICPState(aHeader, aRequest),rtt(0),src_rtt(0),flags(0) {}
 
     ~ICP2State();
     void created(StoreEntry * newEntry);
@@ -633,7 +633,7 @@ icpHandleUdp(int sock, void *data)
             break;
         }
 
-        icp_version = (int) buf[1];    /* cheat! */
+        icp_version = (int) buf[1]; /* cheat! */
 
         if (icpOutgoingConn->local == from)
             // ignore ICP packets which loop back (multicast usually)
@@ -834,3 +834,4 @@ icpGetCacheKey(const char *url, int reqnum)
 
     return storeKeyPublic(url, Http::METHOD_GET);
 }
+
index 16a0dbc181f901f3cd2fdd9f2c95e5559bb18033..15100653c498ab5865053b24100546c9c28f8bf7 100644 (file)
@@ -24,7 +24,7 @@ class ICP3State : public ICPState, public StoreClient
 
 public:
     ICP3State(icp_common_t &aHeader, HttpRequest *aRequest) :
-            ICPState(aHeader, aRequest) {}
+        ICPState(aHeader, aRequest) {}
 
     ~ICP3State();
     void created (StoreEntry *newEntry);
@@ -126,3 +126,4 @@ icpHandleIcpV3(int fd, Ip::Address &from, char *buf, int len)
         break;
     }
 }
+
index 7efbc49531afaf0b03f4291f0ae5b49a99ed858f..bc640fdd14ae49d166fbd205d74afd171d47a1cf 100644 (file)
@@ -138,3 +138,4 @@ IdentLookup::LookupDone(const char *ident, void *data)
 }
 
 #endif /* USE_IDENT */
+
index e0d2280eb6033953ed0aa3b25c595b9152f2761b..50901fb592c5eb76de703c35fd2d7289698b1e1d 100644 (file)
@@ -60,3 +60,4 @@ private:
 
 #endif /* USE_IDENT */
 #endif /* SQUID_IDENT_ACLIDENT_H */
+
index ef70fd5c15cb142038b61c36bb671009afe89a05..9af8efcb9309b5bef254dedcd4a5de74ea063675 100644 (file)
@@ -29,3 +29,4 @@ extern IdentConfig TheConfig;
 
 #endif /* USE_IDENT */
 #endif /* SQUID_IDENT_CONFIG_H */
+
index 3169c1ef3a94dea5a87c5f3feffa587c39bdb333..1058062e9127c8fb450f09d343b1b905e9ff8657 100644 (file)
@@ -39,7 +39,7 @@ typedef struct _IdentClient {
 class IdentStateData
 {
 public:
-    hash_link hash;            /* must be first */
+    hash_link hash;     /* must be first */
 private:
     CBDATA_CLASS(IdentStateData);
 
@@ -287,3 +287,4 @@ Ident::Init(void)
 }
 
 #endif /* USE_IDENT */
+
index d0b971bd84292ef1a21f0efd373fb3712b4b01fe..37dbb85cb7b6e90dc601b0a140264cc6ff21648d 100644 (file)
@@ -38,3 +38,4 @@ void Init(void);
 
 #endif /* USE_IDENT */
 #endif /* SQUID_IDENT_H */
+
index ba7f999fee83662350d8270f0ab238912a89ba7d..9dcead258bfad3899e4a6d112c8cccab22c95cc7 100644 (file)
@@ -22,3 +22,4 @@ isPowTen(int count)
 
     return 1;
 }
+
index 626e6bb8b3a02d0dc13c83f9014cf40b54ff40c2..df4a31a6fcddcd2165c62f15902067a3b6cbf237 100644 (file)
--- a/src/int.h
+++ b/src/int.h
@@ -14,3 +14,4 @@
 int isPowTen(int); //int.cc
 
 #endif /* SQUID_INT_H_ */
+
index 0dc3edd3e12a8653c060b7507378676e595dc501..a3a8f4a11fcf2ed002a0ba9eab9621383e6df872 100644 (file)
@@ -161,3 +161,4 @@ internalHostnameIs(const char *arg)
 
     return 0;
 }
+
index aeeeb43cfff232325fb7b55ce022787f944c3e67..b4a39c37dc039d7a0cd98976406745c74b93bc22 100644 (file)
@@ -27,3 +27,4 @@ const char *internalHostname(void);
 int internalHostnameIs(const char *);
 
 #endif /* SQUID_INTERNAL_H_ */
+
index 682a20b8d2b1c411b2f7135b7d8a81ccf6d0215a..e4bb1b2d206edfd86edffd953164505dab3a6516 100644 (file)
 
 /* Debugging only. Dump the address content when a fatal assert is encountered. */
 #define IASSERT(a,b)  \
-       if(!(b)){       printf("assert \"%s\" at line %d\n", a, __LINE__); \
-               printf("Ip::Address invalid? with isIPv4()=%c, isIPv6()=%c\n",(isIPv4()?'T':'F'),(isIPv6()?'T':'F')); \
-               printf("ADDRESS:"); \
-               for(unsigned int i = 0; i < sizeof(mSocketAddr_.sin6_addr); ++i) { \
-                       printf(" %x", mSocketAddr_.sin6_addr.s6_addr[i]); \
-               } printf("\n"); assert(b); \
-       }
+    if(!(b)){   printf("assert \"%s\" at line %d\n", a, __LINE__); \
+        printf("Ip::Address invalid? with isIPv4()=%c, isIPv6()=%c\n",(isIPv4()?'T':'F'),(isIPv6()?'T':'F')); \
+        printf("ADDRESS:"); \
+        for(unsigned int i = 0; i < sizeof(mSocketAddr_.sin6_addr); ++i) { \
+            printf(" %x", mSocketAddr_.sin6_addr.s6_addr[i]); \
+        } printf("\n"); assert(b); \
+    }
 
 int
 Ip::Address::cidr() const
@@ -189,17 +189,29 @@ const struct in6_addr Ip::Address::v4_anyaddr = {{{ 0x00000000, 0x00000000, 0x00
 const struct in6_addr Ip::Address::v4_noaddr = {{{ 0x00000000, 0x00000000, 0x0000ffff, 0xffffffff }}};
 const struct in6_addr Ip::Address::v6_noaddr = {{{ 0xffffffff, 0xffffffff, 0xffffffff, 0xffffffff }}};
 #else
-const struct in6_addr Ip::Address::v4_localhost = {{{ 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
-            0x00, 0x00, 0xff, 0xff, 0x7f, 0x00, 0x00, 0x01 }}
+const struct in6_addr Ip::Address::v4_localhost = {{{
+            0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
+            0x00, 0x00, 0xff, 0xff, 0x7f, 0x00, 0x00, 0x01
+        }
+    }
 };
-const struct in6_addr Ip::Address::v4_anyaddr = {{{ 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
-            0x00, 0x00, 0xff, 0xff, 0x00, 0x00, 0x00, 0x00 }}
+const struct in6_addr Ip::Address::v4_anyaddr = {{{
+            0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
+            0x00, 0x00, 0xff, 0xff, 0x00, 0x00, 0x00, 0x00
+        }
+    }
 };
-const struct in6_addr Ip::Address::v4_noaddr = {{{ 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
-            0x00, 0x00, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff }}
+const struct in6_addr Ip::Address::v4_noaddr = {{{
+            0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
+            0x00, 0x00, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff
+        }
+    }
 };
-const struct in6_addr Ip::Address::v6_noaddr = {{{ 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff,
-            0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff }}
+const struct in6_addr Ip::Address::v6_noaddr = {{{
+            0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff,
+            0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff
+        }
+    }
 };
 #endif
 
@@ -1000,3 +1012,4 @@ Ip::Address::getInAddr(struct in_addr &buf) const
     assert(false);
     return false;
 }
+
index d8a6f126265df4a9cd2d83f123774e34d6142a1c..9cd93e623ebfccee2607322ce147e64ecdb6405c 100644 (file)
@@ -171,8 +171,8 @@ public:
 
     /** Require an IPv4-only address for this usage.
      *  Converts the object to prefer only IPv4 output.
-     \retval true      Content can be IPv4
-     \retval false     Content CANNOT be IPv4
+     \retval true   Content can be IPv4
+     \retval false  Content CANNOT be IPv4
      */
     bool setIPv4();
 
@@ -286,8 +286,8 @@ public:
     /**
      *  Lookup a Host by Name. Equivalent to system call gethostbyname(char*)
      \param s The textual FQDN of the host being located.
-     \retval true      lookup was successful and an IPA was located.
-     \retval false     lookup failed or FQDN has no IP associated.
+     \retval true   lookup was successful and an IPA was located.
+     \retval false  lookup failed or FQDN has no IP associated.
      */
     bool GetHostByName(const char *s);
 
@@ -365,3 +365,4 @@ public:
 void parse_IpAddress_list_token(Ip::Address_list **, char *);
 
 #endif /* _SQUID_SRC_IP_ADDRESS_H */
+
index fe649af4fb0b03fa0ce8bdd015bf580b2c750c21..27b84c02177119ffd4fec4197d6e239d98c8f963 100644 (file)
@@ -84,7 +84,7 @@
 #include <linux/netfilter_ipv6/ip6_tables.h>
 #endif
 #if !defined(IP6T_SO_ORIGINAL_DST)
-#define IP6T_SO_ORIGINAL_DST   80      // stolen with prejudice from the above file.
+#define IP6T_SO_ORIGINAL_DST    80  // stolen with prejudice from the above file.
 #endif
 #endif /* LINUX_NETFILTER required headers */
 
@@ -463,3 +463,4 @@ Ip::Intercept::ProbeForTproxy(Ip::Address &test)
         leave_suid();
     return false;
 }
+
index 3431cad8e33316e0062a0eb2b78a0e4ac1fae2f4..b9bb510b5d77b5bf39d094d6c3d01d6d77c2d982 100644 (file)
@@ -48,7 +48,7 @@ public:
     bool ProbeForTproxy(Address &test);
 
     /**
-     \retval 0 Full transparency is disabled.
+     \retval 0  Full transparency is disabled.
      \retval 1  Full transparency is enabled and active.
      */
     inline int TransparentActive() { return transparentActive_; };
@@ -69,7 +69,7 @@ public:
     void StopTransparency(const char *str);
 
     /**
-     \retval 0 IP Interception is disabled.
+     \retval 0  IP Interception is disabled.
      \retval 1  IP Interception is enabled and active.
      */
     inline int InterceptActive() { return interceptActive_; };
@@ -156,3 +156,4 @@ extern Intercept Interceptor;
 } // namespace Ip
 
 #endif /* SQUID_IP_IPINTERCEPT_H */
+
index 4699c3fc58e6baf5d9d4aa5fc5bd8e143405ef24..abbc1e7eb6a15e2d060b2d1761fbb3d90880bb8f 100644 (file)
@@ -125,3 +125,4 @@ Ip::Qos::Config::isAclTosActive() const
 
     return false;
 }
+
index 7a79f79f33379c9b0ddc6c457897f6cb4bcc92d1..de8fc3907a726047c2b4e1196112f2e04d98551d 100644 (file)
@@ -190,12 +190,12 @@ Ip::Qos::doNfmarkLocalHit(const Comm::ConnectionPointer &conn)
 Ip::Qos::Config Ip::Qos::TheConfig;
 
 Ip::Qos::Config::Config() : tosLocalHit(0), tosSiblingHit(0), tosParentHit(0),
-        tosMiss(0), tosMissMask(0), preserveMissTos(false),
-        preserveMissTosMask(0xFF), markLocalHit(0), markSiblingHit(0),
-        markParentHit(0), markMiss(0), markMissMask(0),
-        preserveMissMark(false), preserveMissMarkMask(0xFFFFFFFF),
-        tosToServer(NULL), tosToClient(NULL), nfmarkToServer(NULL),
-        nfmarkToClient(NULL)
+    tosMiss(0), tosMissMask(0), preserveMissTos(false),
+    preserveMissTosMask(0xFF), markLocalHit(0), markSiblingHit(0),
+    markParentHit(0), markMiss(0), markMissMask(0),
+    preserveMissMark(false), preserveMissMarkMask(0xFFFFFFFF),
+    tosToServer(NULL), tosToClient(NULL), nfmarkToServer(NULL),
+    nfmarkToClient(NULL)
 {
 }
 
@@ -436,3 +436,4 @@ Ip::Qos::Config::dumpConfigLine(char *entry, const char *name) const
 #if !_USE_INLINE_
 #include "Qos.cci"
 #endif
+
index b90b7ba7a5717affaa6b5c25bca27f5dfcb25cd9..aaa5c6e06169f8a35370fb5d0203fcca850b409c 100644 (file)
@@ -222,13 +222,13 @@ public:
 extern Config TheConfig;
 
 /* legacy parser access wrappers */
-#define parse_QosConfig(X)     (X)->parseConfigLine()
+#define parse_QosConfig(X)  (X)->parseConfigLine()
 #define free_QosConfig(X)
 #define dump_QosConfig(e,n,X) do { \
-               char temp[256]; /* random number. change as needed. max config line length. */ \
-               (X).dumpConfigLine(temp,n); \
-               storeAppendPrintf(e, "%s", temp); \
-       } while(0);
+        char temp[256]; /* random number. change as needed. max config line length. */ \
+        (X).dumpConfigLine(temp,n); \
+            storeAppendPrintf(e, "%s", temp); \
+    } while(0);
 
 } // namespace Qos
 
@@ -239,3 +239,4 @@ extern Config TheConfig;
 #endif
 
 #endif /* SQUID_QOSCONFIG_H */
+
index 8f7c870bcf6b2a777786d0352185c3a68b87ffed..b8d8cc1709b9549b93723f435c45fb54a9ec7339 100644 (file)
@@ -18,3 +18,4 @@ namespace Ip
 class Address;
 }
 #endif /* _SQUID_IP_FORWARD_H */
+
index caa4545fe3fb418e0b84837e76af896e9eca3cc7..b56dc063747b31aa5c3e500df143217bd4e092e6 100644 (file)
@@ -85,3 +85,4 @@ Ip::Qos::dumpConfigLine(char *entry, const char *name)
 #if !_USE_INLINE_
 #include "Qos.cci"
 #endif
+
index 182963cbc8bec8338bb9f9ff1bfb48a99fd4da7e..2f36587f954a3a7cf9c06f2d8de85ac3c6486e73 100644 (file)
@@ -784,3 +784,4 @@ testIpAddress::testBugNullingDisplay()
     CPPUNIT_ASSERT( memcmp( &expectval, &outval, sizeof(struct in_addr)) == 0 );
 
 }
+
index 4ad6d5714d2163bc8f17b6438100e1922add1444..3b49eeb30a37a5250eba7a412976371b0100e979 100644 (file)
@@ -68,3 +68,4 @@ protected:
 };
 
 #endif /* SQUID_SRC_TEST_IPADDRESS_H */
+
index f551f3aeb84a375bcd675d3daa63cc85c193e01b..2363f6e31b65dff3b96e603d47d8ca364aec75da 100644 (file)
@@ -64,3 +64,4 @@ Ip::ProbeTransport()
     EnableIpv6 = IPV6_OFF;
 #endif
 }
+
index fb9e9b995b3c05549bb92ab04b83ed66d2bdaa8d..adb5c3ad8e425be7e3b85d46a708d4dc29fd3596 100644 (file)
@@ -27,3 +27,4 @@ extern int EnableIpv6;
 } // namespace Ip
 
 #endif /* _SQUID_SRC_IP_TOOLS_H */
+
index 0b6ecc0db143753b7eb12e9adc8e8d9a1060d4b6..240d5d622dafa70a8d724cc24b16b0a42d8b01fb 100644 (file)
@@ -98,9 +98,9 @@ ipcCreate(int type, const char *prog, const char *const args[], const char *name
                                 COMM_NOCLOEXEC,
                                 name);
         prfd = pwfd = comm_open(SOCK_STREAM,
-                                0,                     /* protocol */
+                                0,          /* protocol */
                                 local_addr,
-                                0,                     /* blocking */
+                                0,          /* blocking */
                                 name);
         IPC_CHECK_FAIL(crfd, "child read", "TCP " << local_addr);
         IPC_CHECK_FAIL(prfd, "parent read", "TCP " << local_addr);
@@ -230,7 +230,7 @@ ipcCreate(int type, const char *prog, const char *const args[], const char *name
         return ipcCloseAllFD(prfd, pwfd, crfd, cwfd);
     }
 
-    if (pid > 0) {             /* parent */
+    if (pid > 0) {      /* parent */
         /* close shared socket with child */
         comm_close(crfd);
 
@@ -290,7 +290,7 @@ ipcCreate(int type, const char *prog, const char *const args[], const char *name
 
     /* child */
     TheProcessKind = pkHelper;
-    no_suid();                 /* give up extra priviliges */
+    no_suid();          /* give up extra priviliges */
 
     /* close shared socket with parent */
     close(prfd);
@@ -391,3 +391,4 @@ ipcCreate(int type, const char *prog, const char *const args[], const char *name
 
     return 0;
 }
+
index a3509cc4ccef3f7bf6c0c1eff38dda8f57aeb139..925de887ccdaf1e0df1f6965feab35fcafe41c5b 100644 (file)
@@ -20,3 +20,4 @@ bool Ipc::Atomic::Enabled()
     return !UsingSmp();
 #endif
 }
+
index e581246a8608ac2dadaef0c5b00a845c8ef4811d..2a9a9e9b5f2fe428bd7bc0da9c4e58ba5630c907 100644 (file)
@@ -102,3 +102,4 @@ typedef WordT<int> Word;
 } // namespace Ipc
 
 #endif // SQUID_IPC_ATOMIC_WORD_H
+
index a968fedeee5a7159bb12ccb044ec2766683321c7..b75a7edba7bea260b9432890f89dee7bb1239038 100644 (file)
@@ -32,7 +32,7 @@ CBDATA_NAMESPACED_CLASS_INIT(Ipc, Coordinator);
 Ipc::Coordinator* Ipc::Coordinator::TheInstance = NULL;
 
 Ipc::Coordinator::Coordinator():
-        Port(Ipc::Port::CoordinatorAddr())
+    Port(Ipc::Port::CoordinatorAddr())
 {
 }
 
@@ -303,3 +303,4 @@ Ipc::Coordinator::strands() const
 {
     return strands_;
 }
+
index d5ae68190c34e092a2ecff2f313c885a4e947855..4e863999e1db4f4a9e4494b6c11335bd042700b4 100644 (file)
@@ -84,3 +84,4 @@ private:
 } // namespace Ipc
 
 #endif /* SQUID_IPC_COORDINATOR_H */
+
index a88f8492f64d817e4024376c611dfdd704ee4932..92e403c99b56c30f4a834855e4e54b30932fdeca 100644 (file)
@@ -34,3 +34,4 @@ Ipc::FdNote(int fdNoteId)
     debugs(54, DBG_IMPORTANT, HERE << "salvaged bug: wrong fd_note ID: " << fdNoteId);
     return FdNotes[fdnNone];
 }
+
index d3b50b4edd680d2f2fcf31126c84ee8de3f2aa27..3999ed55cae79fe6fde5a819d4ec2924e25a6c7a 100644 (file)
@@ -29,3 +29,4 @@ const char *FdNote(int fdNodeId); ///< converts FdNoteId into a string
 } // namespace Ipc;
 
 #endif /* SQUID_IPC_FD_NOTES_H */
+
index b93439f8cb76f8c166d80c54f0fec6e964f5661f..3c347f406cfa7a690065fee604a9576dfb63c75c 100644 (file)
@@ -24,8 +24,8 @@ Ipc::Forwarder::RequestsMap Ipc::Forwarder::TheRequestsMap;
 unsigned int Ipc::Forwarder::LastRequestId = 0;
 
 Ipc::Forwarder::Forwarder(Request::Pointer aRequest, double aTimeout):
-        AsyncJob("Ipc::Forwarder"),
-        request(aRequest), timeout(aTimeout)
+    AsyncJob("Ipc::Forwarder"),
+    request(aRequest), timeout(aTimeout)
 {
     debugs(54, 5, HERE);
 }
@@ -182,3 +182,4 @@ Ipc::Forwarder::HandleRemoteAck(unsigned int requestId)
     if (call != NULL)
         ScheduleCallHere(call);
 }
+
index 93af9b9c011cc5171da659c2cd7f7ad716308847..8e6533e9f4adf7f5aacd475d6046dde2b4479203 100644 (file)
@@ -71,3 +71,4 @@ protected:
 } // namespace Ipc
 
 #endif /* SQUID_IPC_FORWARDER_H */
+
index 3d6029a87846c52ed83dab13b39a6d63b8ef40a4..d445ff51052a8062267a7f6b102ed50f852c05e0 100644 (file)
@@ -32,8 +32,8 @@ LesserStrandByKidId(const Ipc::StrandCoord &c1, const Ipc::StrandCoord &c2)
 
 Ipc::Inquirer::Inquirer(Request::Pointer aRequest, const StrandCoords& coords,
                         double aTimeout):
-        AsyncJob("Ipc::Inquirer"),
-        request(aRequest), strands(coords), pos(strands.begin()), timeout(aTimeout)
+    AsyncJob("Ipc::Inquirer"),
+    request(aRequest), strands(coords), pos(strands.begin()), timeout(aTimeout)
 {
     debugs(54, 5, HERE);
 
@@ -207,3 +207,4 @@ Ipc::Inquirer::status() const
     buf.terminate();
     return buf.content();
 }
+
index c4d1e37dfac71cbccb8acc4ac37b372b975170e3..88cd5c0bf38d3bacd4c345586cf76a554790f2fb 100644 (file)
@@ -85,3 +85,4 @@ protected:
 } // namespace Ipc
 
 #endif /* SQUID_IPC_INQUIRER_H */
+
index 17e3637f494f301d9bc624bde8e14387b057cb73..215b85cf477ed81d4a9875424471b55df3ea993f 100644 (file)
 int TheProcessKind = pkOther;
 
 Kid::Kid():
-        badFailures(0),
-        pid(-1),
-        startTime(0),
-        isRunning(false),
-        status(0)
+    badFailures(0),
+    pid(-1),
+    startTime(0),
+    isRunning(false),
+    status(0)
 {
 }
 
 Kid::Kid(const String& kid_name):
-        theName(kid_name),
-        badFailures(0),
-        pid(-1),
-        startTime(0),
-        isRunning(false),
-        status(0)
+    theName(kid_name),
+    badFailures(0),
+    pid(-1),
+    startTime(0),
+    isRunning(false),
+    status(0)
 {
 }
 
@@ -145,3 +145,4 @@ const String& Kid::name() const
 {
     return theName;
 }
+
index 97fe55a1312a8e4ceaaf5b852c83ea252b2c932a..607575755ca8ddc6f6c4468e6db3784f09905643 100644 (file)
@@ -102,3 +102,4 @@ typedef enum {
 extern int TheProcessKind;
 
 #endif /* SQUID_IPC_KID_H */
+
index 19b175e3778cbc258041416b7df7a8de30535c64..a6f5a27e12576e98c0c655c03a8101baa011b7fd 100644 (file)
@@ -127,3 +127,4 @@ size_t Kids::count() const
 {
     return storage.size();
 }
+
index b957de14f8f9a0a70404dd235dc28a25115eb46a..6e3adff94764f8e25e277bfad2936b18b63f65cf 100644 (file)
@@ -61,3 +61,4 @@ typedef char KidName[64]; ///< Squid process name (e.g., "squid-coord")
 extern KidName TheKidName; ///< current Squid process name
 
 #endif /* SQUID_IPC_KIDS_H */
+
index 47b5ca87355dbe91e917f4b4ee83b3a8b31f9f18..d9bed9d1d84096c2537e900bae0bbb703b0154bd 100644 (file)
@@ -14,9 +14,9 @@
 #include "tools.h"
 
 Ipc::MemMap::MemMap(const char *const aPath) :
-        cleaner(NULL),
-        path(aPath),
-        shared(shm_old(Shared)(aPath))
+    cleaner(NULL),
+    path(aPath),
+    shared(shm_old(Shared)(aPath))
 {
     assert(shared->limit > 0); // we should not be created otherwise
     debugs(54, 5, "attached map [" << path << "] created: " <<
@@ -281,8 +281,8 @@ Ipc::MemMap::freeLocked(Slot &s, bool keepLocked)
 
 /* Ipc::MemMapSlot */
 Ipc::MemMapSlot::MemMapSlot() :
-        pSize(0),
-        expire(0)
+    pSize(0),
+    expire(0)
 {
     memset(key, 0, sizeof(key));
     memset(p, 0, sizeof(p));
@@ -317,7 +317,7 @@ Ipc::MemMapSlot::empty() const
 /* Ipc::MemMap::Shared */
 
 Ipc::MemMap::Shared::Shared(const int aLimit, const size_t anExtrasSize):
-        limit(aLimit), extrasSize(anExtrasSize), count(0), slots(aLimit)
+    limit(aLimit), extrasSize(anExtrasSize), count(0), slots(aLimit)
 {
 }
 
@@ -336,3 +336,4 @@ Ipc::MemMap::Shared::SharedMemorySize(const int limit, const size_t extrasSize)
 {
     return sizeof(Shared) + limit * (sizeof(Slot) + extrasSize);
 }
+
index 7923df291511ab64a0aff4fc9becd6a60d2eecf4..ea567167f06e0d48872c67f0a0416b8d8eb999bf 100644 (file)
@@ -146,3 +146,4 @@ public:
 } // namespace Ipc
 
 #endif /* SQUID_IPC_STORE_MAP_H */
+
index 2ff0e4bdf4a79dbea272ab01cb5a6133e26801b6..f4d2b91150ed814a089bab8d414304814a279e8d 100644 (file)
@@ -32,3 +32,4 @@ typedef enum { mtNone = 0, mtRegistration,
 } // namespace Ipc;
 
 #endif /* SQUID_IPC_MESSAGES_H */
+
index 0b0e213411bc3fc2df85646065b777550d0bf271..cc05313065da9fa7566438023c6eeac1a94fa59d 100644 (file)
@@ -22,7 +22,7 @@ static const char coordinatorAddrLabel[] = "-coordinator";
 const char Ipc::strandAddrLabel[] =  "-kid";
 
 Ipc::Port::Port(const String& aListenAddr):
-        UdsOp(aListenAddr)
+    UdsOp(aListenAddr)
 {
     setOptions(COMM_NONBLOCKING | COMM_DOBIND);
 }
@@ -86,3 +86,4 @@ void Ipc::Port::noteRead(const CommIoCbParams& params)
 
     doListen();
 }
+
index 588ebf8c78b23244bbfb23d1c3d3dbbfb9267c1b..5ad033235dffc43990cd46bd0abc2211b089db5f 100644 (file)
@@ -50,3 +50,4 @@ extern const char strandAddrLabel[]; ///< strand's listening address unique labe
 } // namespace Ipc
 
 #endif /* SQUID_IPC_PORT_H */
+
index f2246185176558b207ff5ac1a1906a3d5abef343..aa284193d37b2e7d8ef6ee3dedf66baa0853a353 100644 (file)
@@ -45,7 +45,7 @@ ReadersId(String id)
 InstanceIdDefinitions(Ipc::QueueReader, "ipcQR");
 
 Ipc::QueueReader::QueueReader(): popBlocked(1), popSignal(0),
-        rateLimit(0), balance(0)
+    rateLimit(0), balance(0)
 {
     debugs(54, 7, HERE << "constructed " << id);
 }
@@ -53,7 +53,7 @@ Ipc::QueueReader::QueueReader(): popBlocked(1), popSignal(0),
 /* QueueReaders */
 
 Ipc::QueueReaders::QueueReaders(const int aCapacity): theCapacity(aCapacity),
-        theReaders(theCapacity)
+    theReaders(theCapacity)
 {
     Must(theCapacity > 0);
 }
@@ -73,8 +73,8 @@ Ipc::QueueReaders::SharedMemorySize(const int capacity)
 // OneToOneUniQueue
 
 Ipc::OneToOneUniQueue::OneToOneUniQueue(const unsigned int aMaxItemSize, const int aCapacity):
-        theIn(0), theOut(0), theSize(0), theMaxItemSize(aMaxItemSize),
-        theCapacity(aCapacity)
+    theIn(0), theOut(0), theSize(0), theMaxItemSize(aMaxItemSize),
+    theCapacity(aCapacity)
 {
     Must(theMaxItemSize > 0);
     Must(theCapacity > 0);
@@ -131,8 +131,8 @@ Ipc::OneToOneUniQueues::operator [](const int index) const
 // BaseMultiQueue
 
 Ipc::BaseMultiQueue::BaseMultiQueue(const int aLocalProcessId):
-        theLocalProcessId(aLocalProcessId),
-        theLastPopProcessId(std::numeric_limits<int>::max() - 1)
+    theLocalProcessId(aLocalProcessId),
+    theLastPopProcessId(std::numeric_limits<int>::max() - 1)
 {
 }
 
@@ -205,11 +205,11 @@ Ipc::FewToFewBiQueue::Init(const String &id, const int groupASize, const int gro
 }
 
 Ipc::FewToFewBiQueue::FewToFewBiQueue(const String &id, const Group aLocalGroup, const int aLocalProcessId):
-        BaseMultiQueue(aLocalProcessId),
-        metadata(shm_old(Metadata)(MetadataId(id).termedBuf())),
-        queues(shm_old(OneToOneUniQueues)(QueuesId(id).termedBuf())),
-        readers(shm_old(QueueReaders)(ReadersId(id).termedBuf())),
-        theLocalGroup(aLocalGroup)
+    BaseMultiQueue(aLocalProcessId),
+    metadata(shm_old(Metadata)(MetadataId(id).termedBuf())),
+    queues(shm_old(OneToOneUniQueues)(QueuesId(id).termedBuf())),
+    readers(shm_old(QueueReaders)(ReadersId(id).termedBuf())),
+    theLocalGroup(aLocalGroup)
 {
     Must(queues->theCapacity == metadata->theGroupASize * metadata->theGroupBSize * 2);
     Must(readers->theCapacity == metadata->theGroupASize + metadata->theGroupBSize);
@@ -315,17 +315,17 @@ Ipc::FewToFewBiQueue::remotesIdOffset() const
 }
 
 Ipc::FewToFewBiQueue::Metadata::Metadata(const int aGroupASize, const int aGroupAIdOffset, const int aGroupBSize, const int aGroupBIdOffset):
-        theGroupASize(aGroupASize), theGroupAIdOffset(aGroupAIdOffset),
-        theGroupBSize(aGroupBSize), theGroupBIdOffset(aGroupBIdOffset)
+    theGroupASize(aGroupASize), theGroupAIdOffset(aGroupAIdOffset),
+    theGroupBSize(aGroupBSize), theGroupBIdOffset(aGroupBIdOffset)
 {
     Must(theGroupASize > 0);
     Must(theGroupBSize > 0);
 }
 
 Ipc::FewToFewBiQueue::Owner::Owner(const String &id, const int groupASize, const int groupAIdOffset, const int groupBSize, const int groupBIdOffset, const unsigned int maxItemSize, const int capacity):
-        metadataOwner(shm_new(Metadata)(MetadataId(id).termedBuf(), groupASize, groupAIdOffset, groupBSize, groupBIdOffset)),
-        queuesOwner(shm_new(OneToOneUniQueues)(QueuesId(id).termedBuf(), groupASize*groupBSize*2, maxItemSize, capacity)),
-        readersOwner(shm_new(QueueReaders)(ReadersId(id).termedBuf(), groupASize+groupBSize))
+    metadataOwner(shm_new(Metadata)(MetadataId(id).termedBuf(), groupASize, groupAIdOffset, groupBSize, groupBIdOffset)),
+    queuesOwner(shm_new(OneToOneUniQueues)(QueuesId(id).termedBuf(), groupASize*groupBSize*2, maxItemSize, capacity)),
+    readersOwner(shm_new(QueueReaders)(ReadersId(id).termedBuf(), groupASize+groupBSize))
 {
 }
 
@@ -345,10 +345,10 @@ Ipc::MultiQueue::Init(const String &id, const int processCount, const int proces
 }
 
 Ipc::MultiQueue::MultiQueue(const String &id, const int localProcessId):
-        BaseMultiQueue(localProcessId),
-        metadata(shm_old(Metadata)(MetadataId(id).termedBuf())),
-        queues(shm_old(OneToOneUniQueues)(QueuesId(id).termedBuf())),
-        readers(shm_old(QueueReaders)(ReadersId(id).termedBuf()))
+    BaseMultiQueue(localProcessId),
+    metadata(shm_old(Metadata)(MetadataId(id).termedBuf())),
+    queues(shm_old(OneToOneUniQueues)(QueuesId(id).termedBuf())),
+    readers(shm_old(QueueReaders)(ReadersId(id).termedBuf()))
 {
     Must(queues->theCapacity == metadata->theProcessCount * metadata->theProcessCount);
     Must(readers->theCapacity == metadata->theProcessCount);
@@ -419,15 +419,15 @@ Ipc::MultiQueue::remotesIdOffset() const
 }
 
 Ipc::MultiQueue::Metadata::Metadata(const int aProcessCount, const int aProcessIdOffset):
-        theProcessCount(aProcessCount), theProcessIdOffset(aProcessIdOffset)
+    theProcessCount(aProcessCount), theProcessIdOffset(aProcessIdOffset)
 {
     Must(theProcessCount > 0);
 }
 
 Ipc::MultiQueue::Owner::Owner(const String &id, const int processCount, const int processIdOffset, const unsigned int maxItemSize, const int capacity):
-        metadataOwner(shm_new(Metadata)(MetadataId(id).termedBuf(), processCount, processIdOffset)),
-        queuesOwner(shm_new(OneToOneUniQueues)(QueuesId(id).termedBuf(), processCount*processCount, maxItemSize, capacity)),
-        readersOwner(shm_new(QueueReaders)(ReadersId(id).termedBuf(), processCount))
+    metadataOwner(shm_new(Metadata)(MetadataId(id).termedBuf(), processCount, processIdOffset)),
+    queuesOwner(shm_new(OneToOneUniQueues)(QueuesId(id).termedBuf(), processCount*processCount, maxItemSize, capacity)),
+    readersOwner(shm_new(QueueReaders)(ReadersId(id).termedBuf(), processCount))
 {
 }
 
@@ -437,3 +437,4 @@ Ipc::MultiQueue::Owner::~Owner()
     delete queuesOwner;
     delete readersOwner;
 }
+
index 93be91ea65009a177f75ae0cc0fcebff94341785..0aa354914f0ff35b24c965627dd362a694218eca 100644 (file)
@@ -500,3 +500,4 @@ FewToFewBiQueue::findOldest(const int remoteProcessId, Value &value) const
 } // namespace Ipc
 
 #endif // SQUID_IPC_QUEUE_H
+
index cf81b5038d8fabcd76527ed8f4e417c15be5f472..3d8a2a9f7902f73e7fc9075de1b02f97553d5e6b 100644 (file)
@@ -118,3 +118,4 @@ Ipc::ReadWriteLockStats::dump(StoreEntry &e) const
                           appenders, appPerc);
     }
 }
+
index a1825215b4b2cdb3ef6098f1b633cec820d4cfaf..472f5abd53c456361bc39c695ca2c9e3c78ff5c7 100644 (file)
@@ -68,3 +68,4 @@ public:
 } // namespace Ipc
 
 #endif /* SQUID_IPC_READ_WRITE_LOCK_H */
+
index c0880b2d5d7a811d905631b75207c40c80afcac5..2cccea4cffab8c7aeba503b8b38afd9592dedc82 100644 (file)
@@ -25,7 +25,7 @@ public:
 
 public:
     Request(int aRequestorId, unsigned int aRequestId):
-            requestorId(aRequestorId), requestId(aRequestId) {}
+        requestorId(aRequestorId), requestId(aRequestId) {}
 
     virtual void pack(TypedMsgHdr& msg) const = 0; ///< prepare for sendmsg()
     virtual Pointer clone() const = 0; ///< returns a copy of this
@@ -42,3 +42,4 @@ public:
 } // namespace Ipc
 
 #endif /* SQUID_IPC_REQUEST_H */
+
index 7033850e63ff35f4c84628895ed2706e16b8cc53..d5787b8880be3af98a85aab552bafb1608afd300 100644 (file)
@@ -25,7 +25,7 @@ public:
 
 public:
     explicit Response(unsigned int aRequestId):
-            requestId(aRequestId) {}
+        requestId(aRequestId) {}
 
     virtual void pack(TypedMsgHdr& msg) const = 0; ///< prepare for sendmsg()
     virtual Pointer clone() const = 0; ///< returns a copy of this
@@ -48,3 +48,4 @@ std::ostream& operator << (std::ostream &os, const Response& response)
 } // namespace Ipc
 
 #endif /* SQUID_IPC_RESPONSE_H */
+
index 481f7b956eb93ce2eec9f1249bfe77aeebd6bf48..8551913120e5ab60663695037ee0a5fd56c1e99d 100644 (file)
@@ -86,12 +86,12 @@ void Ipc::SharedListenRequest::pack(TypedMsgHdr &hdrMsg) const
 }
 
 Ipc::SharedListenResponse::SharedListenResponse(int aFd, int anErrNo, int aMapId):
-        fd(aFd), errNo(anErrNo), mapId(aMapId)
+    fd(aFd), errNo(anErrNo), mapId(aMapId)
 {
 }
 
 Ipc::SharedListenResponse::SharedListenResponse(const TypedMsgHdr &hdrMsg):
-        fd(-1), errNo(0), mapId(-1)
+    fd(-1), errNo(0), mapId(-1)
 {
     hdrMsg.checkType(mtSharedListenResponse);
     hdrMsg.getPod(*this);
@@ -159,3 +159,4 @@ void Ipc::SharedListenJoined(const SharedListenResponse &response)
     cbd->handlerSubscription = por.params.handlerSubscription;
     ScheduleCallHere(por.callback);
 }
+
index 1713317eb833eba005527aa83542d479bd8475ff..dd6f8ea4743f4cc9dde3c6dfdd588bba4af84820 100644 (file)
@@ -82,3 +82,4 @@ void SharedListenJoined(const SharedListenResponse &response);
 } // namespace Ipc;
 
 #endif /* SQUID_IPC_SHARED_LISTEN_H */
+
index 2cb1acff13fa35f726a1b7caf5e82519d9bae2fc..afb5e2eb06b4cba7d4968d431de98fafb8cb231d 100644 (file)
@@ -58,3 +58,4 @@ Ipc::StartListening(int sock_type, int proto, const Comm::ConnectionPointer &lis
     debugs(54, 3, HERE << "opened listen " << cbd->conn);
     ScheduleCallHere(callback);
 }
+
index 4f7f22b6e3d8d16b139fc334be984c6304f104ba..40dff3617229d548260fd8bfab980b9f8bf1d8f3 100644 (file)
@@ -46,3 +46,4 @@ void StartListening(int sock_type, int proto, const Comm::ConnectionPointer &lis
 } // namespace Ipc;
 
 #endif /* SQUID_IPC_START_LISTENING_H */
+
index 7c4f8d86d3df5a81013e12a010c264caeed95180..b69d6bc1a3f76b33237af7bb9154e2eba3af4127 100644 (file)
@@ -40,8 +40,8 @@ Ipc::StoreMap::Init(const SBuf &path, const int sliceLimit)
 }
 
 Ipc::StoreMap::StoreMap(const SBuf &aPath): cleaner(NULL), path(aPath),
-        anchors(shm_old(Anchors)(StoreMapAnchorsId(path).c_str())),
-        slices(shm_old(Slices)(StoreMapSlicesId(path).c_str()))
+    anchors(shm_old(Anchors)(StoreMapAnchorsId(path).c_str())),
+    slices(shm_old(Slices)(StoreMapSlicesId(path).c_str()))
 {
     debugs(54, 5, "attached " << path << " with " <<
            anchors->capacity << '+' << slices->capacity);
@@ -520,10 +520,10 @@ Ipc::StoreMap::Owner::~Owner()
 /* Ipc::StoreMapAnchors */
 
 Ipc::StoreMapAnchors::StoreMapAnchors(const int aCapacity):
-        count(0),
-        victim(0),
-        capacity(aCapacity),
-        items(aCapacity)
+    count(0),
+    victim(0),
+    capacity(aCapacity),
+    items(aCapacity)
 {
 }
 
index 311141629a28670380ce613ef1f4ec73038f9be6..26d919bc807c8225d4f0196b7070bf295bbfe45a 100644 (file)
@@ -259,3 +259,4 @@ public:
 // resulting in sfilenos that are pointing beyond the database.
 
 #endif /* SQUID_IPC_STORE_MAP_H */
+
index e55ef8344c5a4456170389a61a07aa1c4b6388ea..da212580f0fc8b63c9badda18ca53530641a989c 100644 (file)
@@ -37,8 +37,8 @@
 CBDATA_NAMESPACED_CLASS_INIT(Ipc, Strand);
 
 Ipc::Strand::Strand():
-        Port(MakeAddr(strandAddrLabel, KidIdentifier)),
-        isRegistered(false)
+    Port(MakeAddr(strandAddrLabel, KidIdentifier)),
+    isRegistered(false)
 {
 }
 
@@ -164,3 +164,4 @@ void Ipc::Strand::timedout()
     if (!isRegistered)
         fatalf("kid%d registration timed out", KidIdentifier);
 }
+
index 9c16ea2fe44784885106e3a0036d9a1b0c8eb675..dc6f59482aa9f1e5f665e4431d19226d3a79c446 100644 (file)
@@ -58,3 +58,4 @@ private:
 }
 
 #endif /* SQUID_IPC_STRAND_H */
+
index 531cf5c1b4d26b8ea7251aff9168569220f47ed2..aaf44fd793c197a421102b189c55de4f8c604e46 100644 (file)
@@ -38,7 +38,7 @@ void Ipc::StrandCoord::pack(TypedMsgHdr &hdrMsg) const
 }
 
 Ipc::HereIamMessage::HereIamMessage(const StrandCoord &aStrand):
-        strand(aStrand)
+    strand(aStrand)
 {
 }
 
@@ -53,3 +53,4 @@ void Ipc::HereIamMessage::pack(TypedMsgHdr &hdrMsg) const
     hdrMsg.setType(mtRegistration);
     strand.pack(hdrMsg);
 }
+
index 07f4cf98f147ac7750533f87a28c8bc28197deff..a6f8e0515569c20686034ad30512288ad32d66f0 100644 (file)
@@ -47,3 +47,4 @@ public:
 } // namespace Ipc;
 
 #endif /* SQUID_IPC_STRAND_COORD_H */
+
index b5fe5bcc18c20775584bf95f487b46df17c2ae97..3175b2a24b2297d88e8337b72d4b8bb87eee2274 100644 (file)
@@ -21,3 +21,4 @@ typedef std::vector<StrandCoord> StrandCoords;
 } // namespace Ipc
 
 #endif /* SQUID_IPC_STRAND_COORDS_H */
+
index 4c9dd688a1dddbc647237417eafe3954d3a03e6c..f7b67ec8f2a721bfea3478c7b3de3c7e2bdcdfb0 100644 (file)
@@ -18,7 +18,7 @@ Ipc::StrandSearchRequest::StrandSearchRequest(): requestorId(-1)
 }
 
 Ipc::StrandSearchRequest::StrandSearchRequest(const TypedMsgHdr &hdrMsg):
-        requestorId(-1)
+    requestorId(-1)
 {
     hdrMsg.checkType(mtStrandSearchRequest);
     hdrMsg.getPod(requestorId);
@@ -35,7 +35,7 @@ void Ipc::StrandSearchRequest::pack(TypedMsgHdr &hdrMsg) const
 /* StrandSearchResponse */
 
 Ipc::StrandSearchResponse::StrandSearchResponse(const Ipc::StrandCoord &aStrand):
-        strand(aStrand)
+    strand(aStrand)
 {
 }
 
@@ -50,3 +50,4 @@ void Ipc::StrandSearchResponse::pack(TypedMsgHdr &hdrMsg) const
     hdrMsg.setType(mtStrandSearchResponse);
     strand.pack(hdrMsg);
 }
+
index 8d47f9290b922e6dc786ef4a28512de62b7fdb90..8d9154f2a409fe4b878b2ea9339a6a5077d56657 100644 (file)
@@ -44,3 +44,4 @@ public:
 } // namespace Ipc;
 
 #endif /* SQUID_IPC_STRAND_SEARCH_H */
+
index 3198cf4195503975b5d3988878b9c32c1a2852f0..57e70f0099d6f249bbc5ee5b8ff0b53ddf7e10f4 100644 (file)
@@ -256,3 +256,4 @@ Ipc::TypedMsgHdr::allocControl()
     msg_control = &ctrl;
     msg_controllen = sizeof(ctrl);
 }
+
index 88dfe3a9c5f1ae5f10b0a8b34d8958437acc7f0e..cb993263a06e52089fcd9ea40a9e904957c9cd80 100644 (file)
@@ -106,3 +106,4 @@ private:
 } // namespace Ipc
 
 #endif /* SQUID_IPC_TYPED_MSG_HDR_H */
+
index 393d46b41fef0f461c3e59487278161f3c95548a..9f1e2afec74e4e85ebc6db077e26ea212a80dcfc 100644 (file)
@@ -17,9 +17,9 @@
 #include "ipc/UdsOp.h"
 
 Ipc::UdsOp::UdsOp(const String& pathAddr):
-        AsyncJob("Ipc::UdsOp"),
-        address(PathToAddress(pathAddr)),
-        options(COMM_NONBLOCKING)
+    AsyncJob("Ipc::UdsOp"),
+    address(PathToAddress(pathAddr)),
+    options(COMM_NONBLOCKING)
 {
     debugs(54, 5, HERE << '[' << this << "] pathAddr=" << pathAddr);
 }
@@ -82,12 +82,12 @@ Ipc::PathToAddress(const String& pathAddr) {
 CBDATA_NAMESPACED_CLASS_INIT(Ipc, UdsSender);
 
 Ipc::UdsSender::UdsSender(const String& pathAddr, const TypedMsgHdr& aMessage):
-        UdsOp(pathAddr),
-        message(aMessage),
-        retries(10), // TODO: make configurable?
-        timeout(10), // TODO: make configurable?
-        sleeping(false),
-        writing(false)
+    UdsOp(pathAddr),
+    message(aMessage),
+    retries(10), // TODO: make configurable?
+    timeout(10), // TODO: make configurable?
+    sleeping(false),
+    writing(false)
 {
     message.address(address);
 }
@@ -209,3 +209,4 @@ Ipc::ImportFdIntoComm(const Comm::ConnectionPointer &conn, int socktype, int pro
     }
     return conn;
 }
+
index 00459173a6426d474a968cb29294a5fe15840e45..bcc861731b2fc29e7f545bac8a84607d8f266f42 100644 (file)
@@ -105,3 +105,4 @@ const Comm::ConnectionPointer & ImportFdIntoComm(const Comm::ConnectionPointer &
 }
 
 #endif /* SQUID_IPC_ASYNCUDSOP_H */
+
index c671084d32b91b26cf26ce3f7c258a98a34be905..e876de8576b79dc03ea13d1096267b59d266cfda 100644 (file)
@@ -26,3 +26,4 @@ class Response;
 } // namespace Ipc
 
 #endif /* SQUID_IPC_FORWARD_H */
+
index b64ed81c2297784fcfdfd4221bec7f64ac4a5d19..3a73c899d60ac7753776254bf25a858ee7bfe355 100644 (file)
@@ -48,3 +48,4 @@ private:
 } // namespace Ipc
 
 #endif /* SQUID_IPC_MEM_FLEXIBLE_ARRAY_H */
+
index 47eb71cd19b03aae79cac79a9774d008e27b72e4..19e56c6f367bdece88c636b343e840feb6787e1e 100644 (file)
@@ -17,3 +17,4 @@ std::ostream &Ipc::Mem::operator <<(std::ostream &os, const PageId &page)
 {
     return os << "sh_page" << page.pool << '.' << page.number;
 }
+
index ff65a8bb466a1c309fd1c905c03787861a012c7d..38419b7b8680575c04f129dc451735e6b2a979ba 100644 (file)
@@ -46,3 +46,4 @@ std::ostream &operator <<(std::ostream &os, const PageId &page);
 } // namespace Ipc
 
 #endif // SQUID_IPC_MEM_PAGE_H
+
index 7f8cf94001cd4152472c25d40cdebfaae4b0b805..5ce75aaf868b2e05b18b2137e7fb226a83d55e0f 100644 (file)
@@ -25,11 +25,11 @@ Ipc::Mem::PagePool::Init(const char *const id, const unsigned int capacity, cons
 }
 
 Ipc::Mem::PagePool::PagePool(const char *const id):
-        pageIndex(shm_old(PageStack)(id)),
-        theLevels(reinterpret_cast<Atomic::Word *>(
-                      reinterpret_cast<char *>(pageIndex.getRaw()) +
-                      pageIndex->stackSize())),
-        theBuf(reinterpret_cast<char *>(theLevels + PageId::maxPurpose))
+    pageIndex(shm_old(PageStack)(id)),
+    theLevels(reinterpret_cast<Atomic::Word *>(
+                  reinterpret_cast<char *>(pageIndex.getRaw()) +
+                  pageIndex->stackSize())),
+    theBuf(reinterpret_cast<char *>(theLevels + PageId::maxPurpose))
 {
 }
 
@@ -70,3 +70,4 @@ Ipc::Mem::PagePool::pagePointer(const PageId &page)
     Must(pageIndex->pageIdIsValid(page));
     return theBuf + pageSize() * (page.number - 1);
 }
+
index 78922fe8ce18dbae50e02f104528f3bee2f99be9..dc7d1e101843242bcad2a66da7a33899a3738a09 100644 (file)
@@ -59,3 +59,4 @@ private:
 } // namespace Ipc
 
 #endif // SQUID_IPC_MEM_PAGE_POOL_H
+
index 124aacb371cb29044cd99ff6acdee359dc3f5f55..a9023da42bd70afc5e63cb895785339b28f87858 100644 (file)
 const Ipc::Mem::PageStack::Value Writable = 0;
 
 Ipc::Mem::PageStack::PageStack(const uint32_t aPoolId, const unsigned int aCapacity, const size_t aPageSize):
-        thePoolId(aPoolId), theCapacity(aCapacity), thePageSize(aPageSize),
-        theSize(theCapacity),
-        theLastReadable(prev(theSize)), theFirstWritable(next(theLastReadable)),
-        theItems(aCapacity)
+    thePoolId(aPoolId), theCapacity(aCapacity), thePageSize(aPageSize),
+    theSize(theCapacity),
+    theLastReadable(prev(theSize)), theFirstWritable(next(theLastReadable)),
+    theItems(aCapacity)
 {
     // initially, all pages are free
     for (Offset i = 0; i < theSize; ++i)
@@ -137,3 +137,4 @@ Ipc::Mem::PageStack::stackSize() const
 {
     return StackSize(theCapacity);
 }
+
index f7e2b4704713a40b1b4b5e6f9bc3c6393f191454..a9816103c3313883b899c878f42533744cfd6e0b 100644 (file)
@@ -79,3 +79,4 @@ private:
 } // namespace Ipc
 
 #endif // SQUID_IPC_MEM_PAGE_STACK_H
+
index 83e23e1c815294bfa8478324e9eb5a88b0d7a664..1d80db7bc442b9b1da244f4b573fa38b2bfb9448 100644 (file)
@@ -139,3 +139,4 @@ SharedMemPagesRr::~SharedMemPagesRr()
     ThePagePool = NULL;
     delete owner;
 }
+
index 589a04044a6b82ab07cfa321e4db945caacba8dd..057b410ab92f91533e978f2e6967482b84a8d689 100644 (file)
@@ -61,3 +61,4 @@ void NotePageNeed(const int purpose, const int count);
 } // namespace Ipc
 
 #endif // SQUID_IPC_MEM_PAGES_H
+
index e1943f2ba63e60dd97ee11cd23057768e30d3517..c7c5efdc5c02fd33262456a7e7b199a9496e611d 100644 (file)
@@ -94,7 +94,7 @@ public:
 
 template <class Class>
 Owner<Class>::Owner(const char *const id, const off_t sharedSize):
-        theSegment(id), theObject(NULL)
+    theSegment(id), theObject(NULL)
 {
     theSegment.create(sharedSize);
     Must(theSegment.mem());
@@ -184,3 +184,4 @@ Object<Class>::Old(const char *const id)
 } // namespace Ipc
 
 #endif /* SQUID_IPC_MEM_POINTER_H */
+
index 127e7f70b5e7aaa94102ebbaf76202c5415b2cd6..f6afb5a24c5a5ed00e97ede2172b8c3a8c6f9d32 100644 (file)
@@ -59,8 +59,8 @@ Ipc::Mem::Segment::Name(const SBuf &prefix, const char *suffix)
 #if HAVE_SHM
 
 Ipc::Mem::Segment::Segment(const char *const id):
-        theFD(-1), theName(GenerateName(id)), theMem(NULL),
-        theSize(0), theReserved(0), doUnlink(false)
+    theFD(-1), theName(GenerateName(id)), theMem(NULL),
+    theSize(0), theReserved(0), doUnlink(false)
 {
 }
 
@@ -232,7 +232,7 @@ typedef std::map<String, Ipc::Mem::Segment *> SegmentMap;
 static SegmentMap Segments;
 
 Ipc::Mem::Segment::Segment(const char *const id):
-        theName(id), theMem(NULL), theSize(0), theReserved(0), doUnlink(false)
+    theName(id), theMem(NULL), theSize(0), theReserved(0), doUnlink(false)
 {
 }
 
@@ -320,3 +320,4 @@ Ipc::Mem::RegisteredRunner::useConfig()
     if (!InDaemonMode() || !IamMasterProcess())
         open();
 }
+
index a79ada666bafe1075f28b62d421694813ff4f928..d4a0bf3c8a9bc499d0f0871e0bec2624c4a28f3c 100644 (file)
@@ -97,3 +97,4 @@ protected:
 } // namespace Ipc
 
 #endif /* SQUID_IPC_MEM_SEGMENT_H */
+
index 729407be38402bc9280896ccfc2acdf73d0ff9b3..0decff80d02cbccad87ee393d9e940ac172b6c68 100644 (file)
@@ -134,9 +134,9 @@ ipcCreate(int type, const char *prog, const char *const args[], const char *name
                                 COMM_NOCLOEXEC,
                                 name);
         prfd = pwfd = comm_open(SOCK_STREAM,
-                                IPPROTO_TCP,   /* protocol */
+                                IPPROTO_TCP,    /* protocol */
                                 local_addr,
-                                0,                     /* blocking */
+                                0,          /* blocking */
                                 name);
     } else if (type == IPC_UDP_SOCKET) {
         crfd = cwfd = comm_open(SOCK_DGRAM,
@@ -503,7 +503,7 @@ ipc_thread_1(void *in_params)
             ipcSend(cwfd, err_string, strlen(err_string));
             goto cleanup;
         }
-    }                          /* IPC_UDP_SOCKET */
+    }               /* IPC_UDP_SOCKET */
 
     t1 = dup(0);
 
@@ -654,7 +654,7 @@ ipc_thread_1(void *in_params)
         x = recv(prfd_ipc, (void *)(buf1 + 200), bufSz -1 - 200, 0);
         assert((size_t) x == strlen(ok_string)
                && !strncmp(ok_string, buf1 + 200, strlen(ok_string)));
-    }                          /* IPC_UDP_SOCKET */
+    }               /* IPC_UDP_SOCKET */
 
     snprintf(buf1, bufSz-1, "%s(%ld) CHILD socket", prog, (long int) pid);
 
@@ -839,3 +839,4 @@ ipc_thread_2(void *in_params)
     xfree(buf2);
     return 0;
 }
+
index 8cdccb991da7d36c3e65feda51013ffea3148c84..52d6b65d741e738004a530e8a89f71ec9e89d77d 100644 (file)
@@ -50,8 +50,8 @@
  \defgroup IPCacheInternal IP Cache Internals
  \ingroup IPCacheAPI
  \todo  when IP cache is provided as a class. These sub-groups will be obsolete
- *     for now they are used to seperate the public and private functions.
- *     with the private ones all being in IPCachInternal and public in IPCacheAPI
+ *  for now they are used to seperate the public and private functions.
+ *  with the private ones all being in IPCachInternal and public in IPCacheAPI
  *
  \section InternalOperation Internal Operation
  *
@@ -80,7 +80,7 @@
 class ipcache_entry
 {
 public:
-    hash_link hash;            /* must be first */
+    hash_link hash;     /* must be first */
     time_t lastref;
     time_t expires;
     ipcache_addrs addrs;
@@ -249,8 +249,8 @@ purge_entries_fromhosts(void)
     ipcache_entry *i = NULL, *t;
 
     while (m) {
-        if (i != NULL) {       /* need to delay deletion */
-            ipcacheRelease(i); /* we just override locks */
+        if (i != NULL) {    /* need to delay deletion */
+            ipcacheRelease(i);  /* we just override locks */
             i = NULL;
         }
 
@@ -479,10 +479,10 @@ ipcacheHandleReply(void *data, const rfc1035_rr * answers, int na, const char *e
 /**
  \ingroup IPCacheAPI
  *
- \param name           Host to resolve.
- \param handler                Pointer to the function to be called when the reply
- *                     from the IP cache (or the DNS if the IP cache misses)
- \param handlerData    Information that is passed to the handler and does not affect the IP cache.
+ \param name        Host to resolve.
+ \param handler     Pointer to the function to be called when the reply
+ *          from the IP cache (or the DNS if the IP cache misses)
+ \param handlerData Information that is passed to the handler and does not affect the IP cache.
  *
  * XXX: on hits and some errors, the handler is called immediately instead
  * of scheduling an async call. This reentrant behavior means that the
@@ -602,13 +602,13 @@ ipcache_init(void)
  * if an entry exists in the cache and does not by default contact the DNS,
  * unless this is requested, by setting the flags.
  *
- \param name           Host name to resolve.
- \param flags          Default is NULL, set to IP_LOOKUP_IF_MISS
- *                     to explicitly perform DNS lookups.
+ \param name        Host name to resolve.
+ \param flags       Default is NULL, set to IP_LOOKUP_IF_MISS
+ *          to explicitly perform DNS lookups.
  *
- \retval NULL  An error occured during lookup
- \retval NULL  No results available in cache and no lookup specified
- \retval *     Pointer to the ipcahce_addrs structure containing the lookup results
+ \retval NULL   An error occured during lookup
+ \retval NULL   No results available in cache and no lookup specified
+ \retval *  Pointer to the ipcahce_addrs structure containing the lookup results
  */
 const ipcache_addrs *
 ipcache_gethostbyname(const char *name, int flags)
@@ -892,8 +892,8 @@ ipcacheCycleAddr(const char *name, ipcache_addrs * ia)
 /**
  \ingroup IPCacheAPI
  *
- \param name   domain name to have an IP marked bad
- \param addr   specific addres to be marked bad
+ \param name    domain name to have an IP marked bad
+ \param addr    specific addres to be marked bad
  */
 void
 ipcacheMarkBadAddr(const char *name, const Ip::Address &addr)
@@ -968,10 +968,10 @@ ipcacheMarkGoodAddr(const char *name, const Ip::Address &addr)
             break;
     }
 
-    if (k == (int) ia->count)  /* not found */
+    if (k == (int) ia->count)   /* not found */
         return;
 
-    if (!ia->bad_mask[k])      /* already OK */
+    if (!ia->bad_mask[k])   /* already OK */
         return;
 
     ia->bad_mask[k] = FALSE;
@@ -1024,11 +1024,11 @@ ipcache_restart(void)
  *
  * Adds a "static" entry from /etc/hosts
  *
- \param name   Hostname to be linked with IP
- \param ipaddr IP Address to be cached.
+ \param name    Hostname to be linked with IP
+ \param ipaddr  IP Address to be cached.
  *
- \retval 0     Success.
- \retval 1     IP address is invalid or other error.
+ \retval 0  Success.
+ \retval 1  IP address is invalid or other error.
  */
 int
 ipcacheAddEntryFromHosts(const char *name, const char *ipaddr)
@@ -1147,3 +1147,4 @@ snmp_netIpFn(variable_list * Var, snint * ErrP)
 }
 
 #endif /*SQUID_SNMP */
+
index 84c150728effa93c48e6337d7444bbd8c66d03fc..c7dfcb6d8b48ff2c66c74c3498da37953d770ff0 100644 (file)
@@ -42,3 +42,4 @@ void ipcache_restart(void);
 int ipcacheAddEntryFromHosts(const char *name, const char *ipaddr);
 
 #endif /* _SQUID_IPCACHE_H */
+
index 36569ca4b7cdee16d69cdb2cdf06a03fc61e05e4..ee4f6484efb54de0717ef0c07720656e2d92aa10 100644 (file)
@@ -42,3 +42,4 @@ Log::LogConfig::parseFormats()
     nlf->next = logformats;
     logformats = nlf;
 }
+
index 28dde58af7962fefba48d8321a6905ad7b0d6e3e..6ef7a2d1c80cc949091de4cb4c218e6fa54282d8 100644 (file)
@@ -49,3 +49,4 @@ extern LogConfig TheConfig;
 #define dump_logformat(E,N,D) (D).dumpFormats((E),(N))
 
 #endif
+
index fafdfa49f49063d7769533d25fc41f3ed7250758..8e4e3db9d543da65d9e6d5ddc637fb68dbeab7a8 100644 (file)
@@ -36,3 +36,4 @@ public:
 };
 
 #endif /* SQUID_CUSTOMLOG_H_ */
+
index a18718e8010fa582f75eae22491cb395189f3b9f..7baded7089b660ba94cc12f1d2cbe20b3db74bb6 100644 (file)
@@ -136,3 +136,4 @@ logfileFlush(Logfile * lf)
 {
     lf->f_flush(lf);
 }
+
index 4d6a0786ac95a26ae21138fabc299b052876c11e..61c49975cf801abc1ef90bce2a5155d39405e4d6 100644 (file)
@@ -68,3 +68,4 @@ void logfileLineStart(Logfile * lf);
 void logfileLineEnd(Logfile * lf);
 
 #endif /* SQUID_SRC_LOG_FILE_H */
+
index bdb4e11ae849e1f48ac6b06e636e4900a99b1389..df37b3684a39000854fb6f5a6782fac06e486ca9 100644 (file)
@@ -80,3 +80,4 @@ Log::Format::HttpdCombined(const AccessLogEntry::Pointer &al, Logfile * logfile)
         safe_free(erep);
     }
 }
+
index 4779f80877f22767073d63851c21ac7dddfe4a4f..030f8183e974433400d9976ecc7c95f28534fed3 100644 (file)
@@ -65,3 +65,4 @@ Log::Format::HttpdCommon(const AccessLogEntry::Pointer &al, Logfile * logfile)
         safe_free(erep);
     }
 }
+
index 02ca82e027dfc392e9835d0a6d7ab0e34afd4ce0..980ca3cc15c939cd47c71b4afa324934c12c8f7e 100644 (file)
@@ -27,3 +27,4 @@ Log::Format::SquidCustom(const AccessLogEntry::Pointer &al, CustomLog * log)
 
     logfilePrintf(log->logfile, "%s\n", mb.buf);
 }
+
index cf05b95390043addb9408726fab0dd95a765cf9e..e1abe3468f6c3746f6eb20a71b994c11cd8d2351 100644 (file)
@@ -71,3 +71,4 @@ Log::Format::SquidIcap(const AccessLogEntry::Pointer &al, Logfile * logfile)
     safe_free(user);
 }
 #endif
+
index a5fb9011fb8c2e076a6b9dca72fb41fb7212db74..3d4e5a41149e24903cf94e3a81cd0a1e6dbb6b37 100644 (file)
@@ -82,3 +82,4 @@ Log::Format::SquidNative(const AccessLogEntry::Pointer &al, Logfile * logfile)
         safe_free(erep);
     }
 }
+
index 8cca22954b1257be7d3b5af768876a49b56ac72d..b3b82845e14c152322ea7fa5ed01e5b614147e6a 100644 (file)
@@ -35,3 +35,4 @@ Log::Format::SquidReferer(const AccessLogEntry::Pointer &al, Logfile *logfile)
                   referer,
                   al->url ? al->url : "-");
 }
+
index 7fec540634f0693390cc838d4e42bff1063d80db..7f1b75fc51134e1293dea8429a7076358547ceab 100644 (file)
@@ -34,3 +34,4 @@ Log::Format::SquidUserAgent(const AccessLogEntry::Pointer &al, Logfile * logfile
                   Time::FormatHttpd(squid_curtime),
                   agent);
 }
+
index 68a36bb32501e56673cf92580cde2d84317d8a25..8a0386bab0bf2e70b1138c183b730ecc40c49af6 100644 (file)
@@ -62,3 +62,4 @@ void HttpdCombined(const AccessLogEntryPointer &al, Logfile * logfile);
 }; // namespace Log
 
 #endif /* _SQUID_LOG_FORMATS_H */
+
index 92feda3a3a25b1fbccbd98f844b71a2c9910de3e..7cd25535db36ca801e8068df16f9e7cc9b99963f 100644 (file)
 #include <cerrno>
 
 /* How many buffers to keep before we say we've buffered too much */
-#define        LOGFILE_MAXBUFS         128
+#define LOGFILE_MAXBUFS     128
 
 /* Size of the logfile buffer */
 /*
  * For optimal performance this should match LOGFILE_BUFSIZ in logfile-daemon.c
  */
-#define        LOGFILE_BUFSZ           32768
+#define LOGFILE_BUFSZ       32768
 
 /* How many seconds between warnings */
-#define        LOGFILE_WARN_TIME       30
+#define LOGFILE_WARN_TIME   30
 
 static LOGWRITE logfile_mod_daemon_writeline;
 static LOGLINESTART logfile_mod_daemon_linestart;
@@ -345,3 +345,4 @@ logfile_mod_daemon_flush(Logfile * lf)
         return;
     }
 }
+
index cbe2546f2ab2df180d489840eafa5bc1f256e491..594d2dd8539bde8c2a8f9316254d4f00bc3c8ffa 100644 (file)
@@ -16,3 +16,4 @@ class Logfile;
 int logfile_mod_daemon_open(Logfile * lf, const char *path, size_t bufsz, int fatal_flag);
 
 #endif /* _SQUID_SRC_LOG_MODDAEMON_H */
+
index 3b9b85c8fa27f2d008bf6b885720010d804b1501..ce1a7b44d62ad30f3bb89b7ba8adc20bb5f662dd 100644 (file)
@@ -134,7 +134,7 @@ logfile_mod_stdio_rotate(Logfile * lf)
     /* Rotate the current log to .0 */
     logfileFlush(lf);
 
-    file_close(ll->fd);                /* always close */
+    file_close(ll->fd);     /* always close */
 
     if (Config.Log.rotateNumber > 0) {
         snprintf(to, MAXPATHLEN, "%s.%d", realpath, 0);
@@ -206,3 +206,4 @@ logfile_mod_stdio_open(Logfile * lf, const char *path, size_t bufsz, int fatal_f
     }
     return 1;
 }
+
index 2cf5c48c89933cad7e92e3af278b76b0eab9280f..473cbc91dca458923a3a03a59707daa2b6e630a0 100644 (file)
@@ -16,3 +16,4 @@ class Logfile;
 int logfile_mod_stdio_open(Logfile * lf, const char *path, size_t bufsz, int fatal_flag);
 
 #endif /* _SQUID_SRC_LOG_MODSTDIO_H */
+
index e636be41e8af50f91901d6c788e190c8e4978b02..b8475b561663549fa692d185bdc8d7a75121eb65 100644 (file)
@@ -168,3 +168,4 @@ logfile_mod_syslog_open(Logfile * lf, const char *path, size_t bufsz, int fatal_
     return 1;
 }
 #endif
+
index aff4ad840fb06e8066c4ba0d9b82d5c6ef92155e..b51a1621871ae5bea12e17fdbf24904471eb3928 100644 (file)
@@ -16,3 +16,4 @@ class Logfile;
 int logfile_mod_syslog_open(Logfile * lf, const char *path, size_t bufsz, int fatal_flag);
 
 #endif /* _SQUID_SRC_LOG_MODSYSLOG_H */
+
index e295259d165f059f127b5178fa9d4bdfffa61b2e..1daad07fa0b9f2fd897e354be862f18835361b60 100644 (file)
@@ -211,3 +211,4 @@ logfile_mod_udp_open(Logfile * lf, const char *path, size_t bufsz, int fatal_fla
 
     return 1;
 }
+
index 669273ae9b9d3472ef0e732d9c4502fdf206f76f..b1cfb1ea397c183ffcbe30ae083d4b8d243bc745 100644 (file)
@@ -16,3 +16,4 @@ class Logfile;
 int logfile_mod_udp_open(Logfile * lf, const char *path, size_t bufsz, int fatal_flag);
 
 #endif /* _SQUID_SRC_LOG_MODUDP_H */
+
index 8b58aa062fc55c8ca8053e52b6070489d0d5cf76..bc8f7414a884eaaeece57c378be521abc07a1da0 100644 (file)
@@ -35,18 +35,18 @@ const size_t Log::TcpLogger::BufferCapacityMin = 2*Log::TcpLogger::IoBufSize;
 CBDATA_NAMESPACED_CLASS_INIT(Log, TcpLogger);
 
 Log::TcpLogger::TcpLogger(size_t bufCap, bool dieOnErr, Ip::Address them):
-        AsyncJob("TcpLogger"),
-        dieOnError(dieOnErr),
-        bufferCapacity(bufCap),
-        bufferedSize(0),
-        flushDebt(0),
-        quitOnEmpty(false),
-        reconnectScheduled(false),
-        writeScheduled(false),
-        conn(NULL),
-        remote(them),
-        connectFailures(0),
-        drops(0)
+    AsyncJob("TcpLogger"),
+    dieOnError(dieOnErr),
+    bufferCapacity(bufCap),
+    bufferedSize(0),
+    flushDebt(0),
+    quitOnEmpty(false),
+    reconnectScheduled(false),
+    writeScheduled(false),
+    conn(NULL),
+    remote(them),
+    connectFailures(0),
+    drops(0)
 {
     if (bufferCapacity < BufferCapacityMin) {
         debugs(MY_DEBUG_SECTION, DBG_IMPORTANT,
@@ -478,3 +478,4 @@ Log::TcpLogger::Open(Logfile * lf, const char *path, size_t bufsz, int fatalFlag
 
     return 1;
 }
+
index 7798439c22018ee56e9dd13806b6e641d7547fac..754a9d911da564a1d8c8b2bbafc08da407e64f76 100644 (file)
@@ -110,3 +110,4 @@ private:
 } // namespace Log
 
 #endif /* _SQUID_SRC_LOG_TCPLOGGER_H */
+
index c9356f59da6a2ea55dad3de950a9c055768d8079..fdf8851fe274fa96f9d366c1c340f7919c30c60d 100644 (file)
@@ -227,13 +227,13 @@ accessLogClose(void)
 }
 
 HierarchyLogEntry::HierarchyLogEntry() :
-        code(HIER_NONE),
-        cd_lookup(LOOKUP_NONE),
-        n_choices(0),
-        n_ichoices(0),
-        peer_reply_status(Http::scNone),
-        tcpServer(NULL),
-        bodyBytesRead(-1)
+    code(HIER_NONE),
+    cd_lookup(LOOKUP_NONE),
+    n_choices(0),
+    n_ichoices(0),
+    peer_reply_status(Http::scNone),
+    tcpServer(NULL),
+    bodyBytesRead(-1)
 {
     memset(host, '\0', SQUIDHOSTNAMELEN);
     memset(cd_host, '\0', SQUIDHOSTNAMELEN);
@@ -592,3 +592,4 @@ headersLog(int cs, int pq, const HttpRequestMethod& method, void *data)
 }
 
 #endif
+
index 25c342fadb07b282915f9c7a088e4ceccc7e6c3f..60cea11874dba6ffb2153452c2dd106f69729328 100644 (file)
@@ -22,3 +22,4 @@ void headersLog(int cs, int pq, const HttpRequestMethod& m, void *data);
 #endif
 
 #endif /* SQUID_LOG_ACCESS_LOG_H_ */
+
index b46728f88351c7b0719ca435197c0bc101014253..47f7fbd93287394e1c609afa4563aacd518b1470 100644 (file)
@@ -18,3 +18,4 @@ typedef enum {
 extern const char *lookup_t_str[];
 
 #endif /* _SQUID_LOOKUP_T_H */
+
index 1ed2e287338353562075d43f4b8caf777212cb99..bc7bb62ac449ceff472a53ba457f9677627f97c8 100644 (file)
@@ -142,7 +142,7 @@ void WINAPI WIN32_svcHandler(DWORD);
 
 static int opt_signal_service = FALSE;
 static char *opt_syslog_facility = NULL;
-static int icpPortNumOverride = 1;     /* Want to detect "-u 0" */
+static int icpPortNumOverride = 1;  /* Want to detect "-u 0" */
 static int configured_once = 0;
 #if MALLOC_DBG
 static int malloc_debug_level = 0;
@@ -318,9 +318,9 @@ mainParseOptions(int argc, char *argv[])
     // short options
     const char *shortOpStr =
 #if USE_WIN32_SERVICE
-                            "O:Vir"
+        "O:Vir"
 #endif
-                            "CDFNRSYXa:d:f:hk:m::n:sl:u:vz?";
+        "CDFNRSYXa:d:f:hk:m::n:sl:u:vz?";
 
     // long options
     static struct option squidOptions[] = {
@@ -469,7 +469,7 @@ mainParseOptions(int argc, char *argv[])
 
             else if (!strncmp(optarg, "check", strlen(optarg)))
                 /** \li On check send 0 / SIGNULL. */
-                opt_send_signal = 0;   /* SIGNULL */
+                opt_send_signal = 0;    /* SIGNULL */
             else if (!strncmp(optarg, "parse", strlen(optarg)))
                 /** \li On parse set global flag to re-parse the config file only. */
                 opt_parse_cfg_only = 1;
@@ -574,7 +574,7 @@ mainParseOptions(int argc, char *argv[])
 
             exit(0);
 
-            /* NOTREACHED */
+        /* NOTREACHED */
 
         case 'z':
             /** \par z
@@ -776,7 +776,7 @@ mainReconfigureFinish(void *)
     debugs(1, 3, "finishing reconfiguring");
 
     errorClean();
-    enter_suid();              /* root to read config file */
+    enter_suid();       /* root to read config file */
 
     // we may have disabled the need for PURGE
     if (Config2.onoff.enable_purge)
@@ -805,10 +805,10 @@ mainReconfigureFinish(void *)
     Mem::Report();
     setEffectiveUser();
     _db_init(Debug::cache_log, Debug::debugOptions);
-    ipcache_restart();         /* clear stuck entries */
-    fqdncache_restart();       /* sigh, fqdncache too */
+    ipcache_restart();      /* clear stuck entries */
+    fqdncache_restart();    /* sigh, fqdncache too */
     parseEtcHosts();
-    errorInitialize();         /* reload error pages */
+    errorInitialize();      /* reload error pages */
     accessLogInit();
 
 #if USE_LOADABLE_MODULES
@@ -881,7 +881,7 @@ mainReconfigureFinish(void *)
             eventDelete(start_announce, NULL);
     }
 
-    writePidFile();            /* write PID file */
+    writePidFile();     /* write PID file */
 
     reconfiguring = 0;
 }
@@ -896,10 +896,10 @@ mainRotate(void)
 #endif
     externalAclShutdown();
 
-    _db_rotate_log();          /* cache.log */
+    _db_rotate_log();       /* cache.log */
     storeDirWriteCleanLogs(1);
-    storeLogRotate();          /* store.log */
-    accessLogRotate();         /* access.log */
+    storeLogRotate();       /* store.log */
+    accessLogRotate();      /* access.log */
 #if ICAP_CLIENT
     icapLogRotate();               /*icap.log*/
 #endif
@@ -915,7 +915,7 @@ static void
 setEffectiveUser(void)
 {
     keepCapabilities();
-    leave_suid();              /* Run as non privilegied user */
+    leave_suid();       /* Run as non privilegied user */
 #if _SQUID_OS2_
 
     return;
@@ -1027,7 +1027,7 @@ mainInitialize(void)
 #endif
 
     if (!configured_once)
-        disk_init();           /* disk_init must go before ipcache_init() */
+        disk_init();        /* disk_init must go before ipcache_init() */
 
     ipcache_init();
 
@@ -1055,9 +1055,9 @@ mainInitialize(void)
 #endif
     externalAclInit();
 
-    httpHeaderInitModule();    /* must go before any header processing (e.g. the one in errorInitialize) */
+    httpHeaderInitModule(); /* must go before any header processing (e.g. the one in errorInitialize) */
 
-    httpReplyInitModule();     /* must go before accepting replies */
+    httpReplyInitModule();  /* must go before accepting replies */
 
     errorInitialize();
 
@@ -1133,7 +1133,7 @@ mainInitialize(void)
         no_suid();
 
     if (!configured_once)
-        writePidFile();                /* write PID file */
+        writePidFile();     /* write PID file */
 
 #if defined(_SQUID_LINUX_THREADS_)
 
@@ -1376,7 +1376,7 @@ SquidMain(int argc, char **argv)
 
         Mem::Init();
 
-        storeFsInit();         /* required for config parsing */
+        storeFsInit();      /* required for config parsing */
 
         /* TODO: call the FS::Clean() in shutdown to do Fs cleanups */
         Fs::Init();
@@ -1882,15 +1882,15 @@ SquidShutdown()
 
     Store::Root().sync(); /* Flush pending object writes/unlinks */
 
-    unlinkdClose();      /* after sync/flush. NOP if !USE_UNLINKD */
+    unlinkdClose();   /* after sync/flush. NOP if !USE_UNLINKD */
 
     storeDirWriteCleanLogs(0);
     PrintRusage();
     dumpMallocStats();
-    Store::Root().sync();              /* Flush log writes */
+    Store::Root().sync();       /* Flush log writes */
     storeLogClose();
     accessLogClose();
-    Store::Root().sync();              /* Flush log close */
+    Store::Root().sync();       /* Flush log close */
     StoreFileSystem::FreeAllFs();
     DiskIOModule::FreeAllModules();
 #if LEAK_CHECK_MODE && 0 /* doesn't work at the moment */
index c9128cfc58b03722936d374efb4eb36808da3ed1..0c70729634426896a708acc1aadcae5a11e62222 100644 (file)
@@ -53,3 +53,4 @@ Mem::AllocatorProxy::getStats(MemPoolStats * stats)
 {
     return getAllocator()->getStats(stats);
 }
+
index 371a37f5a18f6906dc5dcbcf1ad8900ec9e6898e..2ce940e6e83e690924bede8203315f1498f63b8b 100644 (file)
@@ -62,8 +62,8 @@ public:
     MemPoolMeter const &getMeter() const;
 
     /**
-     * \param stats    Object to be filled with statistical data about pool.
-     * \retval         Number of objects in use, ie. allocated.
+     * \param stats Object to be filled with statistical data about pool.
+     * \retval      Number of objects in use, ie. allocated.
      */
     int getStats(MemPoolStats * stats);
 
@@ -78,3 +78,4 @@ private:
 } // namespace Mem
 
 #endif /* _SQUID_SRC_MEM_ALLOCATORPROXY_H */
+
index 06aa4f828f64e1555584de9032cb223759dcdd20..c5727cb5b2687da065b207739517ca8163ffd1f9 100644 (file)
@@ -18,7 +18,7 @@
 #include <cassert>
 #include <cstring>
 
-#define FLUSH_LIMIT 1000       /* Flush memPool counters to memMeters after flush limit calls */
+#define FLUSH_LIMIT 1000    /* Flush memPool counters to memMeters after flush limit calls */
 
 extern time_t squid_curtime;
 
@@ -85,7 +85,7 @@ MemPools::idleLimit() const
  * MemPools::GetInstance().setDefaultPoolChunking() can be called.
  */
 MemPools::MemPools() : pools(NULL), mem_idle_limit(2 << 20 /* 2 MB */),
-        poolCount(0), defaultIsChunked(USE_CHUNKEDMEMPOOLS && !RUNNING_ON_VALGRIND)
+    poolCount(0), defaultIsChunked(USE_CHUNKEDMEMPOOLS && !RUNNING_ON_VALGRIND)
 {
     char *cfg = getenv("MEMPOOLS");
     if (cfg)
@@ -316,11 +316,11 @@ memPoolsTotalAllocated(void)
 }
 
 MemImplementingAllocator::MemImplementingAllocator(char const *aLabel, size_t aSize) : MemAllocator(aLabel),
-        next(NULL),
-        alloc_calls(0),
-        free_calls(0),
-        saved_calls(0),
-        obj_size(RoundedSize(aSize))
+    next(NULL),
+    alloc_calls(0),
+    free_calls(0),
+    saved_calls(0),
+    obj_size(RoundedSize(aSize))
 {
     memPID = ++Pool_id_counter;
 
@@ -374,3 +374,4 @@ MemImplementingAllocator::objectSize() const
 {
     return obj_size;
 }
+
index 1ea029cdc611bd493d0dfa1759e4d8e40dfb36a4..2306b14de3b479e7dfd9028f11dac4fb0420cc36 100644 (file)
@@ -57,7 +57,7 @@
 /// \ingroup MemPoolsAPI
 #define MEM_MIN_FREE  32
 /// \ingroup MemPoolsAPI
-#define MEM_MAX_FREE  65535    /* unsigned short is max number of items per chunk */
+#define MEM_MAX_FREE  65535 /* unsigned short is max number of items per chunk */
 
 class MemImplementingAllocator;
 class MemPoolStats;
@@ -122,8 +122,8 @@ public:
     void flushMeters();
 
     /**
-     \param label      Name for the pool. Displayed in stats.
-     \param obj_size   Size of elements in MemPool.
+     \param label   Name for the pool. Displayed in stats.
+     \param obj_size    Size of elements in MemPool.
      */
     MemImplementingAllocator * create(const char *label, size_t obj_size);
 
@@ -184,8 +184,8 @@ public:
     virtual ~MemAllocator() {}
 
     /**
-     \param stats      Object to be filled with statistical data about pool.
-     \retval           Number of objects in use, ie. allocated.
+     \param stats   Object to be filled with statistical data about pool.
+     \retval        Number of objects in use, ie. allocated.
      */
     virtual int getStats(MemPoolStats * stats, int accumulate = 0) = 0;
 
@@ -220,7 +220,7 @@ public:
     virtual void setChunkSize(size_t chunksize) {}
 
     /**
-     \param minSize    Minimum size needed to be allocated.
+     \param minSize Minimum size needed to be allocated.
      \retval n Smallest size divisible by sizeof(void*)
      */
     static size_t RoundedSize(size_t minSize);
@@ -363,3 +363,4 @@ extern int memPoolInUseCount(MemAllocator *);
 extern int memPoolsTotalAllocated(void);
 
 #endif /* _MEM_POOL_H_ */
+
index cee007256fe5b1c5eb247bc49509da8a53ad99f0..9364b1eb9963f4b4e5695ed710634e7acf872b1c 100644 (file)
@@ -231,7 +231,7 @@ MemPoolChunked::createChunk()
     newChunk = new MemChunk(this);
 
     chunk = Chunks;
-    if (chunk == NULL) {       /* first chunk in pool */
+    if (chunk == NULL) {    /* first chunk in pool */
         Chunks = newChunk;
         return;
     }
@@ -260,10 +260,10 @@ MemPoolChunked::setChunkSize(size_t chunksize)
     int cap;
     size_t csize = chunksize;
 
-    if (Chunks)                /* unsafe to tamper */
+    if (Chunks)     /* unsafe to tamper */
         return;
 
-    csize = ((csize + MEM_PAGE_SIZE - 1) / MEM_PAGE_SIZE) * MEM_PAGE_SIZE;     /* round up to page size */
+    csize = ((csize + MEM_PAGE_SIZE - 1) / MEM_PAGE_SIZE) * MEM_PAGE_SIZE;  /* round up to page size */
     cap = csize / obj_size;
 
     if (cap < MEM_MIN_FREE)
@@ -276,7 +276,7 @@ MemPoolChunked::setChunkSize(size_t chunksize)
         cap = 1;
 
     csize = cap * obj_size;
-    csize = ((csize + MEM_PAGE_SIZE - 1) / MEM_PAGE_SIZE) * MEM_PAGE_SIZE;     /* round up to page size */
+    csize = ((csize + MEM_PAGE_SIZE - 1) / MEM_PAGE_SIZE) * MEM_PAGE_SIZE;  /* round up to page size */
     cap = csize / obj_size;
 
     chunk_capacity = cap;
@@ -345,8 +345,8 @@ MemPoolChunked::convertFreeCacheToChunkFreeCache()
         assert(chunk->inuse_count > 0);
         -- chunk->inuse_count;
         (void) VALGRIND_MAKE_MEM_DEFINED(Free, sizeof(void *));
-        freeCache = *(void **)Free;    /* remove from global cache */
-        *(void **)Free = chunk->freeList;      /* stuff into chunks freelist */
+        freeCache = *(void **)Free; /* remove from global cache */
+        *(void **)Free = chunk->freeList;   /* stuff into chunks freelist */
         (void) VALGRIND_MAKE_MEM_NOACCESS(Free, sizeof(void *));
         chunk->freeList = Free;
         chunk->lastref = squid_curtime;
@@ -435,10 +435,10 @@ MemPoolChunked::getStats(MemPoolStats * stats, int accumulate)
     int chunks_free = 0;
     int chunks_partial = 0;
 
-    if (!accumulate)   /* need skip memset for GlobalStats accumulation */
+    if (!accumulate)    /* need skip memset for GlobalStats accumulation */
         memset(stats, 0, sizeof(MemPoolStats));
 
-    clean((time_t) 555555);    /* don't want to get chunks released before reporting */
+    clean((time_t) 555555); /* don't want to get chunks released before reporting */
 
     stats->pool = this;
     stats->label = objectType();
@@ -469,3 +469,4 @@ MemPoolChunked::getStats(MemPoolStats * stats, int accumulate)
 
     return meter.inuse.level;
 }
+
index 826504cb7b24cc5d47bbc27485e623e4b48ef4ed..51ef6314ae1b309a88d66068366f9d5cd5296cbf 100644 (file)
@@ -12,7 +12,7 @@
 #include "mem/Pool.h"
 
 #define MEM_CHUNK_SIZE        4 * 4096  /* 16KB ... 4 * VM_PAGE_SZ */
-#define MEM_CHUNK_MAX_SIZE  256 * 1024 /* 2MB */
+#define MEM_CHUNK_MAX_SIZE  256 * 1024  /* 2MB */
 
 class MemChunk;
 
@@ -27,8 +27,8 @@ public:
     virtual void clean(time_t maxage);
 
     /**
-     \param stats      Object to be filled with statistical data about pool.
-     \retval           Number of objects in use, ie. allocated.
+     \param stats   Object to be filled with statistical data about pool.
+     \retval        Number of objects in use, ie. allocated.
      */
     virtual int getStats(MemPoolStats * stats, int accumulate);
 
@@ -79,3 +79,4 @@ public:
 };
 
 #endif /* _MEM_POOL_CHUNKED_H_ */
+
index 9bf19e3813a3f575bcd94c3dcfa38c312343ebe6..c514ec75906669244155f62ffc64b782cae883d0 100644 (file)
@@ -60,7 +60,7 @@ MemPoolMalloc::deallocate(void *obj, bool aggressive)
 int
 MemPoolMalloc::getStats(MemPoolStats * stats, int accumulate)
 {
-    if (!accumulate)   /* need skip memset for GlobalStats accumulation */
+    if (!accumulate)    /* need skip memset for GlobalStats accumulation */
         memset(stats, 0, sizeof(MemPoolStats));
 
     stats->pool = this;
index 0ee27411b913724298d1cb8687bc263961c048e8..8380fa9cab499ae71487ccd72cfcdc87d0920437 100644 (file)
@@ -42,8 +42,8 @@ public:
     virtual void clean(time_t maxage);
 
     /**
-     \param stats      Object to be filled with statistical data about pool.
-     \retval           Number of objects in use, ie. allocated.
+     \param stats   Object to be filled with statistical data about pool.
+     \retval        Number of objects in use, ie. allocated.
      */
     virtual int getStats(MemPoolStats * stats, int accumulate);
 
@@ -56,3 +56,4 @@ private:
 };
 
 #endif /* _MEM_POOL_MALLOC_H_ */
+
index cd18c364ad338e7abbde1f890a7c299883859b8c..00157b8f2179dca4e14f28ec76d34c785c6588f8 100644 (file)
@@ -23,12 +23,12 @@ class MemPoolMeter;
 
 namespace Mem
 {
-    void Init();
-    void Report();
-    void Stats(StoreEntry *);
-    void CleanIdlePools(void *unused);
-    void Report(std::ostream &);
-    void PoolReport(const MemPoolStats * mp_st, const MemPoolMeter * AllMeter, std::ostream &);
+void Init();
+void Report();
+void Stats(StoreEntry *);
+void CleanIdlePools(void *unused);
+void Report(std::ostream &);
+void PoolReport(const MemPoolStats * mp_st, const MemPoolMeter * AllMeter, std::ostream &);
 };
 
 extern const size_t squidSystemPageSize;
@@ -84,3 +84,4 @@ void memDataInit(mem_type, const char *, size_t, int, bool doZero = true);
 void memCheckInit(void);
 
 #endif /* _SQUID_SRC_MEM_FORWARD_H */
+
index fb0cb5b1b913ea905783f5f9c15493c9c4ac81fe..1a46962b15f82587bee81eadf9f9048091d85e59 100644 (file)
@@ -71,10 +71,10 @@ StrPoolsAttrs[mem_str_pool_count] = {
 
     {
         "Short Strings", MemAllocator::RoundedSize(36),
-    },                         /* to fit rfc1123 and similar */
+    },              /* to fit rfc1123 and similar */
     {
         "Medium Strings", MemAllocator::RoundedSize(128),
-    },                         /* to fit most urls */
+    },              /* to fit most urls */
     {
         "Long Strings", MemAllocator::RoundedSize(512),
     },
@@ -137,8 +137,8 @@ static void
 memBufStats(std::ostream & stream)
 {
     stream << "Large buffers: " <<
-    HugeBufCountMeter.level << " (" <<
-    HugeBufVolumeMeter.level / 1024 << " KB)\n";
+           HugeBufCountMeter.level << " (" <<
+           HugeBufVolumeMeter.level / 1024 << " KB)\n";
 }
 
 void
@@ -357,7 +357,7 @@ memFreeBuf(size_t size, void *buf)
     }
 }
 
-static double clean_interval = 15.0;   /* time to live of idle chunk before release */
+static double clean_interval = 15.0;    /* time to live of idle chunk before release */
 
 void
 Mem::CleanIdlePools(void *unused)
@@ -711,22 +711,22 @@ Mem::Report(std::ostream &stream)
     stream << "Current memory usage:\n";
     /* heading */
     stream << "Pool\t Obj Size\t"
-    "Chunks\t\t\t\t\t\t\t"
-    "Allocated\t\t\t\t\t"
-    "In Use\t\t\t\t\t"
-    "Idle\t\t\t"
-    "Allocations Saved\t\t\t"
-    "Rate\t"
-    "\n"
-    " \t (bytes)\t"
-    "KB/ch\t obj/ch\t"
-    "(#)\t used\t free\t part\t %Frag\t "
-    "(#)\t (KB)\t high (KB)\t high (hrs)\t %Tot\t"
-    "(#)\t (KB)\t high (KB)\t high (hrs)\t %alloc\t"
-    "(#)\t (KB)\t high (KB)\t"
-    "(#)\t %cnt\t %vol\t"
-    "(#)/sec\t"
-    "\n";
+           "Chunks\t\t\t\t\t\t\t"
+           "Allocated\t\t\t\t\t"
+           "In Use\t\t\t\t\t"
+           "Idle\t\t\t"
+           "Allocations Saved\t\t\t"
+           "Rate\t"
+           "\n"
+           " \t (bytes)\t"
+           "KB/ch\t obj/ch\t"
+           "(#)\t used\t free\t part\t %Frag\t "
+           "(#)\t (KB)\t high (KB)\t high (hrs)\t %Tot\t"
+           "(#)\t (KB)\t high (KB)\t high (hrs)\t %alloc\t"
+           "(#)\t (KB)\t high (KB)\t"
+           "(#)\t %cnt\t %vol\t"
+           "(#)/sec\t"
+           "\n";
     xm_deltat = current_dtime - xm_time;
     xm_time = current_dtime;
 
@@ -742,7 +742,7 @@ Mem::Report(std::ostream &stream)
     while ((pool = memPoolIterateNext(iter))) {
         pool->getStats(&mp_stats);
 
-        if (!mp_stats.pool)    /* pool destroyed */
+        if (!mp_stats.pool) /* pool destroyed */
             continue;
 
         if (mp_stats.pool->getMeter().gb_allocated.count > 0) {
@@ -785,7 +785,7 @@ Mem::Report(std::ostream &stream)
     stream << "Cumulative allocated volume: "<< double_to_str(buf, 64, mp_total.TheMeter->gb_allocated.bytes) << "\n";
     /* overhead */
     stream << "Current overhead: " << mp_total.tot_overhead << " bytes (" <<
-    std::setprecision(3) << xpercent(mp_total.tot_overhead, mp_total.TheMeter->inuse.level) << "%)\n";
+           std::setprecision(3) << xpercent(mp_total.tot_overhead, mp_total.TheMeter->inuse.level) << "%)\n";
     /* limits */
     if (mp_total.mem_idle_limit >= 0)
         stream << "Idle pool limit: " << std::setprecision(2) << toMB(mp_total.mem_idle_limit) << " MB\n";
@@ -794,3 +794,4 @@ Mem::Report(std::ostream &stream)
     stream << "Pools ever used:     " << mp_total.tot_pools_alloc - not_used << " (shown above)\n";
     stream << "Currently in use:    " << mp_total.tot_pools_inuse << "\n";
 }
+
index f8e1fc860b3945b6286f08782e9fa953580b7187..1e014c1804033b7b59fc65df88311a283efbe3e3 100644 (file)
@@ -42,8 +42,8 @@ memNodeWriteComplete(void* d)
 }
 
 mem_node::mem_node(int64_t offset) :
-        nodeBuffer(0,offset,data),
-        write_pending(false)
+    nodeBuffer(0,offset,data),
+    write_pending(false)
 {
     *data = 0;
 }
@@ -112,3 +112,4 @@ mem_node::operator < (mem_node const & rhs) const
 {
     return start() < rhs.start();
 }
+
index d54da68588c1c2acf773b6f612d76f1b1164cffa..7f1b39c879b54dff475b615382c9b69492f3814e 100644 (file)
@@ -48,3 +48,4 @@ operator << (std::ostream &os, mem_node &aNode)
 void memNodeWriteComplete(void *);
 
 #endif /* SQUID_MEM_NODE_H */
+
index 686033f41d15871f8f56c50d1aa0a50aceaa33a6..f64ccf7bbf94490885beb32523467af4c9f42488 100644 (file)
@@ -123,3 +123,4 @@ Mgr::Action::fillEntry(StoreEntry* entry, bool writeHttpHeader)
     if (atomic())
         entry->complete();
 }
+
index c15578d906be7e1d65136295e1fff240bafc5aea..6131524f0399c38f29807bd4d56e633b8c152b6c 100644 (file)
@@ -92,3 +92,4 @@ private:
 } // namespace Mgr
 
 #endif /* SQUID_MGR_ACTION_H */
+
index d3b61bbc30d9007c2fdf10e70743a3477e5eb70b..b2422015fff06033e23aec408cc7ca1d42c52666 100644 (file)
@@ -34,3 +34,4 @@ public:
 } // namespace Mgr
 
 #endif /* SQUID_MGR_ACTION_CREATOR_H */
+
index 6865b30b65cadd7440dd3cee774887ddc6c10d0b..7259dac330220a1bad5099f3570a11d6e229c60b 100644 (file)
@@ -48,3 +48,4 @@ Mgr::ActionParams::pack(Ipc::TypedMsgHdr &msg) const
     msg.putString(password);
     queryParams.pack(msg);
 }
+
index 0ea07be9ee488c5fbc71b9ba3ab8a38b95c0c2b9..14765d5d5e710e8abee987b51084d8001713206c 100644 (file)
@@ -47,3 +47,4 @@ public:
 std::ostream &operator <<(std::ostream &os, const Mgr::ActionParams &params);
 
 #endif /* SQUID_MGR_ACTION_PARAMS_H */
+
index dcc973b5ffa3fff781257b850410cf9d7d77dbd7..3aee7e6c86085f1fb8926608e542ddde1367302c 100644 (file)
@@ -16,3 +16,4 @@ Mgr::ActionPasswordList::~ActionPasswordList()
     wordlistDestroy(&actions);
     delete next;
 }
+
index dc4b5d2bdc1980fac42ba9e1cf688c269e2820ea..50a695515ba412ba4223dca1d4797188a87bc37e 100644 (file)
@@ -29,3 +29,4 @@ public:
 } //namespace Mgr
 
 #endif /* SQUID_MGR_CACHEMGRPASSWD_H_ */
+
index 3f3ebb5b39fddbc33d7ad5c6b1966523073ab027..ba63f83a659390dae24ed287f2ca8227686b1d07 100644 (file)
@@ -26,8 +26,8 @@ public:
 public:
     ActionProfile(const char* aName, const char* aDesc, bool aPwReq,
                   bool anAtomic, const ActionCreatorPointer &aCreator):
-            name(aName), desc(aDesc), isPwReq(aPwReq), isAtomic(anAtomic),
-            creator(aCreator) {
+        name(aName), desc(aDesc), isPwReq(aPwReq), isAtomic(anAtomic),
+        creator(aCreator) {
     }
 
 public:
@@ -47,3 +47,4 @@ operator <<(std::ostream &os, const Mgr::ActionProfile &profile)
 }
 
 #endif /* SQUID_MGR_ACTION_PROFILE_H */
+
index 6bfbaa04282a90f45e089741132b8e3ea97350aa..fb3b60848e98e22e251eaff269a43402db53850c 100644 (file)
@@ -17,8 +17,8 @@
 CBDATA_NAMESPACED_CLASS_INIT(Mgr, ActionWriter);
 
 Mgr::ActionWriter::ActionWriter(const Action::Pointer &anAction, const Comm::ConnectionPointer &conn):
-        StoreToCommWriter(conn, anAction->createStoreEntry()),
-        action(anAction)
+    StoreToCommWriter(conn, anAction->createStoreEntry()),
+    action(anAction)
 {
     debugs(16, 5, HERE << conn << " action: " << action);
 }
@@ -32,3 +32,4 @@ Mgr::ActionWriter::start()
     StoreToCommWriter::start();
     action->fillEntry(entry, false);
 }
+
index a41b8ae0a5c61e80f999880d58a4780afb8f3a26..89100ed3556d438252948e5ea8d5f8daecf78847 100644 (file)
@@ -37,3 +37,4 @@ private:
 } // namespace Mgr
 
 #endif /* SQUID_MGR_ACTION_WRITER_H */
+
index 10fbed6665f2e8949e51249269412ffe78c46970..3c653d6f1dbaf8a835f981cd601a3918bad8959b 100644 (file)
@@ -88,7 +88,7 @@ Mgr::ReconfigureAction::Create(const Command::Pointer &cmd)
 }
 
 Mgr::ReconfigureAction::ReconfigureAction(const Command::Pointer &aCmd):
-        Action(aCmd)
+    Action(aCmd)
 {
     debugs(16, 5, HERE);
 }
@@ -131,7 +131,7 @@ Mgr::OfflineToggleAction::Create(const Command::Pointer &cmd)
 }
 
 Mgr::OfflineToggleAction::OfflineToggleAction(const Command::Pointer &aCmd):
-        Action(aCmd)
+    Action(aCmd)
 {
     debugs(16, 5, HERE);
 }
@@ -156,3 +156,4 @@ Mgr::RegisterBasics()
     RegisterAction("reconfigure", "Reconfigure Squid", &Mgr::ReconfigureAction::Create, 1, 1);
     RegisterAction("rotate", "Rotate Squid Logs", &Mgr::RotateAction::Create, 1, 1);
 }
+
index 4e1a1fbb4529bfe843c599c2ad0a5d8b99d927a2..ddd61603b822fa3049c2580ccfd4f67d21878152 100644 (file)
@@ -99,3 +99,4 @@ void RegisterBasics();
 } // namespace Mgr
 
 #endif /* SQUID_MGR_BASIC_ACTIONS_H */
+
index 964750d6402d4e6e68b4866f47077f65b3ee45c8..9bd4d1069198da00c93c9673f6f0ba8bcbeb5f56 100644 (file)
@@ -19,3 +19,4 @@ operator <<(std::ostream &os, const Mgr::Command &cmd)
         return os << *cmd.profile;
     return os << "undef";
 }
+
index f146f306c9f26c5fba19a8d70a895461a2c4a745..23ee637749fab75fdceb5e1582c619881ad442cc 100644 (file)
@@ -33,3 +33,4 @@ public:
 std::ostream &operator <<(std::ostream &os, const Mgr::Command &cmd);
 
 #endif /* SQUID_MGR_COMMAND_H */
+
index 77e6c154686d2ba69ce4b1c85c2596c684140ea1..ec7f75228b0f9034c97089050a4b37e87f70918d 100644 (file)
@@ -96,7 +96,7 @@ Mgr::CountersAction::Create(const CommandPointer &cmd)
 }
 
 Mgr::CountersAction::CountersAction(const CommandPointer &aCmd):
-        Action(aCmd), data()
+    Action(aCmd), data()
 {
     debugs(16, 5, HERE);
 }
@@ -136,3 +136,4 @@ Mgr::CountersAction::unpack(const Ipc::TypedMsgHdr& msg)
     msg.checkType(Ipc::mtCacheMgrResponse);
     msg.getPod(data);
 }
+
index 0f2893bce98cdb0a30dc21c1689145a7085e7aa4..352277ec56055bdcfef90836bcb72524fb10effa 100644 (file)
@@ -107,3 +107,4 @@ private:
 } // namespace Mgr
 
 #endif /* SQUID_MGR_COUNTERS_ACTION_H */
+
index 36cffefd9947cd965a14ccb207f5e7d29b179f5f..f4ffb5941e87478e863195cfd46a2491482e8e0a 100644 (file)
@@ -19,9 +19,9 @@ CBDATA_NAMESPACED_CLASS_INIT(Mgr, Filler);
 
 Mgr::Filler::Filler(const Action::Pointer &anAction, const Comm::ConnectionPointer &conn,
                     unsigned int aRequestId):
-        StoreToCommWriter(conn, anAction->createStoreEntry()),
-        action(anAction),
-        requestId(aRequestId)
+    StoreToCommWriter(conn, anAction->createStoreEntry()),
+    action(anAction),
+    requestId(aRequestId)
 {
     debugs(16, 5, HERE << conn << " action: " << action);
 }
@@ -44,3 +44,4 @@ Mgr::Filler::swanSong()
     action->sendResponse(requestId);
     StoreToCommWriter::swanSong();
 }
+
index e4e273048a1803ca07f522be5a3a1eb72c01dee0..0ad23d9f33f643f8f6ef3e36762aaad45284f9b9 100644 (file)
@@ -39,3 +39,4 @@ private:
 } // namespace Mgr
 
 #endif /* SQUID_MGR_FILLER_H */
+
index 8e2ade84d20b976dae48ddb9190c008325fb445d..53507d791ddda873e4e54f09a3ef1dae61354f86 100644 (file)
@@ -27,8 +27,8 @@ CBDATA_NAMESPACED_CLASS_INIT(Mgr, Forwarder);
 
 Mgr::Forwarder::Forwarder(const Comm::ConnectionPointer &aConn, const ActionParams &aParams,
                           HttpRequest* aRequest, StoreEntry* anEntry):
-        Ipc::Forwarder(new Request(KidIdentifier, 0, aConn, aParams), 10),
-        httpRequest(aRequest), entry(anEntry), conn(aConn)
+    Ipc::Forwarder(new Request(KidIdentifier, 0, aConn, aParams), 10),
+    httpRequest(aRequest), entry(anEntry), conn(aConn)
 {
     debugs(16, 5, HERE << conn);
     Must(Comm::IsConnOpen(conn));
@@ -130,3 +130,4 @@ Mgr::Forwarder::sendError(ErrorState *error)
     entry->flush();
     entry->complete();
 }
+
index 20d1c5939563488fb4ebcc0607250ed730988f22..8d4bd734e5bc8def61d1832d096015dfd86e913b 100644 (file)
@@ -58,3 +58,4 @@ private:
 } // namespace Mgr
 
 #endif /* SQUID_MGR_FORWARDER_H */
+
index abdf818abbc6c33f48f0ac73d1e63e0a0ada4ee6..38cbc5fcfd170b7ee81732986238a9bc438e6ad3 100644 (file)
@@ -27,7 +27,7 @@ Mgr::FunAction::Create(const Command::Pointer &aCmd, OBJH* aHandler)
 }
 
 Mgr::FunAction::FunAction(const Command::Pointer &aCmd, OBJH* aHandler):
-        Action(aCmd), handler(aHandler)
+    Action(aCmd), handler(aHandler)
 {
     Must(handler != NULL);
     debugs(16, 5, HERE);
@@ -54,3 +54,4 @@ Mgr::FunAction::dump(StoreEntry* entry)
     if (atomic() && UsingSmp())
         storeAppendPrintf(entry, "} by kid%d\n\n", KidIdentifier);
 }
+
index 8ebdc22aa368529bd3fac6c1a4f8346d7fd186ca..42367b885154b6c05e6e9b149a5c83470600e581 100644 (file)
@@ -58,3 +58,4 @@ private:
 } // namespace Mgr
 
 #endif /* SQUID_MGR_FUN_ACTION_H */
+
index ba8a7e014feb2b28bf88967b72a30298fc4fe700..917d3ccde60e6aa93ade754d712e2479b7bcea4d 100644 (file)
@@ -113,7 +113,7 @@ Mgr::InfoAction::Create(const CommandPointer &cmd)
 }
 
 Mgr::InfoAction::InfoAction(const CommandPointer &aCmd):
-        Action(aCmd), data()
+    Action(aCmd), data()
 {
     debugs(16, 5, HERE);
 }
@@ -171,3 +171,4 @@ Mgr::InfoAction::unpack(const Ipc::TypedMsgHdr& msg)
     msg.checkType(Ipc::mtCacheMgrResponse);
     msg.getPod(data);
 }
+
index 6bc34f0ff86542a68a8b6352993b77279e68e41e..b357b8124afc5d7c85941310533aa096bfae626d 100644 (file)
@@ -117,3 +117,4 @@ private:
 } // namespace Mgr
 
 #endif /* SQUID_MGR_INFO_ACTION_H */
+
index 712e8a617e9feb77893a9a7d2804c85f00f26314..1eb38198083464836bf37184454b1b2a04451609 100644 (file)
@@ -32,8 +32,8 @@ CBDATA_NAMESPACED_CLASS_INIT(Mgr, Inquirer);
 
 Mgr::Inquirer::Inquirer(Action::Pointer anAction,
                         const Request &aCause, const Ipc::StrandCoords &coords):
-        Ipc::Inquirer(aCause.clone(), applyQueryParams(coords, aCause.params.queryParams), anAction->atomic() ? 10 : 100),
-        aggrAction(anAction)
+    Ipc::Inquirer(aCause.clone(), applyQueryParams(coords, aCause.params.queryParams), anAction->atomic() ? 10 : 100),
+    aggrAction(anAction)
 {
     conn = aCause.conn;
     Ipc::ImportFdIntoComm(conn, SOCK_STREAM, IPPROTO_TCP, Ipc::fdnHttpSocket);
@@ -191,3 +191,4 @@ Mgr::Inquirer::applyQueryParams(const Ipc::StrandCoords& aStrands, const QueryPa
 
     return sc;
 }
+
index 6ba0f672758d1963e8260dd291b11913281293c2..96387e17ec9dd2c59198f24b93dd15454676805a 100644 (file)
@@ -59,3 +59,4 @@ private:
 } // namespace Mgr
 
 #endif /* SQUID_MGR_INQUIRER_H */
+
index 09567070bffcf9efb304483756135a148bacfed9..786ead50ce53e3e3fa733fdafaf506f958794676 100644 (file)
 #include "mgr/IntParam.h"
 
 Mgr::IntParam::IntParam():
-        QueryParam(QueryParam::ptInt), array()
+    QueryParam(QueryParam::ptInt), array()
 {
 }
 
 Mgr::IntParam::IntParam(const std::vector<int>& anArray):
-        QueryParam(QueryParam::ptInt), array(anArray)
+    QueryParam(QueryParam::ptInt), array(anArray)
 {
 }
 
@@ -48,3 +48,4 @@ Mgr::IntParam::value() const
 {
     return array;
 }
+
index 3ea27407e8a96c0f1188ecbd6cdc353c56cd70ae..83228099a94d6bd7333fedc5b1bdba008748aac6 100644 (file)
@@ -35,3 +35,4 @@ private:
 } // namespace Mgr
 
 #endif /* SQUID_MGR_INT_PARAM_H */
+
index 5454c8abf01b5c6f07a7c67ff3cb9618474f8b08..e481b36e5ce2d2744f9b13aaa41997ea90c90704 100644 (file)
@@ -121,7 +121,7 @@ Mgr::IntervalAction::Create60min(const CommandPointer &cmd)
 }
 
 Mgr::IntervalAction::IntervalAction(const CommandPointer &aCmd, int aMinutes, int aHours):
-        Action(aCmd), minutes(aMinutes), hours(aHours), data()
+    Action(aCmd), minutes(aMinutes), hours(aHours), data()
 {
     debugs(16, 5, HERE);
 }
@@ -160,3 +160,4 @@ Mgr::IntervalAction::unpack(const Ipc::TypedMsgHdr& msg)
     msg.checkType(Ipc::mtCacheMgrResponse);
     msg.getPod(data);
 }
+
index c23474bf0b02691668938375137569d88ae1288f..452111549c03e18e2ba9db6facd174d8a2a2ef88 100644 (file)
@@ -129,3 +129,4 @@ private:
 } // namespace Mgr
 
 #endif /* SQUID_MGR_INTERVAL_ACTION_H */
+
index ac8645783cab61189f052072765acac49765e61a..3c9c78209e5d31cf5899579505acd0d1bcbfe59a 100644 (file)
@@ -49,7 +49,7 @@ Mgr::IoAction::Create(const CommandPointer &cmd)
 }
 
 Mgr::IoAction::IoAction(const CommandPointer &aCmd):
-        Action(aCmd), data()
+    Action(aCmd), data()
 {
     debugs(16, 5, HERE);
 }
@@ -88,3 +88,4 @@ Mgr::IoAction::unpack(const Ipc::TypedMsgHdr& msg)
     msg.checkType(Ipc::mtCacheMgrResponse);
     msg.getPod(data);
 }
+
index d533af261c6a2f06190a7abaf2c2aca1e9d88a46..ce73259b070a5036907ccbbb8c8fd521a1ab34a2 100644 (file)
@@ -58,3 +58,4 @@ private:
 } // namespace Mgr
 
 #endif /* SQUID_MGR_IO_ACTION_H */
+
index 7d6eaa93e955aef2bdec413a13e8e7f40c2d1d7a..bdc6036088806b038d7f15a75b2045efb0a2f359 100644 (file)
@@ -40,3 +40,4 @@ public:
 } // namespace Mgr
 
 #endif /* SQUID_MGR_QUERY_PARAM_H */
+
index d7f842332a180a2f3f06b86637bf1dc111f228bf..97d4a311f5cc24bcbf98eb9699445d1e9ccdded6 100644 (file)
@@ -138,3 +138,4 @@ Mgr::QueryParams::CreateParam(QueryParam::Type aType)
     }
     return NULL;
 }
+
index 39a7bc49bee456cb37d0ef98853f9cbbffc5085f..41f3b5e5832d236787c417a891e5635fd81024d8 100644 (file)
@@ -49,3 +49,4 @@ private:
 } // namespace Mgr
 
 #endif /* SQUID_MGR_QUERY_PARAMS_H */
+
index 5aae8a506f5e58163d2b6691b5dd3002ecb97b71..d1cab07c4fa69c2f73486c4c6d91df90f985c4c0 100644 (file)
@@ -29,3 +29,4 @@ Mgr::RegisterAction(char const * action, char const * desc,
     CacheManager::GetInstance()->registerProfile(action, desc, handler,
             pw_req_flag, atomic);
 }
+
index cb9e35090629807474bbaadf03df92c71331314b..6a80a72b1d107033e2d447f8bcd14ee521544f60 100644 (file)
@@ -28,3 +28,4 @@ void RegisterAction(char const * action, char const * desc,
 } // namespace Mgr
 
 #endif /* SQUID_MGR_REGISTRATION_H */
+
index 65f940c643e1a43453980cc933900501085843f9..bb504a140d19a71da02b59b9edd5e87164e3d24d 100644 (file)
 
 Mgr::Request::Request(int aRequestorId, unsigned int aRequestId, const Comm::ConnectionPointer &aConn,
                       const ActionParams &aParams):
-        Ipc::Request(aRequestorId, aRequestId),
-        conn(aConn),
-        params(aParams)
+    Ipc::Request(aRequestorId, aRequestId),
+    conn(aConn),
+    params(aParams)
 {
     Must(requestorId > 0);
 }
 
 Mgr::Request::Request(const Request& request):
-        Ipc::Request(request.requestorId, request.requestId),
-        conn(request.conn), params(request.params)
+    Ipc::Request(request.requestorId, request.requestId),
+    conn(request.conn), params(request.params)
 {
 }
 
 Mgr::Request::Request(const Ipc::TypedMsgHdr& msg):
-        Ipc::Request(0, 0)
+    Ipc::Request(0, 0)
 {
     msg.checkType(Ipc::mtCacheMgrRequest);
     msg.getPod(requestorId);
@@ -61,3 +61,4 @@ Mgr::Request::clone() const
 {
     return new Request(*this);
 }
+
index 99430e229d7071b05b1b2460e4909c9b5a5266fe..ab3cb83dc6d8dc73cea4a76d0eaf1318c7575922 100644 (file)
@@ -42,3 +42,4 @@ public:
 } // namespace Mgr
 
 #endif /* SQUID_MGR_REQUEST_H */
+
index 7e914a0b38214c9fa56eba5778f0b620b2c8ecdf..05ae6cb882ea9c0b81059f72d75125fae26da6d6 100644 (file)
 #include "mgr/Response.h"
 
 Mgr::Response::Response(unsigned int aRequestId, Action::Pointer anAction):
-        Ipc::Response(aRequestId), action(anAction)
+    Ipc::Response(aRequestId), action(anAction)
 {
     Must(!action || action->name()); // if there is an action, it must be named
 }
 
 Mgr::Response::Response(const Response& response):
-        Ipc::Response(response.requestId), action(response.action)
+    Ipc::Response(response.requestId), action(response.action)
 {
 }
 
 Mgr::Response::Response(const Ipc::TypedMsgHdr& msg):
-        Ipc::Response(0)
+    Ipc::Response(0)
 {
     msg.checkType(Ipc::mtCacheMgrResponse);
     msg.getPod(requestId);
@@ -74,3 +74,4 @@ Mgr::Response::getAction() const
     Must(hasAction());
     return *action;
 }
+
index ac797a91261d507ec00383e47d4f36322a69f303..bb4a516d5e65644dbb3f1db9e78550681719b44d 100644 (file)
@@ -44,3 +44,4 @@ public:
 } // namespace Mgr
 
 #endif /* SQUID_MGR_RESPONSE_H */
+
index fa6a2992eda243112e5f69b3a4d65cf79214de0f..b77e592c6a1d0e46204a7519a7cf981605cdca4c 100644 (file)
@@ -61,7 +61,7 @@ Mgr::ServiceTimesAction::Create(const CommandPointer &cmd)
 }
 
 Mgr::ServiceTimesAction::ServiceTimesAction(const CommandPointer &aCmd):
-        Action(aCmd), data()
+    Action(aCmd), data()
 {
     debugs(16, 5, HERE);
 }
@@ -101,3 +101,4 @@ Mgr::ServiceTimesAction::unpack(const Ipc::TypedMsgHdr& msg)
     msg.checkType(Ipc::mtCacheMgrResponse);
     msg.getPod(data);
 }
+
index a338eeb5be372a374a06d678b6e4db902cfafa12..dcebdfbbe21c04285c3b9063651396c78d6aef7b 100644 (file)
@@ -69,3 +69,4 @@ private:
 } // namespace Mgr
 
 #endif /* SQUID_MGR_SERVICE_TIMES_ACTION_H */
+
index e6d1a9397a4a5618e03b008d82100a7e698dbdc9..f59d4a962b8c5af009f21cefdd9f27708bb97120 100644 (file)
@@ -39,7 +39,7 @@ Mgr::StoreIoAction::Create(const CommandPointer &cmd)
 }
 
 Mgr::StoreIoAction::StoreIoAction(const CommandPointer &aCmd):
-        Action(aCmd), data()
+    Action(aCmd), data()
 {
     debugs(16, 5, HERE);
 }
@@ -85,3 +85,4 @@ Mgr::StoreIoAction::unpack(const Ipc::TypedMsgHdr& msg)
     msg.checkType(Ipc::mtCacheMgrResponse);
     msg.getPod(data);
 }
+
index dc163b804b0caa84a4a32556f25e6f74a9704437..1c67e0479b2ac8b1e2806d3d4ba0039b8b406ef2 100644 (file)
@@ -55,3 +55,4 @@ private:
 } // namespace Mgr
 
 #endif /* SQUID_MGR_STORE_IO_ACTION_H */
+
index f1cb1afe23193075f6d516cc51d5ea7842aaaefc..66b37c15bfb25924906a1b13b932840e0713d482 100644 (file)
@@ -21,8 +21,8 @@
 CBDATA_NAMESPACED_CLASS_INIT(Mgr, StoreToCommWriter);
 
 Mgr::StoreToCommWriter::StoreToCommWriter(const Comm::ConnectionPointer &conn, StoreEntry* anEntry):
-        AsyncJob("Mgr::StoreToCommWriter"),
-        clientConnection(conn), entry(anEntry), sc(NULL), writeOffset(0), closer(NULL)
+    AsyncJob("Mgr::StoreToCommWriter"),
+    clientConnection(conn), entry(anEntry), sc(NULL), writeOffset(0), closer(NULL)
 {
     debugs(16, 6, HERE << clientConnection);
     closer = asyncCall(16, 5, "Mgr::StoreToCommWriter::noteCommClosed",
@@ -164,3 +164,4 @@ Mgr::StoreToCommWriter::Abort(void* param)
     if (Comm::IsConnOpen(mgrWriter->clientConnection))
         mgrWriter->clientConnection->close();
 }
+
index fcd140d3fe79031d94ddf9130c777e48da3bcfae..5b3964867d6791c530745d94583c9f07becfd99a 100644 (file)
@@ -71,3 +71,4 @@ protected:
 } // namespace Mgr
 
 #endif /* SQUID_MGR_STORE_TO_COMM_WRITER_H */
+
index 08bc41d26c141dab6a27bc5257890aad675fe751..0b961d2c71c10a51e8f43bc1a35e63adba81c2d3 100644 (file)
 #include "mgr/StringParam.h"
 
 Mgr::StringParam::StringParam():
-        QueryParam(QueryParam::ptString), str()
+    QueryParam(QueryParam::ptString), str()
 {
 }
 
 Mgr::StringParam::StringParam(const String& aString):
-        QueryParam(QueryParam::ptString), str(aString)
+    QueryParam(QueryParam::ptString), str(aString)
 {
 }
 
@@ -40,3 +40,4 @@ Mgr::StringParam::value() const
 {
     return str;
 }
+
index e66e363c80467ac490e51b498b374d132d9d87b7..7a2f612898b69db65584b895ff2288c7550f4e54 100644 (file)
@@ -35,3 +35,4 @@ private:
 } // namespace Mgr
 
 #endif /* SQUID_MGR_STRING_PARAM_H */
+
index cfcf1896537902b427f43ab7e466bd49533e7d6d..d72cee5c38dbd7758ec76ad77c24efbde642082e 100644 (file)
@@ -36,3 +36,4 @@ typedef ActionPointer (ClassActionCreationHandler)(const CommandPointer &cmd);
 } // namespace Mgr
 
 #endif /* SQUID_MGR_FORWARD_H */
+
index 1b5372b66f5ca3e310dd88cc362d1c21ea03e961..2809bb749845a541024846a4120f738bb2bf5d56 100644 (file)
@@ -114,7 +114,7 @@ mimeGetEntry(const char *fn, int skip_encodings)
 }
 
 MimeIcon::MimeIcon(const char *aName) :
-        icon_(xstrdup(aName))
+    icon_(xstrdup(aName))
 {
     url_ = xstrdup(internalLocalUri("/squid-internal-static/icons/", icon_));
 }
@@ -432,13 +432,13 @@ MimeEntry::MimeEntry(const char *aPattern, const regex_t &compiledPattern,
                      const char *aContentType, const char *aContentEncoding,
                      const char *aTransferMode, bool optionViewEnable,
                      bool optionDownloadEnable, const char *anIconName) :
-        pattern(xstrdup(aPattern)),
-        compiled_pattern(compiledPattern),
-        content_type(xstrdup(aContentType)),
-        content_encoding(xstrdup(aContentEncoding)),
-        view_option(optionViewEnable),
-        download_option(optionViewEnable),
-        theIcon(anIconName), next(NULL)
+    pattern(xstrdup(aPattern)),
+    compiled_pattern(compiledPattern),
+    content_type(xstrdup(aContentType)),
+    content_encoding(xstrdup(aContentEncoding)),
+    view_option(optionViewEnable),
+    download_option(optionViewEnable),
+    theIcon(anIconName), next(NULL)
 {
     if (!strcasecmp(aTransferMode, "ascii"))
         transfer_mode = 'A';
@@ -447,3 +447,4 @@ MimeEntry::MimeEntry(const char *aPattern, const regex_t &compiledPattern,
     else
         transfer_mode = 'I';
 }
+
index 1824e992ccdb0ad52de74169cfdae64a93dd8ffc..ee3e666598d3602292ace03c4da447f7c0f06af3 100644 (file)
@@ -20,3 +20,4 @@ bool mimeGetDownloadOption(const char *fn);
 bool mimeGetViewOption(const char *fn);
 
 #endif /* SQUID_MIME_H_ */
+
index 4d6f5d15ac63056a93bdd9fa5337c2a71ea2e2be..c55dc9d8b0b717936d7f04c5ad99b0273ff4afbf 100644 (file)
@@ -61,3 +61,4 @@ headersEnd(const char *mime, size_t l)
 
     return 0;
 }
+
index e3fe46528f0e5075c3ca3f9583647ef1a891fd36..30fc4e0dfc369a771faafe693cbc2c862d3b9741 100644 (file)
@@ -14,3 +14,4 @@
 size_t headersEnd(const char *, size_t);
 
 #endif /* SQUID_MIME_HEADER_H_ */
+
index 4fabfb42ee84f909e26817b4d8f645828ff55922..9fb2f160c2b53e0cf9090d3d92e8628da26263bb 100644 (file)
@@ -64,3 +64,4 @@ mcastJoinGroups(const ipcache_addrs *ia, const DnsLookupDetails &, void *datanot
 
 #endif
 }
+
index e66c77ec60d8a7a73669f95ac423489aca1ea208..a301ac25ab649b6f8a8d868854a3be6a70bb4975 100644 (file)
@@ -17,3 +17,4 @@ int mcastSetTtl(int, int);
 extern IPH mcastJoinGroups;
 
 #endif /* SQUID_MULTICAST_H_ */
+
index 79bcbe9195a72ba79352a6c3bbe091e9521ac5b6..e5612927e73ec70da592df76329bd590ed0e90ff 100644 (file)
@@ -408,7 +408,7 @@ getWeightedRoundRobinParent(HttpRequest * request)
  * period. The larger the number of requests between cycled resets the
  * more balanced the operations.
  *
- \param data   unused.
+ \param data    unused.
  \todo Make the reset timing a selectable parameter in squid.conf
  */
 static void
@@ -626,7 +626,7 @@ neighborsUdpPing(HttpRequest * request,
         debugs(15, 5, "neighborsUdpPing: Peer " << p->host);
 
         if (!peerWouldBePinged(p, request))
-            continue;          /* next CachePeer */
+            continue;       /* next CachePeer */
 
         ++peers_pinged;
 
@@ -735,7 +735,7 @@ neighborsUdpPing(HttpRequest * request,
             else
                 *timeout = 2 * sibling_timeout / sibling_exprep;
         } else
-            *timeout = 2000;   /* 2 seconds */
+            *timeout = 2000;    /* 2 seconds */
 
         if (Config.Timeout.icp_query_max)
             if (*timeout > Config.Timeout.icp_query_max)
@@ -837,7 +837,7 @@ neighborsDigestSelect(HttpRequest * request)
             best_p = p;
             best_rtt = p_rtt;
 
-            if (p_rtt)         /* informative choice (aka educated guess) */
+            if (p_rtt)      /* informative choice (aka educated guess) */
                 ++ichoice_count;
 
             debugs(15, 4, "neighborsDigestSelect: peer " << p->host << " leads with rtt " << best_rtt);
@@ -1800,3 +1800,4 @@ neighborsHtcpClear(StoreEntry * e, const char *uri, HttpRequest * req, const Htt
 }
 
 #endif
+
index c2d12fc287cf9b9798b27c33625e8aa6cac06013..00052e562839fb7323206fc18c2fec6e777294a1 100644 (file)
@@ -69,3 +69,4 @@ void peerConnClosed(CachePeer *p);
 CachePeer *whichPeer(const Ip::Address &from);
 
 #endif /* SQUID_NEIGHBORS_H_ */
+
index 584041ab8ffa9d8bcb03bca2ec23184bce8a62a3..83bbc05ad9b6ed7454cb9d3536b53e4768530182 100644 (file)
@@ -186,3 +186,4 @@ Parser::Tokenizer::int64(int64_t & result, int base)
     result = acc;
     return success(s - buf_.rawContent() - 1);
 }
+
index 1e8c34c64b74ff1e5e0e127d9a71ba0e47ff7dc9..40f1d040938ce6902fe012a05068433714a3cbf1 100644 (file)
@@ -120,3 +120,4 @@ private:
 } /* namespace Parser */
 
 #endif /* SQUID_PARSER_TOKENIZER_H_ */
+
index dc15d7d058de7022a1901141b81e102d18793615..77b0568bafd17bef17caa9b105ef631b503c5a3d 100644 (file)
@@ -246,3 +246,4 @@ testTokenizer::testTokenizerInt64()
 
     }
 }
+
index e9acdf66d77a772b8d3d2425f1e0fda7646f81e3..0edf78bfe040d1485dcbb1da38c9c80698ea7fe7 100644 (file)
@@ -30,3 +30,4 @@ protected:
 };
 
 #endif /* SQUID_TESTTOKENIZER_H_ */
+
index 4ec2fa23c3578ce42eef3e810ae9f652905817ac..e4f4960bc84422e4d844ddfc6a669e92a742f9e2 100644 (file)
@@ -23,7 +23,7 @@
 #include "SquidConfig.h"
 #include "Store.h"
 
-#define PCONN_FDS_SZ   8       /* pconn set size, increase for better memcache hit rate */
+#define PCONN_FDS_SZ    8   /* pconn set size, increase for better memcache hit rate */
 
 //TODO: re-attach to MemPools. WAS: static MemAllocator *pconn_fds_pool = NULL;
 PconnModule * PconnModule::instance = NULL;
@@ -32,9 +32,9 @@ CBDATA_CLASS_INIT(IdleConnList);
 /* ========== IdleConnList ============================================ */
 
 IdleConnList::IdleConnList(const char *key, PconnPool *thePool) :
-        capacity_(PCONN_FDS_SZ),
-        size_(0),
-        parent_(thePool)
+    capacity_(PCONN_FDS_SZ),
+    size_(0),
+    parent_(thePool)
 {
     hash.key = xstrdup(key);
     theList_ = new Comm::ConnectionPointer[capacity_];
@@ -364,9 +364,9 @@ PconnPool::dumpHash(StoreEntry *e) const
 /* ========== PconnPool PUBLIC FUNCTIONS ============================================ */
 
 PconnPool::PconnPool(const char *aDescr, const CbcPointer<PeerPoolMgr> &aMgr):
-        table(NULL), descr(aDescr),
-        mgr(aMgr),
-        theCount(0)
+    table(NULL), descr(aDescr),
+    mgr(aMgr),
+    theCount(0)
 {
     int i;
     table = hash_create((HASHCMP *) strcmp, 229, hash_string);
@@ -559,3 +559,4 @@ PconnModule::DumpWrapper(StoreEntry *e)
 {
     PconnModule::GetInstance()->dump(e);
 }
+
index eb995dfa3f8942545b01a89c7ae4fc62770c0692..2ed44189976e116304765fafd034d582d03e3fdb 100644 (file)
@@ -189,3 +189,4 @@ private:
 };
 
 #endif /* SQUID_PCONN_H */
+
index cb7690e5e38827c1776e5e73555844cbef31a086..c4197e2870a6dfe635822de5447eaae804e39341 100644 (file)
@@ -59,13 +59,13 @@ Version const CacheDigestVer = { 5, 3 };
 #define StoreDigestCBlockSize sizeof(StoreDigestCBlock)
 
 /* min interval for requesting digests from a given peer */
-static const time_t PeerDigestReqMinGap = 5 * 60;      /* seconds */
+static const time_t PeerDigestReqMinGap = 5 * 60;   /* seconds */
 /* min interval for requesting digests (cumulative request stream) */
-static const time_t GlobDigestReqMinGap = 1 * 60;      /* seconds */
+static const time_t GlobDigestReqMinGap = 1 * 60;   /* seconds */
 
 /* local vars */
 
-static time_t pd_last_req_time = 0;    /* last call to Check */
+static time_t pd_last_req_time = 0; /* last call to Check */
 
 /* initialize peer digest */
 static void
@@ -145,7 +145,7 @@ peerDigestNeeded(PeerDigest * pd)
 
     pd->flags.needed = true;
     pd->times.needed = squid_curtime;
-    peerDigestSetCheck(pd, 0); /* check asap */
+    peerDigestSetCheck(pd, 0);  /* check asap */
 }
 
 /* currently we do not have a reason to disable without destroying */
@@ -156,7 +156,7 @@ peerDigestDisable(PeerDigest * pd)
 {
     debugs(72, 2, "peerDigestDisable: peer " << pd->host.buf() << " disabled for good");
     pd->times.disabled = squid_curtime;
-    pd->times.next_check = -1; /* never */
+    pd->times.next_check = -1;  /* never */
     pd->flags.usable = 0;
 
     if (pd->cd) {
@@ -175,8 +175,8 @@ peerDigestIncDelay(const PeerDigest * pd)
 {
     assert(pd);
     return pd->times.retry_delay > 0 ?
-           2 * pd->times.retry_delay : /* exponential backoff */
-           PeerDigestReqMinGap;        /* minimal delay */
+           2 * pd->times.retry_delay :  /* exponential backoff */
+           PeerDigestReqMinGap; /* minimal delay */
 }
 
 /* artificially increases Expires: setting to avoid race conditions
@@ -227,7 +227,7 @@ peerDigestCheck(void *data)
 
     assert(!pd->flags.requested);
 
-    pd->times.next_check = 0;  /* unknown */
+    pd->times.next_check = 0;   /* unknown */
 
     if (!cbdataReferenceValid(pd->peer)) {
         peerDigestNotePeerGone(pd);
@@ -265,7 +265,7 @@ peerDigestCheck(void *data)
     }
 
     if (req_time <= squid_curtime)
-        peerDigestRequest(pd); /* will set pd->flags.requested */
+        peerDigestRequest(pd);  /* will set pd->flags.requested */
     else
         peerDigestSetCheck(pd, req_time - squid_curtime);
 }
@@ -562,7 +562,7 @@ peerDigestFetchReply(void *data, char *buf, ssize_t size)
         } else {
             /* some kind of a bug */
             peerDigestFetchAbort(fetch, buf, reply->sline.reason());
-            return -1;         /* XXX -1 will abort stuff in ReadReply! */
+            return -1;      /* XXX -1 will abort stuff in ReadReply! */
         }
 
         /* must have a ready-to-use store entry if we got here */
@@ -613,7 +613,7 @@ peerDigestSwapInHeaders(void *data, char *buf, ssize_t size)
         }
 
         fetch->state = DIGEST_READ_CBLOCK;
-        return hdr_size;       /* Say how much data we read */
+        return hdr_size;    /* Say how much data we read */
     } else {
         /* need more data, do we have space? */
 
@@ -621,7 +621,7 @@ peerDigestSwapInHeaders(void *data, char *buf, ssize_t size)
             peerDigestFetchAbort(fetch, buf, "stored header too big");
             return -1;
         } else {
-            return 0;          /* We need to read more to parse .. */
+            return 0;       /* We need to read more to parse .. */
         }
     }
 
@@ -662,7 +662,7 @@ peerDigestSwapInCBlock(void *data, char *buf, ssize_t size)
             peerDigestFetchAbort(fetch, buf, "digest cblock too big");
             return -1;
         } else {
-            return 0;          /* We need more data */
+            return 0;       /* We need more data */
         }
     }
 
@@ -697,7 +697,7 @@ peerDigestSwapInMask(void *data, char *buf, ssize_t size)
                fetch->mask_offset << ", expected " << pd->cd->mask_size);
         assert(fetch->mask_offset == pd->cd->mask_size);
         assert(peerDigestFetchedEnough(fetch, NULL, 0, "peerDigestSwapInMask"));
-        return -1;             /* XXX! */
+        return -1;      /* XXX! */
     } else {
         /* We always read everything, so return so */
         return size;
@@ -711,9 +711,9 @@ static int
 peerDigestFetchedEnough(DigestFetchState * fetch, char *buf, ssize_t size, const char *step_name)
 {
     PeerDigest *pd = NULL;
-    const char *host = "<unknown>";    /* peer host */
-    const char *reason = NULL; /* reason for completion */
-    const char *no_bug = NULL; /* successful completion if set */
+    const char *host = "<unknown>"; /* peer host */
+    const char *reason = NULL;  /* reason for completion */
+    const char *no_bug = NULL;  /* successful completion if set */
     const int pdcb_valid = cbdataReferenceValid(fetch->pd);
     const int pcb_valid = cbdataReferenceValid(fetch->pd->peer);
 
@@ -724,7 +724,7 @@ peerDigestFetchedEnough(DigestFetchState * fetch, char *buf, ssize_t size, const
         if (!(pd = fetch->pd))
             reason = "peer digest disappeared?!";
 
-#if DONT                       /* WHY NOT? /HNO */
+#if DONT            /* WHY NOT? /HNO */
 
         else if (!cbdataReferenceValid(pd))
             reason = "invalidated peer digest?!";
@@ -1111,3 +1111,4 @@ peerDigestStatsReport(const PeerDigest * pd, StoreEntry * e)
 }
 
 #endif
+
index 94d8af960bde30e76513f162f45a1706503b5763..253c64cec1201aa579148d3c8e06efe7bd7f3b60 100644 (file)
@@ -24,13 +24,13 @@ extern "C" {
 
 #if HAVE_PROFILE_H
 #include <profile.h>
-#endif                         /* HAVE_PROFILE_H */
+#endif              /* HAVE_PROFILE_H */
 #if HAVE_KRB5_H
 #if HAVE_BROKEN_SOLARIS_KRB5_H
 #if defined(__cplusplus)
 #define KRB5INT_BEGIN_DECLS     extern "C" {
 #define KRB5INT_END_DECLS
-    KRB5INT_BEGIN_DECLS
+KRB5INT_BEGIN_DECLS
 #endif
 #endif
 #include <krb5.h>
@@ -39,24 +39,24 @@ extern "C" {
 #endif                          /* HAVE_COM_ERR_H */
 #if HAVE_COM_ERR_H
 #include <com_err.h>
-#endif                         /* HAVE_COM_ERR_H */
+#endif              /* HAVE_COM_ERR_H */
 
 #if HAVE_GSSAPI_GSSAPI_H
 #include <gssapi/gssapi.h>
 #elif HAVE_GSSAPI_H
 #include <gssapi.h>
-#endif                         /* HAVE_GSSAPI_H */
+#endif              /* HAVE_GSSAPI_H */
 #if !USE_HEIMDAL_KRB5
 #if HAVE_GSSAPI_GSSAPI_EXT_H
 #include <gssapi/gssapi_ext.h>
-#endif                         /* HAVE_GSSAPI_GSSAPI_EXT_H */
+#endif              /* HAVE_GSSAPI_GSSAPI_EXT_H */
 #if HAVE_GSSAPI_GSSAPI_KRB5_H
 #include <gssapi/gssapi_krb5.h>
-#endif                         /* HAVE_GSSAPI_GSSAPI_KRB5_H */
+#endif              /* HAVE_GSSAPI_GSSAPI_KRB5_H */
 #if HAVE_GSSAPI_GSSAPI_GENERIC_H
 #include <gssapi/gssapi_generic.h>
-#endif                         /* HAVE_GSSAPI_GSSAPI_GENERIC_H */
-#endif                         /* !USE_HEIMDAL_KRB5 */
+#endif              /* HAVE_GSSAPI_GSSAPI_GENERIC_H */
+#endif              /* !USE_HEIMDAL_KRB5 */
 
 #ifndef gss_nt_service_name
 #define gss_nt_service_name GSS_C_NT_HOSTBASED_SERVICE
@@ -67,508 +67,510 @@ extern "C" {
 #elif !HAVE_ERROR_MESSAGE && HAVE_KRB5_GET_ERR_TEXT
 #define error_message(code) krb5_get_err_text(kparam.context,code)
 #elif !HAVE_ERROR_MESSAGE
-    static char err_code[17];
-    const char *KRB5_CALLCONV 
-    error_message(long code) {
-        snprintf(err_code,16,"%ld",code);
-        return err_code;
-    }
+static char err_code[17];
+const char *KRB5_CALLCONV
+error_message(long code) {
+    snprintf(err_code,16,"%ld",code);
+    return err_code;
+}
 #endif
 
 #ifndef gss_mech_spnego
-    static gss_OID_desc _gss_mech_spnego =
-        { 6, (void *) "\x2b\x06\x01\x05\x05\x02" };
-    gss_OID gss_mech_spnego = &_gss_mech_spnego;
+static gss_OID_desc _gss_mech_spnego =
+{ 6, (void *) "\x2b\x06\x01\x05\x05\x02" };
+gss_OID gss_mech_spnego = &_gss_mech_spnego;
 #endif
 
 #if USE_IBM_KERBEROS
 #include <ibm_svc/krb5_svc.h>
-    const char *KRB5_CALLCONV error_message(long code) {
-        char *msg = NULL;
-        krb5_svc_get_msg(code, &msg);
-        return msg;
-    }
+const char *KRB5_CALLCONV error_message(long code) {
+    char *msg = NULL;
+    krb5_svc_get_msg(code, &msg);
+    return msg;
+}
 #endif
 
-    /*
-     * Kerberos context and cache structure
-     * Caches authentication details to reduce
-     * number of authentication requests to kdc
-     */
-    static struct kstruct {
-        krb5_context context;
-        krb5_ccache cc;
-    } kparam = {
-        NULL, NULL};
+/*
+ * Kerberos context and cache structure
+ * Caches authentication details to reduce
+ * number of authentication requests to kdc
+ */
+static struct kstruct {
+    krb5_context context;
+    krb5_ccache cc;
+} kparam = {
+    NULL, NULL
+};
 
-    /*
    * krb5_create_cache creates a Kerberos file credential cache or a memory
    * credential cache if supported. The initial key for the principal
    * principal_name is extracted from the keytab keytab_filename.
    *
    * If keytab_filename is NULL the default will be used.
    * If principal_name is NULL the first working entry of the keytab will be used.
    */
-    int krb5_create_cache(char *keytab_filename, char *principal_name);
+/*
+ * krb5_create_cache creates a Kerberos file credential cache or a memory
+ * credential cache if supported. The initial key for the principal
+ * principal_name is extracted from the keytab keytab_filename.
+ *
+ * If keytab_filename is NULL the default will be used.
+ * If principal_name is NULL the first working entry of the keytab will be used.
+ */
+int krb5_create_cache(char *keytab_filename, char *principal_name);
 
-    /*
    * krb5_cleanup clears used Keberos memory
    */
-    void krb5_cleanup(void);
+/*
+ * krb5_cleanup clears used Keberos memory
+ */
+void krb5_cleanup(void);
 
-    /*
-     * check_gss_err checks for gssapi error codes, extracts the error message
-     * and prints it.
-     */
-    int check_gss_err(OM_uint32 major_status, OM_uint32 minor_status,
-                      const char *function);
-
-    int check_gss_err(OM_uint32 major_status, OM_uint32 minor_status,
-                      const char *function) {
-        if (GSS_ERROR(major_status)) {
-            OM_uint32 maj_stat, min_stat;
-            OM_uint32 msg_ctx = 0;
-            gss_buffer_desc status_string;
-            char buf[1024];
-            size_t len;
-
-            len = 0;
-            msg_ctx = 0;
-            while (!msg_ctx) {
-                /* convert major status code (GSS-API error) to text */
-                maj_stat = gss_display_status(&min_stat, major_status,
-                                              GSS_C_GSS_CODE, GSS_C_NULL_OID, &msg_ctx, &status_string);
-                if (maj_stat == GSS_S_COMPLETE) {
-                    if (sizeof(buf) > len + status_string.length + 1) {
-                        memcpy(buf + len, status_string.value,
-                               status_string.length);
-                        len += status_string.length;
-                    }
-                    gss_release_buffer(&min_stat, &status_string);
-                    break;
+/*
+ * check_gss_err checks for gssapi error codes, extracts the error message
+ * and prints it.
+ */
+int check_gss_err(OM_uint32 major_status, OM_uint32 minor_status,
+                  const char *function);
+
+int check_gss_err(OM_uint32 major_status, OM_uint32 minor_status,
+                  const char *function) {
+    if (GSS_ERROR(major_status)) {
+        OM_uint32 maj_stat, min_stat;
+        OM_uint32 msg_ctx = 0;
+        gss_buffer_desc status_string;
+        char buf[1024];
+        size_t len;
+
+        len = 0;
+        msg_ctx = 0;
+        while (!msg_ctx) {
+            /* convert major status code (GSS-API error) to text */
+            maj_stat = gss_display_status(&min_stat, major_status,
+                                          GSS_C_GSS_CODE, GSS_C_NULL_OID, &msg_ctx, &status_string);
+            if (maj_stat == GSS_S_COMPLETE) {
+                if (sizeof(buf) > len + status_string.length + 1) {
+                    memcpy(buf + len, status_string.value,
+                           status_string.length);
+                    len += status_string.length;
                 }
                 gss_release_buffer(&min_stat, &status_string);
+                break;
             }
-            if (sizeof(buf) > len + 2) {
-                strcpy(buf + len, ". ");
-                len += 2;
-            }
-            msg_ctx = 0;
-            while (!msg_ctx) {
-                /* convert minor status code (underlying routine error) to text */
-                maj_stat = gss_display_status(&min_stat, minor_status,
-                                              GSS_C_MECH_CODE, GSS_C_NULL_OID, &msg_ctx, &status_string);
-                if (maj_stat == GSS_S_COMPLETE) {
-                    if (sizeof(buf) > len + status_string.length) {
-                        memcpy(buf + len, status_string.value,
-                               status_string.length);
-                        len += status_string.length;
-                    }
-                    gss_release_buffer(&min_stat, &status_string);
-                    break;
+            gss_release_buffer(&min_stat, &status_string);
+        }
+        if (sizeof(buf) > len + 2) {
+            strcpy(buf + len, ". ");
+            len += 2;
+        }
+        msg_ctx = 0;
+        while (!msg_ctx) {
+            /* convert minor status code (underlying routine error) to text */
+            maj_stat = gss_display_status(&min_stat, minor_status,
+                                          GSS_C_MECH_CODE, GSS_C_NULL_OID, &msg_ctx, &status_string);
+            if (maj_stat == GSS_S_COMPLETE) {
+                if (sizeof(buf) > len + status_string.length) {
+                    memcpy(buf + len, status_string.value,
+                           status_string.length);
+                    len += status_string.length;
                 }
                 gss_release_buffer(&min_stat, &status_string);
+                break;
             }
-            debugs(11, 5, HERE << function << "failed: " << buf);
-            return (1);
+            gss_release_buffer(&min_stat, &status_string);
         }
-        return (0);
+        debugs(11, 5, HERE << function << "failed: " << buf);
+        return (1);
     }
+    return (0);
+}
 
-    void krb5_cleanup() {
-        debugs(11, 5, HERE << "Cleanup kerberos context");
-        if (kparam.context) {
-            if (kparam.cc)
-                krb5_cc_destroy(kparam.context, kparam.cc);
-            kparam.cc = NULL;
-            krb5_free_context(kparam.context);
-            kparam.context = NULL;
-        }
+void krb5_cleanup() {
+    debugs(11, 5, HERE << "Cleanup kerberos context");
+    if (kparam.context) {
+        if (kparam.cc)
+            krb5_cc_destroy(kparam.context, kparam.cc);
+        kparam.cc = NULL;
+        krb5_free_context(kparam.context);
+        kparam.context = NULL;
     }
+}
 
-    int krb5_create_cache(char *kf, char *pn) {
+int krb5_create_cache(char *kf, char *pn) {
 
 #define KT_PATH_MAX 256
 #define MAX_RENEW_TIME "365d"
 #define DEFAULT_SKEW (krb5_deltat) 600
 
-        static char *keytab_filename = NULL, *principal_name = NULL;
-        static krb5_keytab keytab = 0;
-        static krb5_keytab_entry entry;
-        static krb5_kt_cursor cursor;
-        static krb5_creds *creds = NULL;
+    static char *keytab_filename = NULL, *principal_name = NULL;
+    static krb5_keytab keytab = 0;
+    static krb5_keytab_entry entry;
+    static krb5_kt_cursor cursor;
+    static krb5_creds *creds = NULL;
 #if USE_HEIMDAL_KRB5 && !HAVE_KRB5_GET_RENEWED_CREDS
-        static krb5_creds creds2;
+    static krb5_creds creds2;
 #endif
-        static krb5_principal principal = NULL;
-        static krb5_deltat skew;
+    static krb5_principal principal = NULL;
+    static krb5_deltat skew;
 
 #if HAVE_KRB5_GET_INIT_CREDS_OPT_ALLOC
-        krb5_get_init_creds_opt *options;
+    krb5_get_init_creds_opt *options;
 #else
-        krb5_get_init_creds_opt options;
+    krb5_get_init_creds_opt options;
 #endif
-        krb5_error_code code = 0;
-        krb5_deltat rlife;
+    krb5_error_code code = 0;
+    krb5_deltat rlife;
 #if HAVE_PROFILE_H && HAVE_KRB5_GET_PROFILE && HAVE_PROFILE_GET_INTEGER && HAVE_PROFILE_RELEASE
-        profile_t profile;
+    profile_t profile;
 #endif
 #if USE_HEIMDAL_KRB5 && !HAVE_KRB5_GET_RENEWED_CREDS
-        krb5_kdc_flags flags;
+    krb5_kdc_flags flags;
 #if HAVE_KRB5_PRINCIPAL_GET_REALM
-        const char *client_realm;
+    const char *client_realm;
 #else
-        krb5_realm client_realm;
+    krb5_realm client_realm;
 #endif
 #endif
-        char *mem_cache;
+    char *mem_cache;
 
 restart:
-        /*
-         * Check if credentials need to be renewed
-         */
-        if (creds &&
-                (creds->times.endtime - time(0) > skew) &&
-                (creds->times.renew_till - time(0) > 2 * skew)) {
-            if (creds->times.endtime - time(0) < 2 * skew) {
+    /*
+     * Check if credentials need to be renewed
+     */
+    if (creds &&
+            (creds->times.endtime - time(0) > skew) &&
+            (creds->times.renew_till - time(0) > 2 * skew)) {
+        if (creds->times.endtime - time(0) < 2 * skew) {
 #if HAVE_KRB5_GET_RENEWED_CREDS
-                /* renew ticket */
-                code =
-                    krb5_get_renewed_creds(kparam.context, creds, principal,
-                                           kparam.cc, NULL);
+            /* renew ticket */
+            code =
+                krb5_get_renewed_creds(kparam.context, creds, principal,
+                                       kparam.cc, NULL);
 #else
-                /* renew ticket */
-                flags.i = 0;
-                flags.b.renewable = flags.b.renew = 1;
-
-                code =
-                    krb5_cc_get_principal(kparam.context, kparam.cc,
-                                          &creds2.client);
-                if (code) {
-                    debugs(11, 5,
-                           HERE <<
-                           "Error while getting principal from credential cache : "
-                           << error_message(code));
-                    return (1);
-                }
+            /* renew ticket */
+            flags.i = 0;
+            flags.b.renewable = flags.b.renew = 1;
+
+            code =
+                krb5_cc_get_principal(kparam.context, kparam.cc,
+                                      &creds2.client);
+            if (code) {
+                debugs(11, 5,
+                       HERE <<
+                       "Error while getting principal from credential cache : "
+                       << error_message(code));
+                return (1);
+            }
 #if HAVE_KRB5_PRINCIPAL_GET_REALM
-                client_realm = krb5_principal_get_realm(kparam.context, principal);
+            client_realm = krb5_principal_get_realm(kparam.context, principal);
 #else
-                client_realm = krb5_princ_realm(kparam.context, creds2.client);
-#endif
-                code =
-                    krb5_make_principal(kparam.context, &creds2.server,
-                                        (krb5_const_realm)&client_realm, KRB5_TGS_NAME,
-                                        (krb5_const_realm)&client_realm, NULL);
-                if (code) {
-                    debugs(11, 5,
-                           HERE << "Error while getting krbtgt principal : " <<
-                           error_message(code));
-                    return (1);
-                }
-                code =
-                    krb5_get_kdc_cred(kparam.context, kparam.cc, flags, NULL,
-                                      NULL, &creds2, &creds);
-                krb5_free_creds(kparam.context, &creds2);
+            client_realm = krb5_princ_realm(kparam.context, creds2.client);
 #endif
-                if (code) {
-                    if (code == KRB5KRB_AP_ERR_TKT_EXPIRED) {
-                        krb5_free_creds(kparam.context, creds);
-                        creds = NULL;
-                        /* this can happen because of clock skew */
-                        goto restart;
-                    }
-                    debugs(11, 5,
-                           HERE << "Error while get credentials : " <<
-                           error_message(code));
-                    return (1);
-                }
-            }
-        } else {
-            /* reinit */
-            if (!kparam.context) {
-                code = krb5_init_context(&kparam.context);
-                if (code) {
-                    debugs(11, 5,
-                           HERE << "Error while initialising Kerberos library : "
-                           << error_message(code));
-                    return (1);
-                }
-            }
-#if HAVE_PROFILE_H && HAVE_KRB5_GET_PROFILE && HAVE_PROFILE_GET_INTEGER && HAVE_PROFILE_RELEASE
-            code = krb5_get_profile(kparam.context, &profile);
+            code =
+                krb5_make_principal(kparam.context, &creds2.server,
+                                    (krb5_const_realm)&client_realm, KRB5_TGS_NAME,
+                                    (krb5_const_realm)&client_realm, NULL);
             if (code) {
-                if (profile)
-                    profile_release(profile);
                 debugs(11, 5,
-                       HERE << "Error while getting profile : " <<
+                       HERE << "Error while getting krbtgt principal : " <<
                        error_message(code));
                 return (1);
             }
             code =
-                profile_get_integer(profile, "libdefaults", "clockskew", 0,
-                                    5 * 60, &skew);
-            if (profile)
-                profile_release(profile);
+                krb5_get_kdc_cred(kparam.context, kparam.cc, flags, NULL,
+                                  NULL, &creds2, &creds);
+            krb5_free_creds(kparam.context, &creds2);
+#endif
             if (code) {
+                if (code == KRB5KRB_AP_ERR_TKT_EXPIRED) {
+                    krb5_free_creds(kparam.context, creds);
+                    creds = NULL;
+                    /* this can happen because of clock skew */
+                    goto restart;
+                }
                 debugs(11, 5,
-                       HERE << "Error while getting clockskew : " <<
+                       HERE << "Error while get credentials : " <<
                        error_message(code));
                 return (1);
             }
-#elif USE_HEIMDAL_KRB5 && HAVE_KRB5_GET_MAX_TIME_SKEW
-            skew = krb5_get_max_time_skew(kparam.context);
-#elif USE_HEIMDAL_KRB5 && HAVE_MAX_SKEW_IN_KRB5_CONTEXT
-            skew = kparam.context->max_skew;
-#else
-            skew = DEFAULT_SKEW;
-#endif
-
-            if (!kf) {
-                char buf[KT_PATH_MAX], *p;
-
-                krb5_kt_default_name(kparam.context, buf, KT_PATH_MAX);
-                p = strchr(buf, ':');
-                if (p)
-                    ++p;
-                xfree(keytab_filename);
-                keytab_filename = xstrdup(p ? p : buf);
-            } else {
-                keytab_filename = xstrdup(kf);
-            }
-
-            code = krb5_kt_resolve(kparam.context, keytab_filename, &keytab);
+        }
+    } else {
+        /* reinit */
+        if (!kparam.context) {
+            code = krb5_init_context(&kparam.context);
             if (code) {
                 debugs(11, 5,
-                       HERE << "Error while resolving keytab filename " <<
-                       keytab_filename << " : " << error_message(code));
+                       HERE << "Error while initialising Kerberos library : "
+                       << error_message(code));
                 return (1);
             }
-
-            if (!pn) {
-                code = krb5_kt_start_seq_get(kparam.context, keytab, &cursor);
-                if (code) {
-                    debugs(11, 5,
-                           HERE << "Error while starting keytab scan : " <<
-                           error_message(code));
-                    return (1);
-                }
-                code =
-                    krb5_kt_next_entry(kparam.context, keytab, &entry, &cursor);
-                krb5_copy_principal(kparam.context, entry.principal,
-                                    &principal);
-                if (code && code != KRB5_KT_END) {
-                    debugs(11, 5,
-                           HERE << "Error while scanning keytab : " <<
-                           error_message(code));
-                    return (1);
-                }
-
-                code = krb5_kt_end_seq_get(kparam.context, keytab, &cursor);
-                if (code) {
-                    debugs(11, 5,
-                           HERE << "Error while ending keytab scan : " <<
-                           error_message(code));
-                    return (1);
-                }
-#if USE_HEIMDAL_KRB5 || ( HAVE_KRB5_KT_FREE_ENTRY && HAVE_DECL_KRB5_KT_FREE_ENTRY)
-                code = krb5_kt_free_entry(kparam.context, &entry);
+        }
+#if HAVE_PROFILE_H && HAVE_KRB5_GET_PROFILE && HAVE_PROFILE_GET_INTEGER && HAVE_PROFILE_RELEASE
+        code = krb5_get_profile(kparam.context, &profile);
+        if (code) {
+            if (profile)
+                profile_release(profile);
+            debugs(11, 5,
+                   HERE << "Error while getting profile : " <<
+                   error_message(code));
+            return (1);
+        }
+        code =
+            profile_get_integer(profile, "libdefaults", "clockskew", 0,
+                                5 * 60, &skew);
+        if (profile)
+            profile_release(profile);
+        if (code) {
+            debugs(11, 5,
+                   HERE << "Error while getting clockskew : " <<
+                   error_message(code));
+            return (1);
+        }
+#elif USE_HEIMDAL_KRB5 && HAVE_KRB5_GET_MAX_TIME_SKEW
+        skew = krb5_get_max_time_skew(kparam.context);
+#elif USE_HEIMDAL_KRB5 && HAVE_MAX_SKEW_IN_KRB5_CONTEXT
+        skew = kparam.context->max_skew;
 #else
-                code = krb5_free_keytab_entry_contents(kparam.context, &entry);
+        skew = DEFAULT_SKEW;
 #endif
-                if (code) {
-                    debugs(11, 5,
-                           HERE << "Error while freeing keytab entry : " <<
-                           error_message(code));
-                    return (1);
-                }
 
-            } else {
-                principal_name = xstrdup(pn);
-            }
+        if (!kf) {
+            char buf[KT_PATH_MAX], *p;
 
-            if (!principal) {
-                code =
-                    krb5_parse_name(kparam.context, principal_name, &principal);
-                if (code) {
-                    debugs(11, 5,
-                           HERE << "Error while parsing principal name " <<
-                           principal_name << " : " << error_message(code));
-                    return (1);
-                }
-            }
+            krb5_kt_default_name(kparam.context, buf, KT_PATH_MAX);
+            p = strchr(buf, ':');
+            if (p)
+                ++p;
+            xfree(keytab_filename);
+            keytab_filename = xstrdup(p ? p : buf);
+        } else {
+            keytab_filename = xstrdup(kf);
+        }
 
-            creds = (krb5_creds *) xmalloc(sizeof(*creds));
-            memset(creds, 0, sizeof(*creds));
-#if HAVE_KRB5_GET_INIT_CREDS_OPT_ALLOC
-            krb5_get_init_creds_opt_alloc(kparam.context, &options);
-#else
-            krb5_get_init_creds_opt_init(&options);
-#endif
-            code = krb5_string_to_deltat((char *) MAX_RENEW_TIME, &rlife);
-            if (code != 0 || rlife == 0) {
+        code = krb5_kt_resolve(kparam.context, keytab_filename, &keytab);
+        if (code) {
+            debugs(11, 5,
+                   HERE << "Error while resolving keytab filename " <<
+                   keytab_filename << " : " << error_message(code));
+            return (1);
+        }
+
+        if (!pn) {
+            code = krb5_kt_start_seq_get(kparam.context, keytab, &cursor);
+            if (code) {
                 debugs(11, 5,
-                       HERE << "Error bad lifetime value " << MAX_RENEW_TIME <<
-                       " : " << error_message(code));
+                       HERE << "Error while starting keytab scan : " <<
+                       error_message(code));
                 return (1);
             }
-#if HAVE_KRB5_GET_INIT_CREDS_OPT_ALLOC
-            krb5_get_init_creds_opt_set_renew_life(options, rlife);
-            code =
-                krb5_get_init_creds_keytab(kparam.context, creds, principal,
-                                           keytab, 0, NULL, options);
-#if HAVE_KRB5_GET_INIT_CREDS_FREE_CONTEXT
-            krb5_get_init_creds_opt_free(kparam.context, options);
-#else
-            krb5_get_init_creds_opt_free(options);
-#endif
-#else
-            krb5_get_init_creds_opt_set_renew_life(&options, rlife);
             code =
-                krb5_get_init_creds_keytab(kparam.context, creds, principal,
-                                           keytab, 0, NULL, &options);
-#endif
-            if (code) {
+                krb5_kt_next_entry(kparam.context, keytab, &entry, &cursor);
+            krb5_copy_principal(kparam.context, entry.principal,
+                                &principal);
+            if (code && code != KRB5_KT_END) {
                 debugs(11, 5,
-                       HERE <<
-                       "Error while initializing credentials from keytab : " <<
+                       HERE << "Error while scanning keytab : " <<
                        error_message(code));
                 return (1);
             }
-#if !HAVE_KRB5_MEMORY_CACHE
-            mem_cache =
-                (char *) xmalloc(strlen("FILE:/tmp/peer_proxy_negotiate_auth_")
-                                 + 16);
-            if (!mem_cache) {
-                debugs(11, 5, "Error while allocating memory");
-                return(1);
-            }
-            snprintf(mem_cache,
-                     strlen("FILE:/tmp/peer_proxy_negotiate_auth_") + 16,
-                     "FILE:/tmp/peer_proxy_negotiate_auth_%d", (int) getpid());
-#else
-            mem_cache =
-                (char *) xmalloc(strlen("MEMORY:peer_proxy_negotiate_auth_") +
-                                 16);
-            if (!mem_cache) {
-                debugs(11, 5, "Error while allocating memory");
-                return(1);
-            }
-            snprintf(mem_cache,
-                     strlen("MEMORY:peer_proxy_negotiate_auth_") + 16,
-                     "MEMORY:peer_proxy_negotiate_auth_%d", (int) getpid());
-#endif
 
-            setenv("KRB5CCNAME", mem_cache, 1);
-            code = krb5_cc_resolve(kparam.context, mem_cache, &kparam.cc);
-            xfree(mem_cache);
+            code = krb5_kt_end_seq_get(kparam.context, keytab, &cursor);
             if (code) {
                 debugs(11, 5,
-                       HERE << "Error while resolving memory credential cache : "
-                       << error_message(code));
+                       HERE << "Error while ending keytab scan : " <<
+                       error_message(code));
                 return (1);
             }
-            code = krb5_cc_initialize(kparam.context, kparam.cc, principal);
+#if USE_HEIMDAL_KRB5 || ( HAVE_KRB5_KT_FREE_ENTRY && HAVE_DECL_KRB5_KT_FREE_ENTRY)
+            code = krb5_kt_free_entry(kparam.context, &entry);
+#else
+            code = krb5_free_keytab_entry_contents(kparam.context, &entry);
+#endif
             if (code) {
                 debugs(11, 5,
-                       HERE <<
-                       "Error while initializing memory credential cache : " <<
+                       HERE << "Error while freeing keytab entry : " <<
                        error_message(code));
                 return (1);
             }
-            code = krb5_cc_store_cred(kparam.context, kparam.cc, creds);
+
+        } else {
+            principal_name = xstrdup(pn);
+        }
+
+        if (!principal) {
+            code =
+                krb5_parse_name(kparam.context, principal_name, &principal);
             if (code) {
                 debugs(11, 5,
-                       HERE << "Error while storing credentials : " <<
-                       error_message(code));
+                       HERE << "Error while parsing principal name " <<
+                       principal_name << " : " << error_message(code));
                 return (1);
             }
-
-            if (!creds->times.starttime)
-                creds->times.starttime = creds->times.authtime;
         }
-        return (0);
-    }
 
-    /*
-     * peer_proxy_negotiate_auth gets a GSSAPI token for principal_name
-     * and base64 encodes it.
-     */
-    char *peer_proxy_negotiate_auth(char *principal_name, char *proxy) {
-        int rc = 0;
-        OM_uint32 major_status, minor_status;
-        gss_ctx_id_t gss_context = GSS_C_NO_CONTEXT;
-        gss_name_t server_name = GSS_C_NO_NAME;
-        gss_buffer_desc service = GSS_C_EMPTY_BUFFER;
-        gss_buffer_desc input_token = GSS_C_EMPTY_BUFFER;
-        gss_buffer_desc output_token = GSS_C_EMPTY_BUFFER;
-        char *token = NULL;
-
-        setbuf(stdout, NULL);
-        setbuf(stdin, NULL);
-
-        if (!proxy) {
-            debugs(11, 5, HERE << "Error : No proxy server name");
-            return NULL;
+        creds = (krb5_creds *) xmalloc(sizeof(*creds));
+        memset(creds, 0, sizeof(*creds));
+#if HAVE_KRB5_GET_INIT_CREDS_OPT_ALLOC
+        krb5_get_init_creds_opt_alloc(kparam.context, &options);
+#else
+        krb5_get_init_creds_opt_init(&options);
+#endif
+        code = krb5_string_to_deltat((char *) MAX_RENEW_TIME, &rlife);
+        if (code != 0 || rlife == 0) {
+            debugs(11, 5,
+                   HERE << "Error bad lifetime value " << MAX_RENEW_TIME <<
+                   " : " << error_message(code));
+            return (1);
         }
-
-        if (principal_name)
+#if HAVE_KRB5_GET_INIT_CREDS_OPT_ALLOC
+        krb5_get_init_creds_opt_set_renew_life(options, rlife);
+        code =
+            krb5_get_init_creds_keytab(kparam.context, creds, principal,
+                                       keytab, 0, NULL, options);
+#if HAVE_KRB5_GET_INIT_CREDS_FREE_CONTEXT
+        krb5_get_init_creds_opt_free(kparam.context, options);
+#else
+        krb5_get_init_creds_opt_free(options);
+#endif
+#else
+        krb5_get_init_creds_opt_set_renew_life(&options, rlife);
+        code =
+            krb5_get_init_creds_keytab(kparam.context, creds, principal,
+                                       keytab, 0, NULL, &options);
+#endif
+        if (code) {
             debugs(11, 5,
-                   HERE << "Creating credential cache for " << principal_name);
-        else
-            debugs(11, 5, HERE << "Creating credential cache");
-        rc = krb5_create_cache(NULL, principal_name);
-        if (rc) {
-            debugs(11, 5, HERE << "Error : Failed to create Kerberos cache");
-            krb5_cleanup();
-            return NULL;
+                   HERE <<
+                   "Error while initializing credentials from keytab : " <<
+                   error_message(code));
+            return (1);
+        }
+#if !HAVE_KRB5_MEMORY_CACHE
+        mem_cache =
+            (char *) xmalloc(strlen("FILE:/tmp/peer_proxy_negotiate_auth_")
+                             + 16);
+        if (!mem_cache) {
+            debugs(11, 5, "Error while allocating memory");
+            return(1);
         }
+        snprintf(mem_cache,
+                 strlen("FILE:/tmp/peer_proxy_negotiate_auth_") + 16,
+                 "FILE:/tmp/peer_proxy_negotiate_auth_%d", (int) getpid());
+#else
+        mem_cache =
+            (char *) xmalloc(strlen("MEMORY:peer_proxy_negotiate_auth_") +
+                             16);
+        if (!mem_cache) {
+            debugs(11, 5, "Error while allocating memory");
+            return(1);
+        }
+        snprintf(mem_cache,
+                 strlen("MEMORY:peer_proxy_negotiate_auth_") + 16,
+                 "MEMORY:peer_proxy_negotiate_auth_%d", (int) getpid());
+#endif
 
-        service.value = (void *) xmalloc(strlen("HTTP") + strlen(proxy) + 2);
-        snprintf((char *) service.value, strlen("HTTP") + strlen(proxy) + 2,
-                 "%s@%s", "HTTP", proxy);
-        service.length = strlen((char *) service.value);
-
-        debugs(11, 5, HERE << "Import gss name");
-        major_status = gss_import_name(&minor_status, &service,
-                                       gss_nt_service_name, &server_name);
-
-        if (check_gss_err(major_status, minor_status, "gss_import_name()"))
-            goto cleanup;
-
-        debugs(11, 5, HERE << "Initialize gss security context");
-        major_status = gss_init_sec_context(&minor_status,
-                                            GSS_C_NO_CREDENTIAL,
-                                            &gss_context,
-                                            server_name,
-                                            gss_mech_spnego,
-                                            0,
-                                            0,
-                                            GSS_C_NO_CHANNEL_BINDINGS,
-                                            &input_token, NULL, &output_token, NULL, NULL);
-
-        if (check_gss_err(major_status, minor_status, "gss_init_sec_context()"))
-            goto cleanup;
-
-        debugs(11, 5, HERE << "Got token with length " << output_token.length);
-        if (output_token.length) {
-
-            token =
-                (char *) base64_encode_bin((const char *) output_token.value,
-                                           output_token.length);
+        setenv("KRB5CCNAME", mem_cache, 1);
+        code = krb5_cc_resolve(kparam.context, mem_cache, &kparam.cc);
+        xfree(mem_cache);
+        if (code) {
+            debugs(11, 5,
+                   HERE << "Error while resolving memory credential cache : "
+                   << error_message(code));
+            return (1);
+        }
+        code = krb5_cc_initialize(kparam.context, kparam.cc, principal);
+        if (code) {
+            debugs(11, 5,
+                   HERE <<
+                   "Error while initializing memory credential cache : " <<
+                   error_message(code));
+            return (1);
+        }
+        code = krb5_cc_store_cred(kparam.context, kparam.cc, creds);
+        if (code) {
+            debugs(11, 5,
+                   HERE << "Error while storing credentials : " <<
+                   error_message(code));
+            return (1);
         }
 
-cleanup:
-        gss_delete_sec_context(&minor_status, &gss_context, NULL);
-        gss_release_buffer(&minor_status, &service);
-        gss_release_buffer(&minor_status, &input_token);
-        gss_release_buffer(&minor_status, &output_token);
-        gss_release_name(&minor_status, &server_name);
+        if (!creds->times.starttime)
+            creds->times.starttime = creds->times.authtime;
+    }
+    return (0);
+}
+
+/*
+ * peer_proxy_negotiate_auth gets a GSSAPI token for principal_name
+ * and base64 encodes it.
+ */
+char *peer_proxy_negotiate_auth(char *principal_name, char *proxy) {
+    int rc = 0;
+    OM_uint32 major_status, minor_status;
+    gss_ctx_id_t gss_context = GSS_C_NO_CONTEXT;
+    gss_name_t server_name = GSS_C_NO_NAME;
+    gss_buffer_desc service = GSS_C_EMPTY_BUFFER;
+    gss_buffer_desc input_token = GSS_C_EMPTY_BUFFER;
+    gss_buffer_desc output_token = GSS_C_EMPTY_BUFFER;
+    char *token = NULL;
+
+    setbuf(stdout, NULL);
+    setbuf(stdin, NULL);
+
+    if (!proxy) {
+        debugs(11, 5, HERE << "Error : No proxy server name");
+        return NULL;
+    }
+
+    if (principal_name)
+        debugs(11, 5,
+               HERE << "Creating credential cache for " << principal_name);
+    else
+        debugs(11, 5, HERE << "Creating credential cache");
+    rc = krb5_create_cache(NULL, principal_name);
+    if (rc) {
+        debugs(11, 5, HERE << "Error : Failed to create Kerberos cache");
+        krb5_cleanup();
+        return NULL;
+    }
 
-        return token;
+    service.value = (void *) xmalloc(strlen("HTTP") + strlen(proxy) + 2);
+    snprintf((char *) service.value, strlen("HTTP") + strlen(proxy) + 2,
+             "%s@%s", "HTTP", proxy);
+    service.length = strlen((char *) service.value);
+
+    debugs(11, 5, HERE << "Import gss name");
+    major_status = gss_import_name(&minor_status, &service,
+                                   gss_nt_service_name, &server_name);
+
+    if (check_gss_err(major_status, minor_status, "gss_import_name()"))
+        goto cleanup;
+
+    debugs(11, 5, HERE << "Initialize gss security context");
+    major_status = gss_init_sec_context(&minor_status,
+                                        GSS_C_NO_CREDENTIAL,
+                                        &gss_context,
+                                        server_name,
+                                        gss_mech_spnego,
+                                        0,
+                                        0,
+                                        GSS_C_NO_CHANNEL_BINDINGS,
+                                        &input_token, NULL, &output_token, NULL, NULL);
+
+    if (check_gss_err(major_status, minor_status, "gss_init_sec_context()"))
+        goto cleanup;
+
+    debugs(11, 5, HERE << "Got token with length " << output_token.length);
+    if (output_token.length) {
+
+        token =
+            (char *) base64_encode_bin((const char *) output_token.value,
+                                       output_token.length);
     }
 
+cleanup:
+    gss_delete_sec_context(&minor_status, &gss_context, NULL);
+    gss_release_buffer(&minor_status, &service);
+    gss_release_buffer(&minor_status, &input_token);
+    gss_release_buffer(&minor_status, &output_token);
+    gss_release_name(&minor_status, &server_name);
+
+    return token;
+}
+
 #ifdef __cplusplus
 }
 #endif
 #endif /* HAVE_KRB5 && HAVE_GSSAPI */
+
index 7bb47670941dd9463c146dae9bb2342c89e10571..ac3a5b67a64cd79b0d27c277982d2ec84eef11f4 100644 (file)
@@ -15,3 +15,4 @@ SQUIDCEXTERN char *peer_proxy_negotiate_auth(char *principal_name, char *proxy);
 #endif
 
 #endif /* SQUID_PEER_PROXY_NEGOTIATE_AUTH_H_ */
+
index 77054912de84082a12352da0db241fb9e779f7db..c4658c254ba957749711be1b2cf935b63fcfc428 100644 (file)
@@ -949,19 +949,19 @@ peerAddFwdServer(FwdServer ** FSVR, CachePeer * p, hier_code code)
 }
 
 ps_state::ps_state() : request (NULL),
-        entry (NULL),
-        always_direct(Config.accessList.AlwaysDirect?ACCESS_DUNNO:ACCESS_DENIED),
-        never_direct(Config.accessList.NeverDirect?ACCESS_DUNNO:ACCESS_DENIED),
-        direct(DIRECT_UNKNOWN),
-        callback (NULL),
-        callback_data (NULL),
-        lastError(NULL),
-        servers (NULL),
-        first_parent_miss(),
-        closest_parent_miss(),
-        hit(NULL),
-        hit_type(PEER_NONE),
-        acl_checklist (NULL)
+    entry (NULL),
+    always_direct(Config.accessList.AlwaysDirect?ACCESS_DUNNO:ACCESS_DENIED),
+    never_direct(Config.accessList.NeverDirect?ACCESS_DUNNO:ACCESS_DENIED),
+    direct(DIRECT_UNKNOWN),
+    callback (NULL),
+    callback_data (NULL),
+    lastError(NULL),
+    servers (NULL),
+    first_parent_miss(),
+    closest_parent_miss(),
+    hit(NULL),
+    hit_type(PEER_NONE),
+    acl_checklist (NULL)
 {
     ; // no local defaults.
 }
@@ -979,16 +979,17 @@ ps_state::url() const
 }
 
 ping_data::ping_data() :
-        n_sent(0),
-        n_recv(0),
-        n_replies_expected(0),
-        timeout(0),
-        timedout(0),
-        w_rtt(0),
-        p_rtt(0)
+    n_sent(0),
+    n_recv(0),
+    n_replies_expected(0),
+    timeout(0),
+    timedout(0),
+    w_rtt(0),
+    p_rtt(0)
 {
     start.tv_sec = 0;
     start.tv_usec = 0;
     stop.tv_sec = 0;
     stop.tv_usec = 0;
 }
+
index 52bdeb33a47769ffc3e4542d77910bac061f0f15..93d188174dc391de6dd8f141dec0662013012797 100644 (file)
@@ -115,11 +115,11 @@ peerSourceHashInit(void)
      */
     K = n_sourcehash_peers;
 
-    P_last = 0.0;              /* Empty P_0 */
+    P_last = 0.0;       /* Empty P_0 */
 
-    Xn = 1.0;                  /* Empty starting point of X_1 * X_2 * ... * X_{x-1} */
+    Xn = 1.0;           /* Empty starting point of X_1 * X_2 * ... * X_{x-1} */
 
-    X_last = 0.0;              /* Empty X_0, nullifies the first pow statement */
+    X_last = 0.0;       /* Empty X_0, nullifies the first pow statement */
 
     for (k = 1; k <= K; ++k) {
         double Kk1 = (double) (K - k + 1);
@@ -210,3 +210,4 @@ peerSourceHashCachemgr(StoreEntry * sentry)
                           sumfetches ? (double) p->stats.fetches / sumfetches : -1.0);
     }
 }
+
index ac34409938de79b9477ae7a3bd0f671966731c20..3cefa03e06abb851a259326fe470df166a175648 100644 (file)
@@ -18,3 +18,4 @@ void peerSourceHashInit(void);
 CachePeer * peerSourceHashSelectParent(HttpRequest * request);
 
 #endif /* SQUID_PEER_SOURCEHASH_H_ */
+
index 82f24559256be3c683f20edec13dfbcf73638b15..441aa469591d9676d616992814ff033d07535278 100644 (file)
@@ -120,11 +120,11 @@ peerUserHashInit(void)
      */
     K = n_userhash_peers;
 
-    P_last = 0.0;              /* Empty P_0 */
+    P_last = 0.0;       /* Empty P_0 */
 
-    Xn = 1.0;                  /* Empty starting point of X_1 * X_2 * ... * X_{x-1} */
+    Xn = 1.0;           /* Empty starting point of X_1 * X_2 * ... * X_{x-1} */
 
-    X_last = 0.0;              /* Empty X_0, nullifies the first pow statement */
+    X_last = 0.0;       /* Empty X_0, nullifies the first pow statement */
 
     for (k = 1; k <= K; ++k) {
         double Kk1 = (double) (K - k + 1);
@@ -220,3 +220,4 @@ peerUserHashCachemgr(StoreEntry * sentry)
 }
 
 #endif /* USE_AUTH */
+
index 6c8e59eea0f0e429c1317b9c629d0bcc38cd1dce..74bd717390f30bf0a1d8bf6d485c8890d3ed0454 100644 (file)
@@ -18,3 +18,4 @@ void peerUserHashInit(void);
 CachePeer * peerUserHashSelectParent(HttpRequest * request);
 
 #endif /* SQUID_PEER_USERHASH_H_ */
+
index 0aa6ceb69bee8d936d3e5021dc212fbbb2f85dbb..44d9e9cbc0fb3b3f6615afc4225e12c189f2ee08 100644 (file)
@@ -14,3 +14,4 @@ void rotate_logs(int);
 void reconfigure(int);
 
 #endif /* SQUID_PROTOS_H */
+
index b8f603fdbd2e38eb7ca1595ed72fc90b6932c59a..f1ddad1e7ab31f59b2b60b6076c2e8a1ff26f3e9 100644 (file)
@@ -107,3 +107,4 @@ main(int argc, char *argv[])
 
     return 0;
 }
+
index eec79050461a2b9f6630c78668c1875dced27a75..0424e03dccbda6cb27395d00dc87d4154213a81b 100644 (file)
@@ -65,9 +65,9 @@ static Format::Format *storeIdExtrasFmt = NULL;
 CBDATA_CLASS_INIT(RedirectStateData);
 
 RedirectStateData::RedirectStateData(const char *url) :
-        data(NULL),
-        orig_url(url),
-        handler(NULL)
+    data(NULL),
+    orig_url(url),
+    handler(NULL)
 {
 }
 
@@ -432,3 +432,4 @@ redirectShutdown(void)
     delete storeIdExtrasFmt;
     storeIdExtrasFmt = NULL;
 }
+
index 773123171737d68a9e29ceac9820a74cc99e1a2b..4a2ccaf2e68a9c38117ff2853cc3e0c85c7bd84d 100644 (file)
@@ -23,3 +23,4 @@ void redirectStart(ClientHttpRequest *, HLPCB *, void *);
 void storeIdStart(ClientHttpRequest *, HLPCB *, void *);
 
 #endif /* SQUID_REDIRECT_H_ */
+
index 9ccb62a5e9d08cbe343290116121dbd1fcdc1088..a33bd67ef1a847c9e9a9aa1242b164cc68b77201 100644 (file)
@@ -9,7 +9,7 @@
 /* DEBUG: section 22    Refresh Calculation */
 
 #ifndef USE_POSIX_REGEX
-#define USE_POSIX_REGEX                /* put before includes; always use POSIX */
+#define USE_POSIX_REGEX     /* put before includes; always use POSIX */
 #endif
 
 #include "squid.h"
@@ -85,9 +85,9 @@ static struct RefreshCounts {
  *      PCT     20%
  *      MAX     3 days
  */
-#define REFRESH_DEFAULT_MIN    (time_t)0
-#define REFRESH_DEFAULT_PCT    0.20
-#define REFRESH_DEFAULT_MAX    (time_t)259200
+#define REFRESH_DEFAULT_MIN (time_t)0
+#define REFRESH_DEFAULT_PCT 0.20
+#define REFRESH_DEFAULT_MAX (time_t)259200
 
 static const RefreshPattern *refreshUncompiledPattern(const char *);
 static OBJH refreshStats;
@@ -759,3 +759,4 @@ refreshInit(void)
 
     refreshRegisterWithCacheManager();
 }
+
index f8159891640d079dc29a06c1b3950d5213c7786d..3a43b98da9e5d87d1c74feb178e3b50db0e1c138 100644 (file)
@@ -24,3 +24,4 @@ void refreshInit(void);
 const RefreshPattern *refreshLimits(const char *url);
 
 #endif /* SQUID_REFRESH_H_ */
+
index fdf85480f6b17cb4beef3f0fdd6b4384bd5ab356..4d6453c0293c589be982fcad8d40ac20028f8685 100644 (file)
@@ -129,3 +129,4 @@ HeapKeyGen_StoreEntry_LRU(void *entry, double heap_age)
 
     return (heap_key) e->lastref;
 }
+
index 0d53c23e8ffe15e6796053e31849a2391a35a38a..f098358d28cbdbc6acd93bc3adba3d0b661555dd 100644 (file)
@@ -16,3 +16,4 @@ heap_key HeapKeyGen_StoreEntry_GDSF(void *entry, double age);
 heap_key HeapKeyGen_StoreEntry_LRU(void *entry, double age);
 
 #endif /* _SQUIDINC_STORE_HEAP_REPLACEMENT_H */
+
index 9f54d0a546163f03b8638ff5052d20d6f71a892d..109a529ceeb3ba4d1ada83f54386fb88ce0f6df3 100644 (file)
@@ -83,7 +83,7 @@ heap_add(RemovalPolicy * policy, StoreEntry * entry, RemovalPolicyNode * node)
     assert(!node->data);
 
     if (EBIT_TEST(entry->flags, ENTRY_SPECIAL))
-        return;                        /* We won't manage these.. they messes things up */
+        return;         /* We won't manage these.. they messes things up */
 
     node->data = heap_insert(h->theHeap, entry);
 
@@ -143,7 +143,7 @@ heap_walkNext(RemovalPolicyWalker * walker)
     StoreEntry *entry;
 
     if (heap_walk->current >= heap_nodes(h->theHeap))
-        return NULL;           /* done */
+        return NULL;        /* done */
 
     entry = (StoreEntry *) heap_peep(h->theHeap, heap_walk->current++);
 
@@ -200,7 +200,7 @@ heap_purgeNext(RemovalPurgeWalker * walker)
 try_again:
 
     if (heap_empty(h->theHeap))
-        return NULL;           /* done */
+        return NULL;        /* done */
 
     age = heap_peepminkey(h->theHeap);
 
@@ -346,3 +346,4 @@ createRemovalPolicy_heap(wordlist * args)
 
     return policy;
 }
+
index 3e0a9553eb3ffc2b7b04562b8e9d40e1e81ed0fb..65bbc25e5bab2a21dd55b6f6af3bba66fa860fa1 100644 (file)
@@ -348,3 +348,4 @@ createRemovalPolicy_lru(wordlist * args)
 
     return policy;
 }
+
index 0794cc903fd2eea22da3edd7a8cb82881dfbb5d9..679f7ae2c87d17d55598ce6495dd9369440e1676 100644 (file)
@@ -16,3 +16,4 @@
 void storeReplSetup(void);
 
 #endif /* SQUID_REPL_MODULES_H_ */
+
index e34d04355f49e02bbaf2c34e99cb829c151945b6..2b4e6c4f942ae3c350933f7e4c7c36f0ac97d768 100644 (file)
@@ -98,3 +98,4 @@ send_announce(const ipcache_addrs *ia, const DnsLookupDetails &, void *junk)
     if (comm_udp_sendto(icpOutgoingConn->fd, S, sndbuf, strlen(sndbuf) + 1) < 0)
         debugs(27, DBG_IMPORTANT, "ERROR: Failed to announce to " << S << " from " << icpOutgoingConn->local << ": " << xstrerror());
 }
+
index a4d07f6b824be559c24b2320c8d8706f960b96fd..d923d1482bb20c60f38e45d5529e3b7fe95f6a1f 100644 (file)
@@ -14,3 +14,4 @@
 void start_announce(void *unused);
 
 #endif /* SQUID_SEND_ANNOUNCE_H_ */
+
index 58e0c3f08e2e72c13c0ffa3fd07e702443a10760..10c79b23d078e351c8d90ed707f7a33452820c6c 100644 (file)
@@ -49,19 +49,19 @@ static bool CommandHasPathParameter(const SBuf &cmd);
 };
 
 Ftp::Server::Server(const MasterXaction::Pointer &xact):
-        AsyncJob("Ftp::Server"),
-        ConnStateData(xact),
-        master(new MasterState),
-        uri(),
-        host(),
-        gotEpsvAll(false),
-        onDataAcceptCall(),
-        dataListenConn(),
-        dataConn(),
-        uploadAvailSize(0),
-        listener(),
-        connector(),
-        reader()
+    AsyncJob("Ftp::Server"),
+    ConnStateData(xact),
+    master(new MasterState),
+    uri(),
+    host(),
+    gotEpsvAll(false),
+    onDataAcceptCall(),
+    dataListenConn(),
+    dataConn(),
+    uploadAvailSize(0),
+    listener(),
+    connector(),
+    reader()
 {
     flags.readMore = false; // we need to announce ourselves first
     *uploadBuf = 0;
@@ -267,7 +267,7 @@ Ftp::StartListening()
         typedef CommCbFunPtrCallT<CommAcceptCbPtrFun> AcceptCall;
         RefCount<AcceptCall> subCall = commCbCall(5, 5, "Ftp::Server::AcceptCtrlConnection",
                                        CommAcceptCbPtrFun(Ftp::Server::AcceptCtrlConnection,
-                                                          CommAcceptCbParams(NULL)));
+                                               CommAcceptCbParams(NULL)));
         clientStartListeningOn(s, subCall, Ipc::fdnFtpSocket);
     }
 }
index 1629f60184e03f1a71694a360b8e0176638aaa20..5e74125bf2677852c501c79319e2dc730371cd89 100644 (file)
@@ -173,3 +173,4 @@ private:
 } // namespace Ftp
 
 #endif /* SQUID_SERVERS_FTP_SERVER_H */
+
index e1340455e3b95fc0af8a96edfd50f7dd2783e71d..48243ba7cdf3d28a612f414b69bda297eb9fde94 100644 (file)
@@ -73,9 +73,9 @@ private:
 CBDATA_NAMESPACED_CLASS_INIT(Http, Server);
 
 Http::Server::Server(const MasterXaction::Pointer &xact, bool beHttpsServer):
-        AsyncJob("Http::Server"),
-        ConnStateData(xact),
-        isHttpsServer(beHttpsServer)
+    AsyncJob("Http::Server"),
+    ConnStateData(xact),
+    isHttpsServer(beHttpsServer)
 {
 }
 
@@ -157,7 +157,7 @@ Http::Server::buildHttpRequest(ClientSocketContext *context)
         err_type errPage = ERR_INVALID_REQ;
         switch (parser_->request_parse_status) {
         case Http::scRequestHeaderFieldsTooLarge:
-            // fall through to next case
+        // fall through to next case
         case Http::scUriTooLong:
             errPage = ERR_TOO_BIG;
             break;
@@ -196,7 +196,7 @@ Http::Server::buildHttpRequest(ClientSocketContext *context)
     /* We currently only support 0.9, 1.0, 1.1 properly */
     /* TODO: move HTTP-specific processing into servers/HttpServer and such */
     if ( (parser_->messageProtocol().major == 0 && parser_->messageProtocol().minor != 9) ||
-         (parser_->messageProtocol().major > 1) ) {
+            (parser_->messageProtocol().major > 1) ) {
 
         clientStreamNode *node = context->getClientReplyContext();
         debugs(33, 5, "Unsupported HTTP version discovered. :\n" << parser_->messageProtocol());
@@ -338,3 +338,4 @@ Https::NewServer(MasterXactionPointer &xact)
 {
     return new Http::Server(xact, true);
 }
+
index 7acf64225dec5e0f6b2bb5034a679ba173fecc57..7cdb32f3de22cbafa41aaf0bb0e49a8bf35bcb89 100644 (file)
@@ -42,3 +42,4 @@ void StopListening();
 } // namespace Ftp
 
 #endif /* SQUID_SERVERS_FORWARD_H */
+
index d7455ac94925368ce361ce8de3cf100db2578f6f..7a2fa4c52bc35c36f77857e24a69be7cf06b66fc 100644 (file)
@@ -23,8 +23,8 @@ CBDATA_NAMESPACED_CLASS_INIT(Snmp, Forwarder);
 
 Snmp::Forwarder::Forwarder(const Pdu& aPdu, const Session& aSession, int aFd,
                            const Ip::Address& anAddress):
-        Ipc::Forwarder(new Request(KidIdentifier, 0, aPdu, aSession, aFd, anAddress), 2),
-        fd(aFd)
+    Ipc::Forwarder(new Request(KidIdentifier, 0, aPdu, aSession, aFd, anAddress), 2),
+    fd(aFd)
 {
     debugs(49, 5, HERE << "FD " << aFd);
     Must(fd >= 0);
@@ -108,3 +108,4 @@ Snmp::SendResponse(unsigned int requestId, const Pdu& pdu)
     response.pack(message);
     Ipc::SendMessage(Ipc::Port::CoordinatorAddr(), message);
 }
+
index df3d9bf1f3800ed1ddc8188a9d1f48e1750287a0..e8f92fe2b066f36cc4278656fab64984ac1f3776 100644 (file)
@@ -52,3 +52,4 @@ void SendResponse(unsigned int requestId, const Pdu& pdu);
 } // namespace Snmp
 
 #endif /* SQUID_SNMPX_FORWARDER_H */
+
index 69b878500b5738db36a9fa33947096940881caea..60267978b34bb67c2eaf9b298f1e383ae16c9c53 100644 (file)
@@ -22,8 +22,8 @@
 CBDATA_NAMESPACED_CLASS_INIT(Snmp, Inquirer);
 
 Snmp::Inquirer::Inquirer(const Request& aRequest, const Ipc::StrandCoords& coords):
-        Ipc::Inquirer(aRequest.clone(), coords, 2),
-        aggrPdu(aRequest.pdu)
+    Ipc::Inquirer(aRequest.clone(), coords, 2),
+    aggrPdu(aRequest.pdu)
 {
     conn = new Comm::Connection;
     conn->fd = aRequest.fd;
@@ -110,3 +110,4 @@ Snmp::Inquirer::sendResponse()
     snmp_build(&req.session, &aggrPdu, buffer, &len);
     comm_udp_sendto(conn->fd, req.address, buffer, len);
 }
+
index b7313430bb80a5f7843699dd8abdc8c99dacb02d..122605b4330830da09bdc2ef85825707328c5719 100644 (file)
@@ -55,3 +55,4 @@ private:
 } // namespace Snmp
 
 #endif /* SQUID_SNMPX_INQUIRER_H */
+
index 63387cd2587d62cbc64b0bd713007bfafd3226ba..91520ea9e5bad0fbeee6469654d481612d20fb10 100644 (file)
@@ -237,3 +237,4 @@ Snmp::Pdu::fixAggregate()
     }
     aggrCount = 0;
 }
+
index d03b5ca6926c6ce200ae5c761c7d9b441f29dc4b..85f11c6449a82aa216692c76e087cc5b1dac5d0c 100644 (file)
@@ -49,3 +49,4 @@ private:
 } // namespace Snmp
 
 #endif /* SQUID_SNMPX_PDU_H */
+
index f324b7ad0c5f66c15a7a41a4b7a24935420116dc..8d751a97c1bc899034b84e48f2799a73d86e98eb 100644 (file)
 Snmp::Request::Request(int aRequestorId, unsigned int aRequestId,
                        const Pdu& aPdu, const Session& aSession,
                        int aFd, const Ip::Address& anAddress):
-        Ipc::Request(aRequestorId, aRequestId),
-        pdu(aPdu), session(aSession), fd(aFd), address(anAddress)
+    Ipc::Request(aRequestorId, aRequestId),
+    pdu(aPdu), session(aSession), fd(aFd), address(anAddress)
 {
 }
 
 Snmp::Request::Request(const Request& request):
-        Ipc::Request(request.requestorId, request.requestId),
-        pdu(request.pdu), session(request.session),
-        fd(request.fd), address(request.address)
+    Ipc::Request(request.requestorId, request.requestId),
+    pdu(request.pdu), session(request.session),
+    fd(request.fd), address(request.address)
 {
 }
 
 Snmp::Request::Request(const Ipc::TypedMsgHdr& msg):
-        Ipc::Request(0, 0)
+    Ipc::Request(0, 0)
 {
     msg.checkType(Ipc::mtSnmpRequest);
     msg.getPod(requestorId);
@@ -62,3 +62,4 @@ Snmp::Request::clone() const
 {
     return new Request(*this);
 }
+
index b695cf07c7cfdde903a49efc8d03b1a3b20f745e..316ae19dcb7cb45b43b3fc99e1eb95312b86b51e 100644 (file)
@@ -45,3 +45,4 @@ public:
 } // namespace Snmp
 
 #endif /* SQUID_SNMPX_REQUEST_H */
+
index 399c9ab262aec5ea689f2d0fa0f7954141772c27..23f6bbbab8ac5bdf9f68d8430a9d52f12c9fe563 100644 (file)
@@ -21,17 +21,17 @@ std::ostream& Snmp::operator << (std::ostream& os, const Response& response)
 }
 
 Snmp::Response::Response(unsigned int aRequestId):
-        Ipc::Response(aRequestId), pdu()
+    Ipc::Response(aRequestId), pdu()
 {
 }
 
 Snmp::Response::Response(const Response& response):
-        Ipc::Response(response.requestId), pdu(response.pdu)
+    Ipc::Response(response.requestId), pdu(response.pdu)
 {
 }
 
 Snmp::Response::Response(const Ipc::TypedMsgHdr& msg):
-        Ipc::Response(0)
+    Ipc::Response(0)
 {
     msg.checkType(Ipc::mtSnmpResponse);
     msg.getPod(requestId);
@@ -51,3 +51,4 @@ Snmp::Response::clone() const
 {
     return new Response(*this);
 }
+
index 0df5f005be320dbc6443d08828ee2ac0da7fcce4..54c9f3cb1cd8f154bbf3f3a3010dd8039f6fedf1 100644 (file)
@@ -41,3 +41,4 @@ std::ostream& operator << (std::ostream& os, const Response& response);
 } // namespace Snmp
 
 #endif /* SQUID_SNMPX_RESPONSE_H */
+
index 854eba62c391815b14f610aa10a5499ac46984e7..075f8ce5a543bd4f48b5e7db839aa29ac64d2de0 100644 (file)
@@ -112,3 +112,4 @@ Snmp::Session::unpack(const Ipc::TypedMsgHdr& msg)
     msg.getPod(remote_port);
     msg.getPod(local_port);
 }
+
index 029d1e16e4cf2449c17954b58e94d65ff7724827..093ebd5b92112331e137ecbce2d3178e1f1bd060 100644 (file)
@@ -39,3 +39,4 @@ private:
 } // namespace Snmp
 
 #endif /* SQUID_SNMPX_SESSION_H */
+
index 67607cbd7d0f912210eaa8c4fb610c08c422a367..eb5c920b22d3e9ed35fa7c3f3b74fba5a14cf4af 100644 (file)
@@ -359,3 +359,4 @@ Snmp::Var::unpack(const Ipc::TypedMsgHdr& msg)
         msg.getFixed(val.string, val_len);
     }
 }
+
index 519c3e21afa1517c1021004cea24d198802909ef..9178e95992e91ab7b31bb17d27374e4ec5059cab 100644 (file)
@@ -71,3 +71,4 @@ private:
 } // namespace Snmp
 
 #endif /* SQUID_SNMPX_VAR_H */
+
index ca8b658bf212d8da4bd124d7bb8a48eabe3e9c53..d0b3ebd28bdbca80db9da6d4df76c0eda91f0a82 100644 (file)
@@ -23,3 +23,4 @@ class Var;
 } // namespace Snmp
 
 #endif /* SQUID_SNMPX_FORWARD_H */
+
index b7e0aec3a3ca061344866b6a15af8d34b8829c57..c5e52d61ed12ad436bdc91d3590822b61bbe5c14 100644 (file)
@@ -432,7 +432,7 @@ snmp_prfProtoFn(variable_list * Var, snint * ErrP)
 
     switch (Var->name[LEN_SQ_PRF + 1]) {
 
-    case PERF_PROTOSTAT_AGGR:  /* cacheProtoAggregateStats */
+    case PERF_PROTOSTAT_AGGR:   /* cacheProtoAggregateStats */
 
         switch (Var->name[LEN_SQ_PRF + 2]) {
 
@@ -614,3 +614,4 @@ snmp_prfProtoFn(variable_list * Var, snint * ErrP)
     *ErrP = SNMP_ERR_NOSUCHNAME;
     return NULL;
 }
+
index f00dc5de2624e72f07f5a0f27b21e680055481d0..a94600a37bf20ad9bd90d0a515d47ac93bea7e6d 100644 (file)
@@ -27,3 +27,4 @@ variable_list *snmp_meshCtblFn(variable_list *, snint *);
 
 #endif /* SQUID_SNMP */
 #endif /* SQUID_SNMP_AGENT_H_ */
+
index 352832a613af96d346e267d89369efb3e5a261bb..a609c0e28637752731f6ea40609cfbdac6332dfb 100644 (file)
@@ -1176,3 +1176,4 @@ ACLSNMPCommunityStrategy::Instance()
 }
 
 ACLSNMPCommunityStrategy ACLSNMPCommunityStrategy::Instance_;
+
index 8a57199bb555da62a58a1f5efd252703c5e1f418..35280fe6eb8e4c4446d4eef2102ff31325daf960 100644 (file)
@@ -55,3 +55,4 @@ void addr2oid(Ip::Address &addr, oid *Dest);
 void oid2addr(oid *Dest, Ip::Address &addr, u_int code);
 
 #endif /* SQUID_SNMP_CORE_H */
+
index 49062273cebf36dba0ca4c72ee751b2661c18e2b..04ef46d4dca4d72801f90c711dba54c091bb43fb 100644 (file)
@@ -13,9 +13,9 @@ Ssl::Config Ssl::TheConfig;
 
 Ssl::Config::Config():
 #if USE_SSL_CRTD
-        ssl_crtd(NULL),
+    ssl_crtd(NULL),
 #endif
-        ssl_crt_validator(NULL)
+    ssl_crt_validator(NULL)
 {
     ssl_crt_validator_Children.concurrency = 1;
 }
@@ -27,3 +27,4 @@ Ssl::Config::~Config()
 #endif
     xfree(ssl_crt_validator);
 }
+
index a64cf8cd2725dd793ef16af9972018bd51bdbaa0..bdebe52c00f22c813c0cab43f038546a96ff5ebd 100644 (file)
@@ -35,3 +35,4 @@ extern Config TheConfig;
 
 } // namespace Ssl
 #endif
+
index b59f1d1f575e6f20446b90fc46eeac9deac03476..ad66397198febf712443186d10754ad3872a4ec7 100644 (file)
@@ -25,76 +25,111 @@ typedef std::map<Ssl::ssl_error_t, const SslErrorEntry *> SslErrors;
 SslErrors TheSslErrors;
 
 static SslErrorEntry TheSslErrorArray[] = {
-    {SQUID_X509_V_ERR_INFINITE_VALIDATION,
-        "SQUID_X509_V_ERR_INFINITE_VALIDATION"},
-    {SQUID_X509_V_ERR_CERT_CHANGE,
-     "SQUID_X509_V_ERR_CERT_CHANGE"},
-    {SQUID_ERR_SSL_HANDSHAKE,
-     "SQUID_ERR_SSL_HANDSHAKE"},
-    {SQUID_X509_V_ERR_DOMAIN_MISMATCH,
-     "SQUID_X509_V_ERR_DOMAIN_MISMATCH"},
-    {X509_V_ERR_UNABLE_TO_GET_ISSUER_CERT,
-     "X509_V_ERR_UNABLE_TO_GET_ISSUER_CERT"},
-    {X509_V_ERR_UNABLE_TO_GET_CRL,
-     "X509_V_ERR_UNABLE_TO_GET_CRL"},
-    {X509_V_ERR_UNABLE_TO_DECRYPT_CERT_SIGNATURE,
-     "X509_V_ERR_UNABLE_TO_DECRYPT_CERT_SIGNATURE"},
-    {X509_V_ERR_UNABLE_TO_DECRYPT_CRL_SIGNATURE,
-     "X509_V_ERR_UNABLE_TO_DECRYPT_CRL_SIGNATURE"},
-    {X509_V_ERR_UNABLE_TO_DECODE_ISSUER_PUBLIC_KEY,
-     "X509_V_ERR_UNABLE_TO_DECODE_ISSUER_PUBLIC_KEY"},
-    {X509_V_ERR_CERT_SIGNATURE_FAILURE,
-     "X509_V_ERR_CERT_SIGNATURE_FAILURE"},
-    {X509_V_ERR_CRL_SIGNATURE_FAILURE,
-     "X509_V_ERR_CRL_SIGNATURE_FAILURE"},
-    {X509_V_ERR_CERT_NOT_YET_VALID,
-     "X509_V_ERR_CERT_NOT_YET_VALID"},
-    {X509_V_ERR_CERT_HAS_EXPIRED,
-     "X509_V_ERR_CERT_HAS_EXPIRED"},
-    {X509_V_ERR_CRL_NOT_YET_VALID,
-     "X509_V_ERR_CRL_NOT_YET_VALID"},
-    {X509_V_ERR_CRL_HAS_EXPIRED,
-     "X509_V_ERR_CRL_HAS_EXPIRED"},
-    {X509_V_ERR_ERROR_IN_CERT_NOT_BEFORE_FIELD,
-     "X509_V_ERR_ERROR_IN_CERT_NOT_BEFORE_FIELD"},
-    {X509_V_ERR_ERROR_IN_CERT_NOT_AFTER_FIELD,
-     "X509_V_ERR_ERROR_IN_CERT_NOT_AFTER_FIELD"},
-    {X509_V_ERR_ERROR_IN_CRL_LAST_UPDATE_FIELD,
-     "X509_V_ERR_ERROR_IN_CRL_LAST_UPDATE_FIELD"},
-    {X509_V_ERR_ERROR_IN_CRL_NEXT_UPDATE_FIELD,
-     "X509_V_ERR_ERROR_IN_CRL_NEXT_UPDATE_FIELD"},
-    {X509_V_ERR_OUT_OF_MEM,
-     "X509_V_ERR_OUT_OF_MEM"},
-    {X509_V_ERR_DEPTH_ZERO_SELF_SIGNED_CERT,
-     "X509_V_ERR_DEPTH_ZERO_SELF_SIGNED_CERT"},
-    {X509_V_ERR_SELF_SIGNED_CERT_IN_CHAIN,
-     "X509_V_ERR_SELF_SIGNED_CERT_IN_CHAIN"},
-    {X509_V_ERR_UNABLE_TO_GET_ISSUER_CERT_LOCALLY,
-     "X509_V_ERR_UNABLE_TO_GET_ISSUER_CERT_LOCALLY"},
-    {X509_V_ERR_UNABLE_TO_VERIFY_LEAF_SIGNATURE,
-     "X509_V_ERR_UNABLE_TO_VERIFY_LEAF_SIGNATURE"},
-    {X509_V_ERR_CERT_CHAIN_TOO_LONG,
-     "X509_V_ERR_CERT_CHAIN_TOO_LONG"},
-    {X509_V_ERR_CERT_REVOKED,
-     "X509_V_ERR_CERT_REVOKED"},
-    {X509_V_ERR_INVALID_CA,
-     "X509_V_ERR_INVALID_CA"},
-    {X509_V_ERR_PATH_LENGTH_EXCEEDED,
-     "X509_V_ERR_PATH_LENGTH_EXCEEDED"},
-    {X509_V_ERR_INVALID_PURPOSE,
-     "X509_V_ERR_INVALID_PURPOSE"},
-    {X509_V_ERR_CERT_UNTRUSTED,
-     "X509_V_ERR_CERT_UNTRUSTED"},
-    {X509_V_ERR_CERT_REJECTED,
-     "X509_V_ERR_CERT_REJECTED"},
-    {X509_V_ERR_SUBJECT_ISSUER_MISMATCH,
-     "X509_V_ERR_SUBJECT_ISSUER_MISMATCH"},
-    {X509_V_ERR_AKID_SKID_MISMATCH,
-     "X509_V_ERR_AKID_SKID_MISMATCH"},
-    {X509_V_ERR_AKID_ISSUER_SERIAL_MISMATCH,
-     "X509_V_ERR_AKID_ISSUER_SERIAL_MISMATCH"},
-    {X509_V_ERR_KEYUSAGE_NO_CERTSIGN,
-     "X509_V_ERR_KEYUSAGE_NO_CERTSIGN"},
+    {   SQUID_X509_V_ERR_INFINITE_VALIDATION,
+        "SQUID_X509_V_ERR_INFINITE_VALIDATION"
+    },
+    {   SQUID_X509_V_ERR_CERT_CHANGE,
+        "SQUID_X509_V_ERR_CERT_CHANGE"
+    },
+    {   SQUID_ERR_SSL_HANDSHAKE,
+        "SQUID_ERR_SSL_HANDSHAKE"
+    },
+    {   SQUID_X509_V_ERR_DOMAIN_MISMATCH,
+        "SQUID_X509_V_ERR_DOMAIN_MISMATCH"
+    },
+    {   X509_V_ERR_UNABLE_TO_GET_ISSUER_CERT,
+        "X509_V_ERR_UNABLE_TO_GET_ISSUER_CERT"
+    },
+    {   X509_V_ERR_UNABLE_TO_GET_CRL,
+        "X509_V_ERR_UNABLE_TO_GET_CRL"
+    },
+    {   X509_V_ERR_UNABLE_TO_DECRYPT_CERT_SIGNATURE,
+        "X509_V_ERR_UNABLE_TO_DECRYPT_CERT_SIGNATURE"
+    },
+    {   X509_V_ERR_UNABLE_TO_DECRYPT_CRL_SIGNATURE,
+        "X509_V_ERR_UNABLE_TO_DECRYPT_CRL_SIGNATURE"
+    },
+    {   X509_V_ERR_UNABLE_TO_DECODE_ISSUER_PUBLIC_KEY,
+        "X509_V_ERR_UNABLE_TO_DECODE_ISSUER_PUBLIC_KEY"
+    },
+    {   X509_V_ERR_CERT_SIGNATURE_FAILURE,
+        "X509_V_ERR_CERT_SIGNATURE_FAILURE"
+    },
+    {   X509_V_ERR_CRL_SIGNATURE_FAILURE,
+        "X509_V_ERR_CRL_SIGNATURE_FAILURE"
+    },
+    {   X509_V_ERR_CERT_NOT_YET_VALID,
+        "X509_V_ERR_CERT_NOT_YET_VALID"
+    },
+    {   X509_V_ERR_CERT_HAS_EXPIRED,
+        "X509_V_ERR_CERT_HAS_EXPIRED"
+    },
+    {   X509_V_ERR_CRL_NOT_YET_VALID,
+        "X509_V_ERR_CRL_NOT_YET_VALID"
+    },
+    {   X509_V_ERR_CRL_HAS_EXPIRED,
+        "X509_V_ERR_CRL_HAS_EXPIRED"
+    },
+    {   X509_V_ERR_ERROR_IN_CERT_NOT_BEFORE_FIELD,
+        "X509_V_ERR_ERROR_IN_CERT_NOT_BEFORE_FIELD"
+    },
+    {   X509_V_ERR_ERROR_IN_CERT_NOT_AFTER_FIELD,
+        "X509_V_ERR_ERROR_IN_CERT_NOT_AFTER_FIELD"
+    },
+    {   X509_V_ERR_ERROR_IN_CRL_LAST_UPDATE_FIELD,
+        "X509_V_ERR_ERROR_IN_CRL_LAST_UPDATE_FIELD"
+    },
+    {   X509_V_ERR_ERROR_IN_CRL_NEXT_UPDATE_FIELD,
+        "X509_V_ERR_ERROR_IN_CRL_NEXT_UPDATE_FIELD"
+    },
+    {   X509_V_ERR_OUT_OF_MEM,
+        "X509_V_ERR_OUT_OF_MEM"
+    },
+    {   X509_V_ERR_DEPTH_ZERO_SELF_SIGNED_CERT,
+        "X509_V_ERR_DEPTH_ZERO_SELF_SIGNED_CERT"
+    },
+    {   X509_V_ERR_SELF_SIGNED_CERT_IN_CHAIN,
+        "X509_V_ERR_SELF_SIGNED_CERT_IN_CHAIN"
+    },
+    {   X509_V_ERR_UNABLE_TO_GET_ISSUER_CERT_LOCALLY,
+        "X509_V_ERR_UNABLE_TO_GET_ISSUER_CERT_LOCALLY"
+    },
+    {   X509_V_ERR_UNABLE_TO_VERIFY_LEAF_SIGNATURE,
+        "X509_V_ERR_UNABLE_TO_VERIFY_LEAF_SIGNATURE"
+    },
+    {   X509_V_ERR_CERT_CHAIN_TOO_LONG,
+        "X509_V_ERR_CERT_CHAIN_TOO_LONG"
+    },
+    {   X509_V_ERR_CERT_REVOKED,
+        "X509_V_ERR_CERT_REVOKED"
+    },
+    {   X509_V_ERR_INVALID_CA,
+        "X509_V_ERR_INVALID_CA"
+    },
+    {   X509_V_ERR_PATH_LENGTH_EXCEEDED,
+        "X509_V_ERR_PATH_LENGTH_EXCEEDED"
+    },
+    {   X509_V_ERR_INVALID_PURPOSE,
+        "X509_V_ERR_INVALID_PURPOSE"
+    },
+    {   X509_V_ERR_CERT_UNTRUSTED,
+        "X509_V_ERR_CERT_UNTRUSTED"
+    },
+    {   X509_V_ERR_CERT_REJECTED,
+        "X509_V_ERR_CERT_REJECTED"
+    },
+    {   X509_V_ERR_SUBJECT_ISSUER_MISMATCH,
+        "X509_V_ERR_SUBJECT_ISSUER_MISMATCH"
+    },
+    {   X509_V_ERR_AKID_SKID_MISMATCH,
+        "X509_V_ERR_AKID_SKID_MISMATCH"
+    },
+    {   X509_V_ERR_AKID_ISSUER_SERIAL_MISMATCH,
+        "X509_V_ERR_AKID_ISSUER_SERIAL_MISMATCH"
+    },
+    {   X509_V_ERR_KEYUSAGE_NO_CERTSIGN,
+        "X509_V_ERR_KEYUSAGE_NO_CERTSIGN"
+    },
 #if defined(X509_V_ERR_UNABLE_TO_GET_CRL_ISSUER)
     {
         X509_V_ERR_UNABLE_TO_GET_CRL_ISSUER, //33
@@ -221,8 +256,9 @@ static SslErrorEntry TheSslErrorArray[] = {
         "X509_V_ERR_CRL_PATH_VALIDATION_ERROR"
     },
 #endif
-    {X509_V_ERR_APPLICATION_VERIFICATION,
-     "X509_V_ERR_APPLICATION_VERIFICATION"},
+    {   X509_V_ERR_APPLICATION_VERIFICATION,
+        "X509_V_ERR_APPLICATION_VERIFICATION"
+    },
     { SSL_ERROR_NONE, "SSL_ERROR_NONE"},
     {SSL_ERROR_NONE, NULL}
 };
@@ -261,11 +297,11 @@ static const Ssl::ssl_error_t hasExpired[] = {X509_V_ERR_CERT_HAS_EXPIRED, SSL_E
 static const Ssl::ssl_error_t notYetValid[] = {X509_V_ERR_CERT_NOT_YET_VALID, SSL_ERROR_NONE};
 static const Ssl::ssl_error_t domainMismatch[] = {SQUID_X509_V_ERR_DOMAIN_MISMATCH, SSL_ERROR_NONE};
 static const Ssl::ssl_error_t certUntrusted[] = {X509_V_ERR_INVALID_CA,
-        X509_V_ERR_SELF_SIGNED_CERT_IN_CHAIN,
-        X509_V_ERR_UNABLE_TO_VERIFY_LEAF_SIGNATURE,
-        X509_V_ERR_UNABLE_TO_GET_ISSUER_CERT,
-        X509_V_ERR_UNABLE_TO_GET_ISSUER_CERT_LOCALLY,
-        X509_V_ERR_CERT_UNTRUSTED, SSL_ERROR_NONE
+                                                 X509_V_ERR_SELF_SIGNED_CERT_IN_CHAIN,
+                                                 X509_V_ERR_UNABLE_TO_VERIFY_LEAF_SIGNATURE,
+                                                 X509_V_ERR_UNABLE_TO_GET_ISSUER_CERT,
+                                                 X509_V_ERR_UNABLE_TO_GET_ISSUER_CERT_LOCALLY,
+                                                 X509_V_ERR_CERT_UNTRUSTED, SSL_ERROR_NONE
                                                 };
 static const Ssl::ssl_error_t certSelfSigned[] = {X509_V_ERR_DEPTH_ZERO_SELF_SIGNED_CERT, SSL_ERROR_NONE};
 
@@ -615,3 +651,4 @@ Ssl::ErrorDetail::ErrorDetail(Ssl::ErrorDetail const &anErrDetail)
 
     lib_error_no = anErrDetail.lib_error_no;
 }
+
index a228d71511bb2533e1a24afcfc867d11864c5412..f5afe87870a7e250dc67225e1473ead2d3da204e 100644 (file)
@@ -114,3 +114,4 @@ private:
 
 }//namespace Ssl
 #endif
+
index 43fc4b00529801355650495cea11eaafed40553a..3d22e25ac2405cb3ea41f1ef6965dcfce034dc49 100644 (file)
@@ -261,3 +261,4 @@ Ssl::ErrorDetailFile::parse(const char *buffer, int len, bool eof)
     debugs(83, 9, HERE << " Remain size: " << buf.contentSize() << " Content: " << buf.content());
     return true;
 }
+
index 467639bde57d6beca076570471b9bbb47181fda1..1436db9cc9dc52bc349ea1375a2cda5a5f162965 100644 (file)
@@ -95,3 +95,4 @@ void errorDetailInitialize();
 void errorDetailClean();
 } //namespace Ssl
 #endif
+
index d0b7fd68f46926ff77c20bc92531638fd60eafef..095fe317c046850e0621fbf30cc8b639503aed9f 100644 (file)
@@ -38,14 +38,14 @@ Ssl::PeerConnector::PeerConnector(
     const Comm::ConnectionPointer &aClientConn,
     AsyncCall::Pointer &aCallback,
     const time_t timeout):
-        AsyncJob("Ssl::PeerConnector"),
-        request(aRequest),
-        serverConn(aServerConn),
-        clientConn(aClientConn),
-        callback(aCallback),
-        negotiationTimeout(timeout),
-        startTime(squid_curtime),
-        splice(false)
+    AsyncJob("Ssl::PeerConnector"),
+    request(aRequest),
+    serverConn(aServerConn),
+    clientConn(aClientConn),
+    callback(aCallback),
+    negotiationTimeout(timeout),
+    startTime(squid_curtime),
+    splice(false)
 {
     // if this throws, the caller's cb dialer is not our CbDialer
     Must(dynamic_cast<CbDialer*>(callback->getDialer()));
@@ -366,7 +366,7 @@ Ssl::PeerConnector::checkForPeekAndSpliceDone(Ssl::BumpMode const action)
         debugs(83,5, "Retry the fwdNegotiateSSL on FD " << serverConn->fd);
     } else {
         splice = true;
-        // Ssl Negotiation stops here. Last SSL checks for valid certificates 
+        // Ssl Negotiation stops here. Last SSL checks for valid certificates
         // and if done, switch to tunnel mode
         if (sslFinalized())
             switchToTunnel(request.getRaw(), clientConn, serverConn);
@@ -694,3 +694,4 @@ Ssl::operator <<(std::ostream &os, const Ssl::PeerConnectorAnswer &answer)
 {
     return os << answer.conn << ", " << answer.error;
 }
+
index 182dfbfb70574d5d2d5fe81fedfe63f01033be06..540cce512a17563ef81679026cc368caf638ef7b 100644 (file)
@@ -180,3 +180,4 @@ std::ostream &operator <<(std::ostream &os, const Ssl::PeerConnectorAnswer &a);
 } // namespace Ssl
 
 #endif /* SQUID_PEER_CONNECTOR_H */
+
index 8dfeecf509b06220cf66d56f078c2ed42a618c37..461b1e478d616111533d7c99441604c1971dda97 100644 (file)
@@ -31,3 +31,4 @@ public:
 #endif
 
 #endif /* SQUID_SSLPROXYCERTS_H_ */
+
index 258c7557bec454b3ca9537f7cbb540df3befba5a..ac452890ec9339e8a075b35a45c89c7a5fce8d00 100644 (file)
@@ -20,9 +20,9 @@
 CBDATA_NAMESPACED_CLASS_INIT(Ssl, ServerBump);
 
 Ssl::ServerBump::ServerBump(HttpRequest *fakeRequest, StoreEntry *e, Ssl::BumpMode md):
-        request(fakeRequest),
-        sslErrors(NULL),
-        step(bumpStep1)
+    request(fakeRequest),
+    sslErrors(NULL),
+    step(bumpStep1)
 {
     debugs(33, 4, HERE << "will peek at " << request->GetHost() << ':' << request->port);
     act.step1 = md;
index 6276e6b2459a9d0418af5e19fe45332285518461..2bfe871fb9381a7dee1537b64a6cebc9f3af7aa0 100644 (file)
@@ -52,3 +52,4 @@ private:
 } // namespace Ssl
 
 #endif
+
index 6d37124032ce7f230ccab9299d88b6ca7c912658..b04616bdfc392f733be641e110d1f07b4efc31a5 100644 (file)
@@ -605,16 +605,16 @@ squid_bio_ctrl(BIO *table, int cmd, long arg1, void *arg2)
         }
         return 0;
 
-        /*  we may also need to implement these:
-            case BIO_CTRL_RESET:
-            case BIO_C_FILE_SEEK:
-            case BIO_C_FILE_TELL:
-            case BIO_CTRL_INFO:
-            case BIO_CTRL_GET_CLOSE:
-            case BIO_CTRL_SET_CLOSE:
-            case BIO_CTRL_PENDING:
-            case BIO_CTRL_WPENDING:
-        */
+    /*  we may also need to implement these:
+        case BIO_CTRL_RESET:
+        case BIO_C_FILE_SEEK:
+        case BIO_C_FILE_TELL:
+        case BIO_CTRL_INFO:
+        case BIO_CTRL_GET_CLOSE:
+        case BIO_CTRL_SET_CLOSE:
+        case BIO_CTRL_PENDING:
+        case BIO_CTRL_WPENDING:
+    */
     default:
         return 0;
 
@@ -935,3 +935,4 @@ Ssl::Bio::sslFeatures::print(std::ostream &os) const
 }
 
 #endif /* USE_SSL */
+
index 762cb33b1e578125da8b9af618c8ed8a8cae9822..a2a7df82857162fe42c3187737d891ae5fba5f72 100644 (file)
@@ -200,3 +200,4 @@ std::ostream &operator <<(std::ostream &os, Ssl::Bio::sslFeatures const &f)
 } // namespace Ssl
 
 #endif /* SQUID_SSL_BIO_H */
+
index d9037aa5e4cbd66ac7f1a912b14de9c6c5e8c506..a9f41533c6c6b1d5160df8809152ac395f15011f 100644 (file)
@@ -240,3 +240,4 @@ const std::string Ssl::CertValidationMsg::param_error_reason("error_reason_");
 const std::string Ssl::CertValidationMsg::param_error_cert("error_cert_");
 const std::string Ssl::CertValidationMsg::param_proto_version("proto_version");
 const std::string Ssl::CertValidationMsg::param_cipher("cipher");
+
index 7578415ba09a8e5e974ca707ede164f23fcfdf2e..e29e4a5877f9a373242d4646ac124726bc7ce0bc 100644 (file)
@@ -122,3 +122,4 @@ public:
 }//namespace Ssl
 
 #endif // SQUID_SSL_CERT_VALIDATE_MESSAGE_H
+
index d144d34ead91d850deb71b4c398831ecab3ab86b..f495ef153caa68f3fd2ff3cafe55ebb0346a90c5 100644 (file)
 #define HERE "(ssl_crtd) " << __FILE__ << ':' << __LINE__ << ": "
 
 Ssl::Lock::Lock(std::string const &aFilename) :
-        filename(aFilename),
+    filename(aFilename),
 #if _SQUID_WINDOWS_
-        hFile(INVALID_HANDLE_VALUE)
+    hFile(INVALID_HANDLE_VALUE)
 #else
-        fd(-1)
+    fd(-1)
 #endif
 {
 }
@@ -89,7 +89,7 @@ Ssl::Lock::~Lock()
 }
 
 Ssl::Locker::Locker(Lock &aLock, const char *aFileName, int aLineNo):
-        weLocked(false), lock(aLock), fileName(aFileName), lineNo(aLineNo)
+    weLocked(false), lock(aLock), fileName(aFileName), lineNo(aLineNo)
 {
     if (!lock.locked()) {
         lock.lock();
@@ -104,7 +104,7 @@ Ssl::Locker::~Locker()
 }
 
 Ssl::CertificateDb::Row::Row()
-        :   width(cnlNumber)
+    :   width(cnlNumber)
 {
     row = (char **)OPENSSL_malloc(sizeof(char *) * (width + 1));
     for (size_t i = 0; i < width + 1; ++i)
@@ -200,7 +200,7 @@ void Ssl::CertificateDb::sq_TXT_DB_delete_row(TXT_DB *db, int idx) {
 
     Row row(rrow, cnlNumber); // row wrapper used to free the rrow
 
-    const Columns db_indexes[]={cnlSerial, cnlName};
+    const Columns db_indexes[]= {cnlSerial, cnlName};
     for (unsigned int i = 0; i < countof(db_indexes); ++i) {
         void *data = NULL;
 #if SQUID_SSLTXTDB_PSTRINGDATA
@@ -242,15 +242,15 @@ const std::string Ssl::CertificateDb::cert_dir("certs");
 const std::string Ssl::CertificateDb::size_file("size");
 
 Ssl::CertificateDb::CertificateDb(std::string const & aDb_path, size_t aMax_db_size, size_t aFs_block_size)
-        :  db_path(aDb_path),
-        db_full(aDb_path + "/" + db_file),
-        cert_full(aDb_path + "/" + cert_dir),
-        size_full(aDb_path + "/" + size_file),
-        db(NULL),
-        max_db_size(aMax_db_size),
-        fs_block_size((aFs_block_size ? aFs_block_size : 2048)),
-        dbLock(db_full),
-        enabled_disk_store(true) {
+    :  db_path(aDb_path),
+       db_full(aDb_path + "/" + db_file),
+       cert_full(aDb_path + "/" + cert_dir),
+       size_full(aDb_path + "/" + size_file),
+       db(NULL),
+       max_db_size(aMax_db_size),
+       fs_block_size((aFs_block_size ? aFs_block_size : 2048)),
+       dbLock(db_full),
+       enabled_disk_store(true) {
     if (db_path.empty() && !max_db_size)
         enabled_disk_store = false;
     else if ((db_path.empty() && max_db_size) || (!db_path.empty() && !max_db_size))
@@ -408,7 +408,7 @@ size_t Ssl::CertificateDb::rebuildSize()
 #endif
         const std::string filename(cert_full + "/" + current_row[cnlSerial] + ".pem");
         const size_t fSize = getFileSize(filename);
-        dbSize += fSize;        
+        dbSize += fSize;
     }
     writeSize(dbSize);
     return dbSize;
@@ -607,3 +607,4 @@ bool Ssl::CertificateDb::deleteByHostname(std::string const & host) {
 bool Ssl::CertificateDb::IsEnabledDiskStore() const {
     return enabled_disk_store;
 }
+
index ac0f38c899752e4e032fc924181ef5bfea951daa..00064637f9d9306acbdaea6f2c9a78518d74e340 100644 (file)
@@ -185,3 +185,4 @@ private:
 
 } // namespace Ssl
 #endif // SQUID_SSL_CERTIFICATE_DB_H
+
index f01e5899ca0dce1f3c0c530a4645a4334300d2c7..1ba3176accb585700bf1eb01cca506c3c7b103cd 100644 (file)
@@ -18,7 +18,7 @@
 #endif
 
 Ssl::CertificateStorageAction::CertificateStorageAction(const Mgr::Command::Pointer &aCmd)
-        :   Mgr::Action(aCmd)
+    :   Mgr::Action(aCmd)
 {}
 
 Ssl::CertificateStorageAction::Pointer
@@ -54,7 +54,7 @@ void Ssl::CertificateStorageAction::dump (StoreEntry *sentry)
 ///////////////////////////////////////////////////////
 
 Ssl::GlobalContextStorage::GlobalContextStorage()
-        :   reconfiguring(true)
+    :   reconfiguring(true)
 {
     RegisterAction("cached_ssl_cert", "Statistic of cached generated ssl certificates", &CertificateStorageAction::Create, 0, 1);
 }
@@ -115,3 +115,4 @@ void Ssl::GlobalContextStorage::reconfigureFinish()
 }
 
 Ssl::GlobalContextStorage Ssl::TheGlobalContextStorage;
+
index a495726a41636c393c21e125a255f9b8752f1d44..0330d16695f7fa21972e94522fc0fd58f0f64edf 100644 (file)
@@ -78,3 +78,4 @@ extern GlobalContextStorage TheGlobalContextStorage;
 #endif // USE_OPENSSL
 
 #endif // SQUID_SSL_CONTEXT_STORAGE_H
+
index 25b983c9678f3d2ecbe536b4803ff4ccb6b8f751..f2b73a57bc90e9454206710ebe24a75d17f58d23 100644 (file)
@@ -15,7 +15,7 @@
 #include <stdexcept>
 
 Ssl::CrtdMessage::CrtdMessage(MessageKind kind)
-        :   body_size(0), state(kind == REPLY ? BEFORE_LENGTH: BEFORE_CODE)
+    :   body_size(0), state(kind == REPLY ? BEFORE_LENGTH: BEFORE_CODE)
 {}
 
 Ssl::CrtdMessage::ParseResult Ssl::CrtdMessage::parse(const char * buffer, size_t len)
@@ -268,3 +268,4 @@ const std::string Ssl::CrtdMessage::param_SetValidBefore(Ssl::CertAdaptAlgorithm
 const std::string Ssl::CrtdMessage::param_SetCommonName(Ssl::CertAdaptAlgorithmStr[algSetCommonName]);
 const std::string Ssl::CrtdMessage::param_Sign("Sign");
 const std::string Ssl::CrtdMessage::param_SignHash("SignHash");
+
index d730d88e442ceae32118d35d6ef76de4621816a4..409f8c3ba87008f37e9107f7d859e31e1a9d8648 100644 (file)
@@ -106,3 +106,4 @@ protected:
 } //namespace Ssl
 
 #endif // SQUID_SSL_CRTD_MESSAGE_H
+
index ca2373eeb524e0d1a33af13e6912f8fbc7e69e77..3636acbd9489e1c7b396f8aff028b1d2980cb924 100644 (file)
@@ -218,11 +218,11 @@ const char *Ssl::CertAdaptAlgorithmStr[] = {
 };
 
 Ssl::CertificateProperties::CertificateProperties():
-        setValidAfter(false),
-        setValidBefore(false),
-        setCommonName(false),
-        signAlgorithm(Ssl::algSignEnd),
-        signHash(NULL)
+    setValidAfter(false),
+    setValidBefore(false),
+    setCommonName(false),
+    signAlgorithm(Ssl::algSignEnd),
+    signHash(NULL)
 {}
 
 std::string & Ssl::CertificateProperties::dbKey() const
@@ -318,7 +318,7 @@ mimicExtensions(Ssl::X509_Pointer & cert, Ssl::X509_Pointer const & mimicCert)
                     assert(method && method->it);
                     unsigned char *ext_der = NULL;
                     int ext_len = ASN1_item_i2d((ASN1_VALUE *)keyusage,
-                                                &ext_der, 
+                                                &ext_der,
                                                 (const ASN1_ITEM *)ASN1_ITEM_ptr(method->it));
 
                     ASN1_OCTET_STRING *ext_oct = M_ASN1_OCTET_STRING_new();
index 75a0c470440906ab9513dd7a487f0f1cb04b7c35..ef7e46460d3edb0e341822febeebb09474cab04e 100644 (file)
@@ -301,3 +301,4 @@ const char *getOrganization(X509 *x509);
 
 } // namespace Ssl
 #endif // SQUID_SSL_GADGETS_H
+
index 81859c353efa4d38666bf6d0bfcf38583723fe71..c39ffd86f79a28c9f50c3a9570855f26153e6bde 100644 (file)
@@ -278,3 +278,4 @@ void Ssl::CertValidationHelper::sslSubmit(Ssl::CertValidationRequest const &requ
         return;
     }
 }
+
index 45d1194724ec8bdd2a71641d1596f32c4f8232b2..3eb772c87b8e387d485e9ee30a904848ef13312b 100644 (file)
@@ -60,3 +60,4 @@ public:
 
 } //namespace Ssl
 #endif // SQUID_SSL_HELPER_H
+
index 24da4ce92f5034242842a477b8046ad15b256f92..0308e84d09b930149ef240d71ae9aebe7e0b6271 100644 (file)
@@ -326,3 +326,4 @@ int main(int argc, char *argv[])
     }
     return 0;
 }
+
index 0c0b4dfff60297d59054b8bc77e2007f3dd7c403..4aabb68f1d49e416d4f1fb5d053077c3753761cd 100644 (file)
@@ -45,3 +45,4 @@ Ssl::Helper * Ssl::Helper::GetInstance() STUB_RETVAL(NULL)
 void Ssl::Helper::Init() STUB
 void Ssl::Helper::Shutdown() STUB
 void Ssl::Helper::sslSubmit(Ssl::CrtdMessage const & message, HLPCB * callback, void *data) STUB
+
index bd9595bbf18c684ca6ecf18a38b6dbe4c9f7e06c..efb5c7ac45c45109da21f7f3c8aa24a7aa2e77f6 100644 (file)
@@ -522,7 +522,7 @@ Ssl::parse_options(const char *options)
             value = strtol(option + 2, NULL, 16);
         } else {
             fatalf("Unknown SSL option '%s'", option);
-            value = 0;         /* Keep GCC happy */
+            value = 0;      /* Keep GCC happy */
         }
 
         switch (mode) {
@@ -550,19 +550,19 @@ no_options:
 }
 
 /// \ingroup ServerProtocolSSLInternal
-#define SSL_FLAG_NO_DEFAULT_CA         (1<<0)
+#define SSL_FLAG_NO_DEFAULT_CA      (1<<0)
 /// \ingroup ServerProtocolSSLInternal
-#define SSL_FLAG_DELAYED_AUTH          (1<<1)
+#define SSL_FLAG_DELAYED_AUTH       (1<<1)
 /// \ingroup ServerProtocolSSLInternal
-#define SSL_FLAG_DONT_VERIFY_PEER      (1<<2)
+#define SSL_FLAG_DONT_VERIFY_PEER   (1<<2)
 /// \ingroup ServerProtocolSSLInternal
-#define SSL_FLAG_DONT_VERIFY_DOMAIN    (1<<3)
+#define SSL_FLAG_DONT_VERIFY_DOMAIN (1<<3)
 /// \ingroup ServerProtocolSSLInternal
-#define SSL_FLAG_NO_SESSION_REUSE      (1<<4)
+#define SSL_FLAG_NO_SESSION_REUSE   (1<<4)
 /// \ingroup ServerProtocolSSLInternal
-#define SSL_FLAG_VERIFY_CRL            (1<<5)
+#define SSL_FLAG_VERIFY_CRL     (1<<5)
 /// \ingroup ServerProtocolSSLInternal
-#define SSL_FLAG_VERIFY_CRL_ALL                (1<<6)
+#define SSL_FLAG_VERIFY_CRL_ALL     (1<<6)
 
 /// \ingroup ServerProtocolSSLInternal
 long
@@ -2001,3 +2001,4 @@ SharedSessionCacheRr::~SharedSessionCacheRr()
 }
 
 #endif /* USE_OPENSSL */
+
index bb70fabfe6a9614217afbd8d56157bb7543c7358..6d5326bd8738bfdf03781925ba9d4beca6a16247 100644 (file)
@@ -342,3 +342,4 @@ int SSL_set_fd(SSL *ssl, int fd)
 #endif /* _SQUID_WINDOWS_ */
 
 #endif /* SQUID_SSL_SUPPORT_H */
+
index 2d3f3cc8decaf94aba8a18e01186c0e36322c8c6..5d7b8743ac1968344e7a536019cba57c5f942681 100644 (file)
@@ -1351,7 +1351,7 @@ statCountersInitSpecial(StatCounters * C)
     C->comm_udp_incoming.enumInit(INCOMING_UDP_MAX);
     C->comm_dns_incoming.enumInit(INCOMING_DNS_MAX);
     C->comm_tcp_incoming.enumInit(INCOMING_TCP_MAX);
-    C->select_fds_hist.enumInit(256);  /* was SQUID_MAXFD, but it is way too much. It is OK to crop this statistics */
+    C->select_fds_hist.enumInit(256);   /* was SQUID_MAXFD, but it is way too much. It is OK to crop this statistics */
 }
 
 /* add special cases here as they arrive */
@@ -1919,22 +1919,22 @@ statClientRequests(StoreEntry * s)
 
 #define GRAPH_PER_MIN(Y) \
     for (i=0;i<(N_COUNT_HIST-2);++i) { \
-       dt = tvSubDsec(CountHist[i+1].timestamp, CountHist[i].timestamp); \
-       if (dt <= 0.0) \
-           break; \
-       storeAppendPrintf(e, "%lu,%0.2f:", \
-           CountHist[i].timestamp.tv_sec, \
-           ((CountHist[i].Y - CountHist[i+1].Y) / dt)); \
+    dt = tvSubDsec(CountHist[i+1].timestamp, CountHist[i].timestamp); \
+    if (dt <= 0.0) \
+        break; \
+    storeAppendPrintf(e, "%lu,%0.2f:", \
+        CountHist[i].timestamp.tv_sec, \
+        ((CountHist[i].Y - CountHist[i+1].Y) / dt)); \
     }
 
 #define GRAPH_PER_HOUR(Y) \
     for (i=0;i<(N_COUNT_HOUR_HIST-2);++i) { \
-       dt = tvSubDsec(CountHourHist[i+1].timestamp, CountHourHist[i].timestamp); \
-       if (dt <= 0.0) \
-           break; \
-       storeAppendPrintf(e, "%lu,%0.2f:", \
-           CountHourHist[i].timestamp.tv_sec, \
-           ((CountHourHist[i].Y - CountHourHist[i+1].Y) / dt)); \
+    dt = tvSubDsec(CountHourHist[i+1].timestamp, CountHourHist[i].timestamp); \
+    if (dt <= 0.0) \
+        break; \
+    storeAppendPrintf(e, "%lu,%0.2f:", \
+        CountHourHist[i].timestamp.tv_sec, \
+        ((CountHourHist[i].Y - CountHourHist[i+1].Y) / dt)); \
     }
 
 #define GRAPH_TITLE(X,Y) storeAppendPrintf(e,"%s\t%s\t",X,Y);
@@ -2001,3 +2001,4 @@ statMemoryAccounted(void)
 {
     return memPoolsTotalAllocated();
 }
+
index 7cfadd61ae35624b8f9f03818c86fe250c427750..e27b77af02c4e1f61b188d9e92cc1893da930380 100644 (file)
@@ -26,3 +26,4 @@ class StatCounters;
 StatCounters *snmpStatGet(int);
 
 #endif /* SQUID_STAT_H_ */
+
index 54d444082249e61c92e38a452d64fb4c358558a2..367801018ddab0a5809f19d9a8755750b80def53 100644 (file)
@@ -425,3 +425,4 @@ mem_hdr::getNodes() const
 {
     return nodes;
 }
+
index 6cf7dbc5d7379c8eb406c99b94f4bcbb24a19c14..4d90252ae3e8f5de22179d3504e0cfb55c67dc1f 100644 (file)
@@ -61,3 +61,4 @@ private:
 };
 
 #endif /* SQUID_STMEM_H */
+
index 828da3e027beffda1bf1f3e3e2e31b04593d696b..05877e09591d417b872d8261d427d63c3e6587f3 100644 (file)
@@ -358,21 +358,21 @@ StoreEntry::storeClientType() const
 }
 
 StoreEntry::StoreEntry() :
-        mem_obj(NULL),
-        timestamp(-1),
-        lastref(-1),
-        expires(-1),
-        lastmod(-1),
-        swap_file_sz(0),
-        refcount(0),
-        flags(0),
-        swap_filen(-1),
-        swap_dirn(-1),
-        mem_status(NOT_IN_MEMORY),
-        ping_status(PING_NONE),
-        store_status(STORE_PENDING),
-        swap_status(SWAPOUT_NONE),
-        lock_count(0)
+    mem_obj(NULL),
+    timestamp(-1),
+    lastref(-1),
+    expires(-1),
+    lastmod(-1),
+    swap_file_sz(0),
+    refcount(0),
+    flags(0),
+    swap_filen(-1),
+    swap_dirn(-1),
+    mem_status(NOT_IN_MEMORY),
+    ping_status(PING_NONE),
+    store_status(STORE_PENDING),
+    swap_status(SWAPOUT_NONE),
+    lock_count(0)
 {
     debugs(20, 5, "StoreEntry constructed, this=" << this);
 }
@@ -2173,3 +2173,4 @@ NullStoreEntry::getSerialisedMetaData()
 {
     return NULL;
 }
+
index 472c2f23b51c612dd66341c7a69672976caf8569..889be3a01342256b9bd9e0967816c5ce98accec0 100644 (file)
@@ -30,9 +30,9 @@
 
 /*
  * NOTE: 'Header' refers to the swapfile metadata header.
- *      'OBJHeader' refers to the object header, with cannonical
- *      processed object headers (which may derive from FTP/HTTP etc
- *      upstream protocols
+ *   'OBJHeader' refers to the object header, with cannonical
+ *   processed object headers (which may derive from FTP/HTTP etc
+ *   upstream protocols
  *       'Body' refers to the swapfile body, which is the full
  *        HTTP reply (including HTTP headers and body).
  */
@@ -148,10 +148,10 @@ storeClientCopyEvent(void *data)
 
 store_client::store_client(StoreEntry *e) : entry (e)
 #if USE_DELAY_POOLS
-        , delayId()
+    , delayId()
 #endif
-        , type (e->storeClientType())
-        ,  object_ok(true)
+    , type (e->storeClientType())
+    ,  object_ok(true)
 {
     cmp_offset = 0;
     flags.disk_io_pending = false;
@@ -894,3 +894,4 @@ store_client::setDelayId(DelayId delay_id)
     delayId = delay_id;
 }
 #endif
+
index 9a79e1fe374fe0d3a8a6b99951b1dab6eaf31c13..93e2ee83e1e2b0c587c0a685183d8ad14de51cae 100644 (file)
@@ -46,8 +46,8 @@ class StoreDigestState
 
 public:
     StoreDigestCBlock cblock;
-    int rebuild_lock;          /* bucket number */
-    StoreEntry * rewrite_lock; /* points to store entry with the digest */
+    int rebuild_lock;       /* bucket number */
+    StoreEntry * rewrite_lock;  /* points to store entry with the digest */
     StoreSearchPointer theSearch;
     int rewrite_offset;
     int rebuild_count;
@@ -55,12 +55,12 @@ public:
 };
 
 typedef struct {
-    int del_count;             /* #store entries deleted from store_digest */
-    int del_lost_count;                /* #store entries not found in store_digest on delete */
-    int add_count;             /* #store entries accepted to store_digest */
-    int add_coll_count;                /* #accepted entries that collided with existing ones */
-    int rej_count;             /* #store entries not accepted to store_digest */
-    int rej_coll_count;                /* #not accepted entries that collided with existing ones */
+    int del_count;      /* #store entries deleted from store_digest */
+    int del_lost_count;     /* #store entries not found in store_digest on delete */
+    int add_count;      /* #store entries accepted to store_digest */
+    int add_coll_count;     /* #accepted entries that collided with existing ones */
+    int rej_count;      /* #store entries not accepted to store_digest */
+    int rej_coll_count;     /* #not accepted entries that collided with existing ones */
 } StoreDigestStats;
 
 /* local vars */
@@ -301,7 +301,7 @@ storeDigestRebuildResume(void)
     /* resize or clear */
 
     if (!storeDigestResize())
-        cacheDigestClear(store_digest);                /* not clean()! */
+        cacheDigestClear(store_digest);     /* not clean()! */
 
     memset(&sd_stats, 0, sizeof(sd_stats));
 
@@ -524,3 +524,4 @@ storeDigestResize(void)
 }
 
 #endif /* USE_CACHE_DIGESTS */
+
index d503b46c41631f9a8b46ad6086f998910c9e5d72..eb343963482019e43aac2894fd2bafad7c53adb8 100644 (file)
@@ -19,3 +19,4 @@ void storeDigestDel(const StoreEntry * entry);
 void storeDigestReport(StoreEntry *);
 
 #endif /* SQUID_STORE_DIGEST_H_ */
+
index 3a54bf0d009b6aa141aa0feeb6be2e74cfc0ae3b..48b73d2f430dbb0f677cbdd6949160a5a6cd806c 100644 (file)
@@ -46,7 +46,7 @@ static STDIRSELECT storeDirSelectSwapDirLeastLoad;
 int StoreController::store_dirs_rebuilding = 1;
 
 StoreController::StoreController() : swapDir (new StoreHashIndex())
-        , memStore(NULL), transients(NULL)
+    , memStore(NULL), transients(NULL)
 {}
 
 StoreController::~StoreController()
@@ -1272,11 +1272,11 @@ StoreHashIndex::search(String const url, HttpRequest *)
 CBDATA_CLASS_INIT(StoreSearchHashIndex);
 
 StoreSearchHashIndex::StoreSearchHashIndex(RefCount<StoreHashIndex> aSwapDir) :
-        sd(aSwapDir),
-        callback(NULL),
-        cbdata(NULL),
-        _done(false),
-        bucket(0)
+    sd(aSwapDir),
+    callback(NULL),
+    cbdata(NULL),
+    _done(false),
+    bucket(0)
 {}
 
 /* do not link
@@ -1347,3 +1347,4 @@ StoreSearchHashIndex::copyBucket()
     ++bucket;
     debugs(47,3, "got entries: " << entries.size());
 }
+
index e5b00c3c4a8d44b66581845fa2338de94b247ef0..e4f25748d13d57988115184a7690ad3f1553b03a 100644 (file)
@@ -88,3 +88,4 @@ storeIOWrite(StoreIOState::Pointer sio, char const *buf, size_t size, off_t offs
 {
     sio->write(buf,size,offset,free_func);
 }
+
index 0e636b11900365782f24411919bfd46a66a9c693..24659ee499895fd669ef47b407bae08190ff5763 100644 (file)
@@ -180,3 +180,4 @@ storeKeyInit(void)
 {
     memset(null_key, '\0', SQUID_MD5_DIGEST_LENGTH);
 }
+
index 60cd88cc17432fbebea3b0221fcc849edd8e3d0e..9666841887514e2bef6188b58c9105e85bec142d 100644 (file)
@@ -34,3 +34,4 @@ extern HASHHASH storeKeyHashHash;
 extern HASHCMP storeKeyHashCmp;
 
 #endif /* SQUID_STORE_KEY_MD5_H_ */
+
index 81c81860098b8f45e6604afc4459ff56506add66..bca660da9732f3eca6eaf26df9bd8dc9e19616e5 100644 (file)
@@ -139,3 +139,4 @@ storeLogTagsHist(StoreEntry *e)
                           storeLogTagsCounts[tag]);
     }
 }
+
index 0e032b324650681b05677d8314e7d73c544ba1f7..921ae0411f5e06d5f760aea6737da03604852ca5 100644 (file)
@@ -19,3 +19,4 @@ void storeLogClose(void);
 void storeLogOpen(void);
 
 #endif /* SQUID_STORE_LOG_H_ */
+
index 631e27a1f298b4169e7f545338c32d8fc6290576..f39a56f286005fa3eb3cc3274305d18d8dfd56f6 100644 (file)
@@ -399,10 +399,11 @@ storeRebuildKeepEntry(const StoreEntry &tmpe, const cache_key *key, StoreRebuild
         } else {
             /* URL already exists, this swapfile not being used */
             /* junk old, load new */
-            e->release();      /* release old entry */
+            e->release();   /* release old entry */
             ++stats.dupcount;
         }
     }
 
     return true;
 }
+
index c774b0853d21937dd9104b3b0baf6b4d546c6404..7a41e7873c75f0468208464adb30fd043bab58d8 100644 (file)
@@ -39,3 +39,4 @@ bool storeRebuildParseEntry(MemBuf &buf, StoreEntry &e, cache_key *key, StoreReb
 bool storeRebuildKeepEntry(const StoreEntry &e, const cache_key *key, StoreRebuildData &counts);
 
 #endif /* SQUID_STORE_REBUILD_H_ */
+
index 584e4ee320fd33ca8190ebc074112da0495a7e3b..39a4e33f91a95650c58076834ff535b6150e2135 100644 (file)
@@ -79,3 +79,4 @@ storeSwapInFileNotify(void *data, int errflag, StoreIOState::Pointer self)
     e->swap_filen = sc->swapin_sio->swap_filen;
     e->swap_dirn = sc->swapin_sio->swap_dirn;
 }
+
index e1592b1b3f00cb561ff7ce27e840ce7345d31991..e0e6ce4f98875b49d400d5ba06cec11e5a151816 100644 (file)
@@ -15,3 +15,4 @@ class store_client;
 void storeSwapInStart(store_client *);
 
 #endif /* SQUID_STORE_SWAPIN_H_ */
+
index 727e4063d40739161deadf3b38e71bd354963308..df5b39ebe9754069915f7df14a7f4d748ff8494a 100644 (file)
@@ -37,7 +37,7 @@ storeSwapTLVFree(tlv * n)
 tlv *
 storeSwapMetaBuild(StoreEntry * e)
 {
-    tlv *TLV = NULL;           /* we'll return this */
+    tlv *TLV = NULL;        /* we'll return this */
     tlv **T = &TLV;
     const char *url;
     const char *vary;
@@ -111,8 +111,8 @@ storeSwapMetaPack(tlv * tlv_list, int *length)
     int j = 0;
     char *buf;
     assert(length != NULL);
-    ++buflen;                  /* STORE_META_OK */
-    buflen += sizeof(int);     /* size of header to follow */
+    ++buflen;           /* STORE_META_OK */
+    buflen += sizeof(int);  /* size of header to follow */
 
     for (t = tlv_list; t; t = t->next)
         buflen += sizeof(char) + sizeof(int) + t->length;
@@ -139,3 +139,4 @@ storeSwapMetaPack(tlv * tlv_list, int *length)
     *length = buflen;
     return buf;
 }
+
index c5648c69ccab49b79547b0d47034c72ec08b7959..931338b9ac483a9febd1cfcdba2e1a75dc2dce31 100644 (file)
@@ -445,3 +445,4 @@ StoreEntry::mayStartSwapOut()
     swapOutDecision(MemObject::SwapOut::swPossible);
     return true;
 }
+
index b0a3f64203c54ac7fe599f0573d522c0b7c9a3b4..4cbae19c5df08b1acabd3b3d7ae284d7f3d9b9a3 100644 (file)
@@ -20,3 +20,4 @@ typedef enum {
 extern const char *swap_log_op_str[];
 
 #endif /* _SQUID_SWAP_LOG_OP_H */
+
index 70667a8dfc923d926de95db145c9c62b3516b692..658299bd9c0421f831c0642fdf8c4766ae8e0d66 100644 (file)
@@ -32,10 +32,10 @@ struct _Cache {
     CacheDigest *digest;
     Cache *peer;
     CacheQueryStats qstats;
-    int count;                 /* #currently cached entries */
-    int req_count;             /* #requests to this cache */
-    int bad_add_count;         /* #duplicate adds */
-    int bad_del_count;         /* #dels with no prior add */
+    int count;          /* #currently cached entries */
+    int req_count;      /* #requests to this cache */
+    int bad_add_count;      /* #duplicate adds */
+    int bad_del_count;      /* #dels with no prior add */
 };
 
 typedef struct _CacheEntry {
@@ -51,7 +51,7 @@ typedef struct _CacheEntry {
 typedef struct {
     cache_key key[SQUID_MD5_DIGEST_LENGTH];
     time_t timestamp;
-    short int use_icp;         /* true/false */
+    short int use_icp;      /* true/false */
 } RawAccessLogEntry;
 
 typedef enum {
@@ -64,17 +64,17 @@ typedef fr_result(*FI_READER) (FileIterator * fi);
 struct _FileIterator {
     const char *fname;
     FILE *file;
-    time_t inner_time;         /* timestamp of the current entry */
-    time_t time_offset;                /* to adjust time set by reader */
-    int line_count;            /* number of lines scanned */
-    int bad_line_count;                /* number of parsing errors */
-    int time_warp_count;       /* number of out-of-order entries in the file */
-    FI_READER reader;          /* reads next entry and updates inner_time */
-    void *entry;               /* buffer for the current entry, freed with xfree() */
+    time_t inner_time;      /* timestamp of the current entry */
+    time_t time_offset;     /* to adjust time set by reader */
+    int line_count;     /* number of lines scanned */
+    int bad_line_count;     /* number of parsing errors */
+    int time_warp_count;    /* number of out-of-order entries in the file */
+    FI_READER reader;       /* reads next entry and updates inner_time */
+    void *entry;        /* buffer for the current entry, freed with xfree() */
 };
 
 /* globals */
-static time_t cur_time = -1;   /* timestamp of the current log entry */
+static time_t cur_time = -1;    /* timestamp of the current log entry */
 
 /* copied from url.c */
 static HttpRequestMethod
@@ -396,7 +396,7 @@ accessLogReader(FileIterator * fi)
     entry = (RawAccessLogEntry*)fi->entry;
 
     if (!fgets(buf, sizeof(buf), fi->file))
-        return frEof;          /* eof */
+        return frEof;       /* eof */
 
     entry->timestamp = fi->inner_time = (time_t) atoi(buf);
 
@@ -585,7 +585,7 @@ main(int argc, char *argv[])
     /* digest peer cache content */
     cacheResetDigest(them);
 
-    us->digest = cacheDigestClone(them->digest);       /* @netw@ */
+    us->digest = cacheDigestClone(them->digest);    /* @netw@ */
 
     /* shift the time in access log to match ready_time */
     fileIteratorSetCurTime(fis[0], ready_time);
@@ -639,3 +639,4 @@ main(int argc, char *argv[])
     cacheDestroy(us);
     return 0;
 }
+
index e95a1c0fc864c805b66ba1c4e216f5efb708d112..0c3a4073f5712401640f1b23ee878386c069de16 100644 (file)
@@ -38,3 +38,4 @@ public:
 };
 
 #endif
+
index 0761a96f87a6f3731678a476885fa4d76916cb00..68c42878cef7dd00c1084dd69bd98f553e5cd763 100644 (file)
  */
 
 SBufFindTest::SBufFindTest():
-        caseLimit(std::numeric_limits<int>::max()),
-        errorLimit(std::numeric_limits<int>::max()),
-        randomSeed(1),
-        hushSimilar(true),
-        maxHayLength(40),
-        thePos(0),
-        thePlacement(placeEof),
-        theStringPos(0),
-        theBareNeedlePos(0),
-        theFindString(0),
-        theFindSBuf(0),
-        theReportFunc(),
-        theReportNeedle(),
-        theReportPos(),
-        theReportQuote('"'),
-        caseCount(0),
-        errorCount(0),
-        reportCount(0)
+    caseLimit(std::numeric_limits<int>::max()),
+    errorLimit(std::numeric_limits<int>::max()),
+    randomSeed(1),
+    hushSimilar(true),
+    maxHayLength(40),
+    thePos(0),
+    thePlacement(placeEof),
+    theStringPos(0),
+    theBareNeedlePos(0),
+    theFindString(0),
+    theFindSBuf(0),
+    theReportFunc(),
+    theReportNeedle(),
+    theReportPos(),
+    theReportQuote('"'),
+    caseCount(0),
+    errorCount(0),
+    reportCount(0)
 {
 }
 
@@ -452,3 +452,4 @@ SBufFindTest::placeNeedle(const SBuf &cleanHay)
         break;
     }
 }
+
index e15ca88485494492c2b3e135c590d036c2330d6a..29c11554841e08deef221cfc1ace085e1799decb 100644 (file)
@@ -91,3 +91,4 @@ private:
 typedef SBufFindTest::Placement Placement;
 
 #endif
+
index 9633b8a8fd74f12f7a21002e6d6bd0211240768c..4d5489a3d7b8eae586b39f9313287bb441ac95d5 100644 (file)
@@ -59,3 +59,4 @@
 #define STUB_RETSTATREF(x) { stub_fatal(STUB_API " required"); static x v; return v; }
 
 #endif /* STUB */
+
index c78c3824ef1f2fbc99a3031ca0be963fef9ce3c9..10974a084c3eb7f368638d7b637835ca09a98194 100644 (file)
@@ -75,3 +75,4 @@ TestSwapDir::search(String, HttpRequest *)
 {
     return NULL;
 }
+
index 3a8aed44d3747535a69aa6d71e46fd9d29dc9519..2291db337feb5bd41b3e2d705f380f219a51aa4b 100644 (file)
@@ -38,3 +38,4 @@ public:
 typedef RefCount<TestSwapDir> TestSwapDirPointer;
 
 #endif  /* TEST_TESTSWAPDIR */
+
index bfa445d4101abff63b3d4f80a59d546790cdaf1f..33db832f40fc4b2311fe5cdc852ad3b6b9df1dd8 100644 (file)
@@ -13,3 +13,4 @@
 #include "tests/STUB.h"
 
 void CollapsedForwarding::Broadcast(StoreEntry const&) STUB
+
index 6ed75cb47444cff50400345986df0f0b8616241b..2a1f4cb59822985310ede9d36f11f0e5840c6e3e 100644 (file)
@@ -22,3 +22,4 @@ void CommIO::Initialise() STUB
 void CommIO::NotifyIOClose() STUB
 void CommIO::NULLFDHandler(int, void *) STUB
 void CommIO::FlushPipe() STUB
+
index 920542e33e7476ab8f8660c6508e7470fcf5ff2c..d24a10c80d97760d9478bb5e95a2411961cf6214 100644 (file)
@@ -22,3 +22,4 @@ DelayId::~DelayId() {}
 void DelayId::delayRead(DeferredRead const&) STUB_NOP
 
 #endif /* USE_DELAY_POOLS */
+
index f75ecb5e9889c8694e45287b488308781fd5e87b..f9161bbb30429705ac5684aba16a40939d15fd68 100644 (file)
@@ -22,3 +22,4 @@ void DiskIOModule::PokeAllModules() STUB
 DiskIOModule *DiskIOModule::Find(char const *) STUB_RETVAL(NULL)
 DiskIOModule *DiskIOModule::FindDefault() STUB_RETVAL(NULL)
 std::vector<DiskIOModule*> const &DiskIOModule::Modules() STUB_RETSTATREF(std::vector<DiskIOModule*>)
+
index da4177ac89a78c6415f8315625ba1fdef70f051b..26a2fb3225c70a18ad81df3e92d9fc490ca22449 100644 (file)
@@ -15,7 +15,8 @@
 EventLoop *EventLoop::Running = NULL;
 
 EventLoop::EventLoop(): errcount(0), last_loop(false), timeService(NULL),
-        primaryEngine(NULL), loop_delay(0), error(false), runOnceResult(false)
-        STUB_NOP
+    primaryEngine(NULL), loop_delay(0), error(false), runOnceResult(false)
+    STUB_NOP
+
+    void EventLoop::registerEngine(AsyncEngine *engine) STUB
 
-        void EventLoop::registerEngine(AsyncEngine *engine) STUB
index d1ca3fc31594887d65bf774fdbb8958d26a01de8..e979dc0dd508c24a93a78e9ef1edda803f2e1fcb 100644 (file)
 #include <cstring>
 
 Helper::ChildConfig::ChildConfig():
-        n_max(0),
-        n_startup(0),
-        n_idle(1),
-        concurrency(0),
-        n_running(0),
-        n_active(0),
-        queue_size(0),
-        defaultQueueSize(true)
+    n_max(0),
+    n_startup(0),
+    n_idle(1),
+    concurrency(0),
+    n_running(0),
+    n_active(0),
+    queue_size(0),
+    defaultQueueSize(true)
 {}
 
 Helper::ChildConfig::ChildConfig(const unsigned int m):
-        n_max(m),
-        n_startup(0),
-        n_idle(1),
-        concurrency(0),
-        n_running(0),
-        n_active(0),
-        queue_size(2 * m),
-        defaultQueueSize(true)
+    n_max(m),
+    n_startup(0),
+    n_idle(1),
+    concurrency(0),
+    n_running(0),
+    n_active(0),
+    queue_size(2 * m),
+    defaultQueueSize(true)
 {}
 
 int
@@ -51,3 +51,4 @@ Helper::ChildConfig::needNew() const
 }
 
 void Helper::ChildConfig::parseConfig() STUB
+
index 31832547f3fb2227b9b10ca50403a3cfdb0be538..d3da32fbc03095495655cc06a53b1e51a182fda3 100644 (file)
 #include "tests/STUB.h"
 
 HttpReply::HttpReply() : HttpMsg(hoReply), date (0), last_modified (0),
-        expires (0), surrogate_control (NULL), content_range (NULL), keep_alive (0),
-        protoPrefix("HTTP/"), do_clean(false), bodySizeMax(-2)
-        STUB_NOP
-        HttpReply::~HttpReply() STUB
-        void HttpReply::setHeaders(Http::StatusCode status, const char *reason, const char *ctype, int64_t clen, time_t lmt, time_t expires_) STUB
-        void HttpReply::packHeadersInto(Packer * p) const STUB
-        void HttpReply::reset() STUB
-        void httpBodyPackInto(const HttpBody * body, Packer * p) STUB
-        bool HttpReply::sanityCheckStartLine(MemBuf *buf, const size_t hdr_len, Http::StatusCode *error) STUB_RETVAL(false)
-        int HttpReply::httpMsgParseError() STUB_RETVAL(0)
-        bool HttpReply::expectingBody(const HttpRequestMethod&, int64_t&) const STUB_RETVAL(false)
-        bool HttpReply::parseFirstLine(const char *start, const char *end) STUB_RETVAL(false)
-        void HttpReply::hdrCacheInit() STUB
-        HttpReply * HttpReply::clone() const STUB_RETVAL(NULL)
-        bool HttpReply::inheritProperties(const HttpMsg *aMsg) STUB_RETVAL(false)
-        int64_t HttpReply::bodySize(const HttpRequestMethod&) const STUB_RETVAL(0)
+    expires (0), surrogate_control (NULL), content_range (NULL), keep_alive (0),
+    protoPrefix("HTTP/"), do_clean(false), bodySizeMax(-2)
+    STUB_NOP
+    HttpReply::~HttpReply() STUB
+    void HttpReply::setHeaders(Http::StatusCode status, const char *reason, const char *ctype, int64_t clen, time_t lmt, time_t expires_) STUB
+    void HttpReply::packHeadersInto(Packer * p) const STUB
+    void HttpReply::reset() STUB
+    void httpBodyPackInto(const HttpBody * body, Packer * p) STUB
+    bool HttpReply::sanityCheckStartLine(MemBuf *buf, const size_t hdr_len, Http::StatusCode *error) STUB_RETVAL(false)
+    int HttpReply::httpMsgParseError() STUB_RETVAL(0)
+    bool HttpReply::expectingBody(const HttpRequestMethod&, int64_t&) const STUB_RETVAL(false)
+    bool HttpReply::parseFirstLine(const char *start, const char *end) STUB_RETVAL(false)
+    void HttpReply::hdrCacheInit() STUB
+    HttpReply * HttpReply::clone() const STUB_RETVAL(NULL)
+    bool HttpReply::inheritProperties(const HttpMsg *aMsg) STUB_RETVAL(false)
+    int64_t HttpReply::bodySize(const HttpRequestMethod&) const STUB_RETVAL(0)
+
index ce1ec71af25ed62ea5b8707b281b99ff1264a9e6..ae7f3f7d056aaaea334ed72806f1b0a20596da8b 100644 (file)
 #include "tests/STUB.h"
 
 HttpRequest::HttpRequest() : HttpMsg(hoRequest) STUB
-        HttpRequest::HttpRequest(const HttpRequestMethod& aMethod, AnyP::ProtocolType aProtocol, const char *aUrlpath) : HttpMsg(hoRequest) STUB
-        HttpRequest::~HttpRequest() STUB
-        void HttpRequest::packFirstLineInto(Packer * p, bool full_uri) const STUB
-        bool HttpRequest::sanityCheckStartLine(MemBuf *buf, const size_t hdr_len, Http::StatusCode *error) STUB_RETVAL(false)
-        void HttpRequest::hdrCacheInit() STUB
-        void HttpRequest::reset() STUB
-        bool HttpRequest::expectingBody(const HttpRequestMethod& unused, int64_t&) const STUB_RETVAL(false)
-        void HttpRequest::initHTTP(const HttpRequestMethod& aMethod, AnyP::ProtocolType aProtocol, const char *aUrlpath) STUB
-        bool HttpRequest::parseFirstLine(const char *start, const char *end) STUB_RETVAL(false)
-        HttpRequest * HttpRequest::clone() const STUB_RETVAL(NULL)
-        bool HttpRequest::inheritProperties(const HttpMsg *aMsg) STUB_RETVAL(false)
-        int64_t HttpRequest::getRangeOffsetLimit() STUB_RETVAL(0)
-        const char *HttpRequest::storeId() STUB_RETVAL(".")
+    HttpRequest::HttpRequest(const HttpRequestMethod& aMethod, AnyP::ProtocolType aProtocol, const char *aUrlpath) : HttpMsg(hoRequest) STUB
+    HttpRequest::~HttpRequest() STUB
+    void HttpRequest::packFirstLineInto(Packer * p, bool full_uri) const STUB
+    bool HttpRequest::sanityCheckStartLine(MemBuf *buf, const size_t hdr_len, Http::StatusCode *error) STUB_RETVAL(false)
+    void HttpRequest::hdrCacheInit() STUB
+    void HttpRequest::reset() STUB
+    bool HttpRequest::expectingBody(const HttpRequestMethod& unused, int64_t&) const STUB_RETVAL(false)
+    void HttpRequest::initHTTP(const HttpRequestMethod& aMethod, AnyP::ProtocolType aProtocol, const char *aUrlpath) STUB
+    bool HttpRequest::parseFirstLine(const char *start, const char *end) STUB_RETVAL(false)
+    HttpRequest * HttpRequest::clone() const STUB_RETVAL(NULL)
+    bool HttpRequest::inheritProperties(const HttpMsg *aMsg) STUB_RETVAL(false)
+    int64_t HttpRequest::getRangeOffsetLimit() STUB_RETVAL(0)
+    const char *HttpRequest::storeId() STUB_RETVAL(".")
+
index 66c8e95d2a187bcee00feb8178ea69705022a10e..be0f17e21c2a119a9437cfd78c9e0debc232c499 100644 (file)
@@ -30,3 +30,4 @@ FREE *MemBuf::freeFunc() STUB_RETVAL(NULL)
 
 void memBufReport(MemBuf * mb) STUB
 void packerToMemInit(Packer * p, MemBuf * mb) STUB
+
index ec69428ea3e6137c16f54d575417d3fedaba404b..c892d24168117da7190e2d01d01062a338611606 100644 (file)
@@ -30,16 +30,16 @@ void MemObject::trimSwappable() STUB
 void MemObject::trimUnSwappable() STUB
 int64_t MemObject::policyLowestOffsetToKeep(bool swap) const STUB_RETVAL(-1)
 MemObject::MemObject() :
-        inmem_lo(0),
-        nclients(0),
-        request(NULL),
-        ping_reply_callback(NULL),
-        ircb_data(NULL),
-        id(0),
-        object_sz(-1),
-        swap_hdr_sz(0),
-        vary_headers(NULL),
-        _reply(NULL)
+    inmem_lo(0),
+    nclients(0),
+    request(NULL),
+    ping_reply_callback(NULL),
+    ircb_data(NULL),
+    id(0),
+    object_sz(-1),
+    swap_hdr_sz(0),
+    vary_headers(NULL),
+    _reply(NULL)
 {
     memset(&clients, 0, sizeof(clients));
     memset(&start_ping, 0, sizeof(start_ping));
@@ -74,3 +74,4 @@ int64_t MemObject::expectedReplySize() const STUB_RETVAL(0)
 void MemObject::markEndOfReplyHeaders() STUB
 size_t MemObject::inUseCount() STUB_RETVAL(0)
 int64_t MemObject::availableForSwapOut() const STUB_RETVAL(0)
+
index 6ede2718e6fa356741158c00569905775227d0ee..37ad4cc5c72ef5b131517e40c7144f9892a8411b 100644 (file)
@@ -40,3 +40,4 @@ bool MemStore::dereference(StoreEntry &, bool) STUB_RETVAL(false)
 void MemStore::markForUnlink(StoreEntry&) STUB
 bool MemStore::anchorCollapsed(StoreEntry&, bool&) STUB_RETVAL(false)
 bool MemStore::updateCollapsed(StoreEntry&) STUB_RETVAL(false)
+
index 410ad16138809280e84d4a56a99b3cd22c88380c..2b7ca7b2ae5accee2593c0421b8a13a7915c6e7e 100644 (file)
@@ -16,3 +16,4 @@ const char Ipc::strandAddrLabel[] = "-kid";
 
 String Ipc::Port::MakeAddr(char const*, int) STUB_RETVAL("")
 String Ipc::Port::CoordinatorAddr() STUB_RETVAL("")
+
index ea028cd225dd77a7cdde34946458e05306be2c9e..6f51964f5d1915998cb998ef1df841c17852a433 100644 (file)
@@ -66,3 +66,4 @@ int SBuf::scanf(const char *format, ...) STUB_RETVAL(-1)
 void SBuf::toLower() STUB
 void SBuf::toUpper() STUB
 String SBuf::toString() const STUB_RETVAL(String(""))
+
index 92433a15caeb95ee803d3e0c5e0d9ebb7a9a8533..a07bdeec7bddb25f7f57f43708ca8baa16c79c74 100644 (file)
@@ -18,3 +18,4 @@ void recordSBufSizeAtDestruct(SBuf::size_type) {}
 const StatHist * collectSBufDestructTimeStats() STUB_RETVAL(NULL)
 void recordMemBlobSizeAtDestruct(SBuf::size_type) {}
 const StatHist * collectMemBlobDestructTimeStats() STUB_RETVAL(NULL)
+
index 1702372102addd6e4e6be42e44604d178210f978..ae3a55c161aefb1311694f6deacad5b33a96b2ec 100644 (file)
@@ -13,3 +13,4 @@
 #include "tests/STUB.h"
 
 void Ipc::SendMessage(const String& toAddress, const TypedMsgHdr& message) STUB
+
index 4fb65256fe84a9e6b149e440f77988553336f0aa..83f7924bd9752853fde0ac47f9e02bf7711f5a70 100644 (file)
 HierarchyLogEntry::HierarchyLogEntry() STUB
 
 ping_data::ping_data() :
-        n_sent(0),
-        n_recv(0),
-        n_replies_expected(0),
-        timeout(0),
-        timedout(0),
-        w_rtt(0),
-        p_rtt(0)
+    n_sent(0),
+    n_recv(0),
+    n_replies_expected(0),
+    timeout(0),
+    timedout(0),
+    w_rtt(0),
+    p_rtt(0)
 {
     start.tv_sec = 0;
     start.tv_usec = 0;
     stop.tv_sec = 0;
     stop.tv_usec = 0;
 }
+
index 02a3522a9b79bedc2a86b948649f4dcbce2c4b31..7afab31b723b1960ba3b7a6fd17704af9cd8314f 100644 (file)
@@ -9,3 +9,4 @@
 /* DEBUG: section 28    Access Control */
 
 #include "squid.h"
+
index ec9823f0cf15ddd108a6cdda519f7bdcce2d18f0..05e4c725ce1dd7740a5f7f1c763449cdb77abe26 100644 (file)
@@ -29,3 +29,4 @@ void ConfigParser::ParseUShort(unsigned short *var) STUB
 void dump_acl_access(StoreEntry * entry, const char *name, acl_access * head) STUB
 void dump_acl_list(StoreEntry*, ACLList*) STUB
 YesNoNone::operator void*() const { STUB_NOP; return NULL; }
+
index 117387a0a2de1fc7ec2aa99cb575c7b68e32b514..b6bdbf3e3e14455d9bd59224f8171f2d468bda03 100644 (file)
@@ -26,3 +26,4 @@ void Mgr::RegisterAction(char const*, char const*, OBJH, int, int) {}
 void Mgr::RegisterAction(char const *, char const *, Mgr::ClassActionCreationHandler *, int, int) {}
 
 Mgr::Action::Pointer CacheManager::createRequestedAction(const Mgr::ActionParams &) STUB_RETVAL(NULL)
+
index 04af1a87df81b34c904117381ce69d5a48e1fac2..9977fe6d23fc34e388c57ed9c6e7b8c26d0b6d5f 100644 (file)
@@ -28,3 +28,4 @@ int cbdataInternalReferenceDoneValid(void **p, void **tp) STUB_RETVAL(0)
 
 int cbdataReferenceValid(const void *p) STUB_RETVAL(0)
 cbdata_type cbdataInternalAddType(cbdata_type type, const char *label, int size, FREE * free_func) STUB_RETVAL(CBDATA_UNKNOWN)
+
index dbbf7185fadb50da6c4cf79ffe79d2e89af5172d..6c11bd714ca54240924186cc35bdf748ad17e2e5 100644 (file)
@@ -26,3 +26,4 @@ ClientInfo *clientdbGetInfo(const Ip::Address &addr) STUB_RETVAL(NULL)
 #endif
 void clientOpenListenSockets(void) STUB
 void clientHttpConnectionsClose(void) STUB
+
index 1ea4607efd1030ff1f46e564544bafe65dac467d..3267c562098ad23adbcbd32d9919a2c64e45056f 100644 (file)
@@ -88,3 +88,4 @@ int varyEvaluateMatch(StoreEntry * entry, HttpRequest * req) STUB_RETVAL(0)
 void clientOpenListenSockets(void) STUB
 void clientHttpConnectionsClose(void) STUB
 void httpRequestFree(void *) STUB
+
index 7a8c298d6ff69832a93c1186b149135aaa188ecd..f4ef64b60806f7cdc1093cda05801f2a3ab86153 100644 (file)
@@ -13,3 +13,4 @@
 #if !_USE_INLINE_
 #include "client_side_request.cci"
 #endif
+
index 51101a83c7350f159ecf385b83c41d8cf879997e..475da4ae3705dc7b360fbe520a5e084eeb068651 100644 (file)
@@ -68,3 +68,4 @@ bool comm_has_incomplete_write(int) STUB_RETVAL(false)
 void commStartHalfClosedMonitor(int fd) STUB
 bool commHasHalfClosedMonitor(int fd) STUB_RETVAL(false)
 int CommSelectEngine::checkEvents(int timeout) STUB_RETVAL(0)
+
index dea7c3c76e82ab9fe263b49cdfe1d694ce6c9cf1..2855c330907779afcd75b7466ed5b68b3373b17a 100644 (file)
@@ -135,7 +135,7 @@ Debug::xassert(const char *msg, const char *file, int line)
 
     if (CurrentDebug) {
         *CurrentDebug << "assertion failed: " << file << ":" << line <<
-        ": \"" << msg << "\"";
+                      ": \"" << msg << "\"";
     }
     abort();
 }
@@ -165,3 +165,4 @@ Raw::print(std::ostream &os) const
 
     return os;
 }
+
index 1f5b1ad4e931965ad9a0d42f7ba89ab9c99d2682..8831b2d1a914cc6d573ba1179f6f28614521aeb8 100644 (file)
@@ -18,3 +18,4 @@ bool strHdrAcptLangGetItem(const String &hdr, char *lang, int langLen, size_t &p
 bool TemplateFile::loadDefault() STUB_RETVAL(false)
 TemplateFile::TemplateFile(char const*, err_type) STUB
 bool TemplateFile::loadFor(const HttpRequest *) STUB_RETVAL(false)
+
index ffee9ef82eec1333a904ab05af62e5730f1fc711..ab1e721fc5a6c5fdbc49b1deeddca7e954dc2203 100644 (file)
@@ -33,3 +33,4 @@ bool EventScheduler::find(EVH * func, void * arg) STUB_RETVAL(false)
 void EventScheduler::schedule(const char *name, EVH * func, void *arg, double when, int weight, bool cbdata) STUB
 int EventScheduler::checkEvents(int timeout) STUB_RETVAL(-1)
 EventScheduler *EventScheduler::GetInstance() STUB_RETVAL(NULL)
+
index 838b3408a471d48f8a00457b363ce4ca3e657142..4fd05c153975c5004118eba396597ba3abff8bbe 100644 (file)
@@ -29,3 +29,4 @@ void externalAclShutdown(void) STUB_NOP
 ExternalACLLookup * ExternalACLLookup::Instance() STUB_RETVAL(NULL)
 void ExternalACLLookup::checkForAsync(ACLChecklist *) const STUB
 void ExternalACLLookup::LookupDone(void *, const ExternalACLEntryPointer &) STUB
+
index a3a883ef5ddcb9d508e8a5c8a3e7719041771043..b6a7b8c9c66d6b21e6054c6e5c4545ef9019ecba 100644 (file)
@@ -16,3 +16,4 @@ void fatal_common(const char *message) STUB
 void fatalf(const char *fmt,...) STUB
 void fatalvf(const char *fmt, va_list args) STUB
 void fatal_dump(const char *message) STUB
+
index 84117524d1214638bd2a1874aab41261dcb0f5d9..835ae097b3d3568128a1d58ec02f3d736ebbb669 100644 (file)
@@ -20,3 +20,4 @@ void fd_close(int fd) STUB
 void fd_bytes(int fd, int len, unsigned int type) STUB
 void fd_note(int fd, const char *s) STUB
 void fdAdjustReserved() STUB
+
index fe00d3b5a71b9fc2db576e45f0ba5ca86aa726f4..81ff58662c26465bfd150490cd4646332f40754f 100644 (file)
@@ -27,3 +27,4 @@ void *helperStatefulServerGetData(helper_stateful_server * srv) STUB_RETVAL(NULL
 helper_stateful_server *helperStatefulDefer(statefulhelper * hlp) STUB_RETVAL(NULL)
 void helperStatefulReleaseServer(helper_stateful_server * srv) STUB
 CBDATA_CLASS_INIT(statefulhelper);
+
index 92df64108ef07c4676a01ede4260ac155d8b942f..fc3ba95a632bae914426567fdcccd06d8e9dd2f8 100644 (file)
@@ -15,3 +15,4 @@
 #include "tests/STUB.h"
 
 const char * httpMakeVaryMark(HttpRequest * request, HttpReply const * reply) STUB_RETVAL(NULL)
+
index 26e7250d8f89a60f8420002d6e23973c5a43a353..2704883a322c817aafac340da7b840e0d75821c2 100644 (file)
@@ -42,3 +42,4 @@ void icpConnectionShutdown(void) STUB
 void icpConnectionClose(void) STUB
 int icpSetCacheKey(const cache_key * key) STUB_RETVAL(0)
 const cache_key *icpGetCacheKey(const char *url, int reqnum) STUB_RETVAL(NULL)
+
index d73a28905126ea62e51f08162ddcff408a0de275..02466bcba63a6dde7a61dd5753a652965c10180f 100644 (file)
@@ -12,3 +12,4 @@
 #include "tests/STUB.h"
 
 char * internalLocalUri(const char *dir, const char *name) STUB_RETVAL(NULL)
+
index 5e8bacc030485bb3508fb3ea6895482c27af3dcd..c7180ce1866f335029f51fb96a50b91dbb260593 100644 (file)
@@ -13,3 +13,4 @@
 #include "tests/STUB.h"
 
 pid_t ipcCreate(int, const char *, const char *const [], const char *, Ip::Address &, int *, int *, void **) STUB_RETVAL(-1)
+
index 3f494b901964390630a1466220e07862b688403a..fddfc241d2b588fd87e6a38fe4718e861046774d 100644 (file)
@@ -14,3 +14,4 @@ void foo_stub_ipc_forwarder()
 {
     Ipc::Forwarder foo(NULL,1.0);
 }
+
index fb9d588115061643b1a1541ee52f291fc07d9d80..7a59b159b60dac176f78328ef2c2b83fd819420d 100644 (file)
@@ -20,3 +20,4 @@ void Ipc::TypedMsgHdr::getFixed(void*, size_t) const STUB
 void Ipc::TypedMsgHdr::putFixed(void const*, size_t) STUB
 void Ipc::TypedMsgHdr::getString(String&) const STUB
 void Ipc::TypedMsgHdr::putString(String const&) STUB
+
index e15992b18812f91ced466fb63a986b06634a1fdc..f7019afc8384a64d6d1a9b231aed5594d4b1c97d 100644 (file)
@@ -26,3 +26,4 @@ void ipcacheFreeMemory(void) STUB
 ipcache_addrs *ipcacheCheckNumeric(const char *name) STUB_RETVAL(NULL)
 void ipcache_restart(void) STUB
 int ipcacheAddEntryFromHosts(const char *name, const char *ipaddr) STUB_RETVAL(-1)
+
index 2e6690ec8d9bce75840eaff85565da089faaf6c0..5f1377a3ac75dc5d81c253c52800e7b0f67515f5 100644 (file)
@@ -82,3 +82,4 @@ Auth::Scheme::Pointer Auth::UserRequest::scheme() const STUB_RETVAL(NULL)
 void Auth::Init() STUB_NOP
 
 #endif /* USE_AUTH */
+
index ddb647fc38b4eb6b31b3e279b53e4dfeebd10b48..bb6bb8f0913c85fc12718f3c62a2a61553f7d0c4 100644 (file)
@@ -49,3 +49,4 @@ int ACLProxyAuth::matchForCache(ACLChecklist *) STUB_RETVAL(0)
 int ACLProxyAuth::matchProxyAuth(ACLChecklist *) STUB_RETVAL(0)
 
 #endif /* USE_AUTH */
+
index d55f3aec52d0d53ff39f9dfad0b3a14ea0759c41..9ae4711ddf8432a282ff78b86791944aaa250fb4 100644 (file)
@@ -33,19 +33,19 @@ bool Comm::ConnOpener::doneAll() const STUB_RETVAL(false)
 void Comm::ConnOpener::start() STUB
 void Comm::ConnOpener::swanSong() STUB
 Comm::ConnOpener::ConnOpener(Comm::ConnectionPointer &, AsyncCall::Pointer &, time_t) : AsyncJob("STUB Comm::ConnOpener") STUB
-        Comm::ConnOpener::~ConnOpener() STUB
-        void Comm::ConnOpener::setHost(const char *) STUB
-        const char * Comm::ConnOpener::getHost() const STUB_RETVAL(NULL)
+    Comm::ConnOpener::~ConnOpener() STUB
+    void Comm::ConnOpener::setHost(const char *) STUB
+    const char * Comm::ConnOpener::getHost() const STUB_RETVAL(NULL)
 
 #include "comm/forward.h"
-        bool Comm::IsConnOpen(const Comm::ConnectionPointer &) STUB_RETVAL(false)
+    bool Comm::IsConnOpen(const Comm::ConnectionPointer &) STUB_RETVAL(false)
 
 #include "comm/IoCallback.h"
-        void Comm::IoCallback::setCallback(iocb_type, AsyncCall::Pointer &, char *, FREE *, int) STUB
-        void Comm::IoCallback::selectOrQueueWrite() STUB
-        void Comm::IoCallback::cancel(const char *reason) STUB
-        void Comm::IoCallback::finish(Comm::Flag code, int xerrn) STUB
-        Comm::CbEntry *Comm::iocb_table = NULL;
+    void Comm::IoCallback::setCallback(iocb_type, AsyncCall::Pointer &, char *, FREE *, int) STUB
+    void Comm::IoCallback::selectOrQueueWrite() STUB
+    void Comm::IoCallback::cancel(const char *reason) STUB
+    void Comm::IoCallback::finish(Comm::Flag code, int xerrn) STUB
+    Comm::CbEntry *Comm::iocb_table = NULL;
 void Comm::CallbackTableInit() STUB
 void Comm::CallbackTableDestruct() STUB
 
@@ -78,3 +78,4 @@ void Comm::Write(const Comm::ConnectionPointer &, const char *, int, AsyncCall::
 void Comm::Write(const Comm::ConnectionPointer &conn, MemBuf *mb, AsyncCall::Pointer &callback) STUB
 void Comm::WriteCancel(const Comm::ConnectionPointer &conn, const char *reason) STUB
 /*PF*/ void Comm::HandleWrite(int, void*) STUB
+
index 2e1730f87b56009762b39886943a091dd2bdd316..6def40147e353fe071780e419036ae1efc72fe73 100644 (file)
@@ -31,3 +31,4 @@ bool Eui::Eui64::lookup(const Ip::Address &c) STUB_RETVAL(false)
 bool Eui::Eui64::lookupNdp(const Ip::Address &c) STUB_RETVAL(false)
 bool Eui::Eui64::lookupSlaac(const Ip::Address &c) STUB_RETVAL(false)
 #endif
+
index bbfc1eafac13dd00a3b9ae3ca1d3ce89ae7be070..420c9a77cc9a0918607487709ada9427b5c4b6c2 100644 (file)
@@ -16,3 +16,4 @@ void Format::Format::assemble(MemBuf &mb, const AccessLogEntryPointer &al, int l
 bool Format::Format::parse(char const*) STUB_RETVAL(false)
 Format::Format::Format(char const*) STUB
 Format::Format::~Format() STUB
+
index 89ffcef8e685bae561a317b4072de2c5f48e554f..4a65f16e4dcc08c5619676b2ef15fb370e13e0db 100644 (file)
@@ -37,3 +37,4 @@ void netdbExchangeStart(void *) STUB
 void netdbExchangeUpdatePeer(Ip::Address &, CachePeer *, double, double) STUB
 CachePeer *netdbClosestParent(HttpRequest *) STUB_RETVAL(NULL)
 void netdbHostData(const char *host, int *samp, int *rtt, int *hops) STUB
+
index 509dafdbdfaf7fd9e6d74982e5037c3f065a18b4..369fb9cee9745b3107c351d1f7e0292f7f9d67d7 100644 (file)
@@ -103,3 +103,4 @@ void memPoolIterateDone(MemPoolIterator ** iter) STUB
 int memPoolGetGlobalStats(MemPoolGlobalStats * stats) STUB_RETVAL(0)
 int memPoolInUseCount(MemAllocator *) STUB_RETVAL(0)
 int memPoolsTotalAllocated(void) STUB_RETVAL(0)
+
index 7084750f251f06a219ee6fcd3f70259b11ff9a86..872f09e26b1949fa955a99f96d763ed08e4a3a4f 100644 (file)
@@ -247,3 +247,4 @@ void Mgr::StringParam::pack(Ipc::TypedMsgHdr& msg) const STUB
 void Mgr::StringParam::unpackValue(const Ipc::TypedMsgHdr& msg) STUB
 static String t;
 const String& Mgr::StringParam::value() const STUB_RETVAL(t)
+
index 2688b6c9a3695ccf9816f2d0ae913534625e2168..86272776b533986090dc7f82f874b815e498e9af 100644 (file)
@@ -20,9 +20,9 @@
 #include "ssl/Config.h"
 Ssl::Config::Config():
 #if USE_SSL_CRTD
-        ssl_crtd(NULL),
+    ssl_crtd(NULL),
 #endif
-        ssl_crt_validator(NULL)
+    ssl_crt_validator(NULL)
 {
     ssl_crt_validator_Children.concurrency = 1;
     STUB_NOP
@@ -92,3 +92,4 @@ void destruct_session_cache() STUB
 } //namespace Ssl
 
 #endif
+
index 4bc9ed3dad84a2a40989f6d5701bddd95d4d3103..8df6a8ee8454a400e9e6e4faab89a784e5b4a518 100644 (file)
@@ -13,4 +13,5 @@
 #include "tests/STUB.h"
 
 mem_node::mem_node(int64_t offset):nodeBuffer(0,offset,data) STUB
-        size_t mem_node::InUseCount() STUB_RETVAL(0)
+    size_t mem_node::InUseCount() STUB_RETVAL(0)
+
index cc447e8806c9def26b3efabd1c829124822a4e6f..45b00f0c2fc8b7b0e5d0e35e5886968c40a8f545 100644 (file)
@@ -12,3 +12,4 @@
 #include "tests/STUB.h"
 
 size_t headersEnd(const char *mime, size_t l) STUB_RETVAL(0)
+
index 153bf4483e3b4dcf8b42491a41488fa5f58ef2b6..7c799e7cd85254a005ade7a98d3a214eda4a3a73 100644 (file)
@@ -15,3 +15,4 @@
 
 void
 peerConnClosed(CachePeer *p) STUB
+
index 81a9e7a4cb5d772403398edff3bfc7580bb5ddce..42b4fad90646c78753a8ae386422d6b7602824ae 100644 (file)
@@ -37,3 +37,4 @@ PconnModule::PconnModule() STUB
 void PconnModule::registerWithCacheManager(void) STUB
 void PconnModule::add(PconnPool *) STUB
 void PconnModule::dump(StoreEntry *) STUB
+
index feef64cb59c0237c2d5afe7756c4ce77bd2126c1..f8374567c104f31f64fbea5af8e072a3cb8e6e99 100644 (file)
@@ -16,3 +16,4 @@ void redirectInit(void) STUB
 void redirectShutdown(void) STUB
 void redirectStart(ClientHttpRequest *, HLPCB *, void *) STUB
 void storeIdStart(ClientHttpRequest *, HLPCB *, void *) STUB
+
index 313a711c81af80aaaab762e2e2580fca5320813d..41623ccfd98a6fb4a9ea5a7bc1fdea1e13e884c8 100644 (file)
@@ -15,3 +15,4 @@
 
 class StoreEntry;
 const char *storeEntryFlags(const StoreEntry *) STUB_RETVAL(NULL)
+
index dbc834a7de26228d1210b6ebbf8f5ab52437c600..cd5020df71d7220b162e374b10bbc75d124e4a98 100644 (file)
@@ -144,3 +144,4 @@ void storeReplAdd(const char *, REMOVALPOLICYCREATE *) STUB
 void destroyStoreEntry(void *) STUB
 // in Packer.cc !? void packerToStoreInit(Packer * p, StoreEntry * e) STUB
 void storeGetMemSpace(int size) STUB
+
index cc54cbf669afd6e652dd4b303a7d3bf91fb418cb..7d902f116f65b5c48ad01c38c42581c57ee0ea92 100644 (file)
@@ -37,3 +37,4 @@ void storeReplSetup(void) STUB
 bool store_client::memReaderHasLowerOffset(int64_t anOffset) const STUB_RETVAL(false)
 void store_client::dumpStats(MemBuf * output, int clientNumber) const STUB
 int store_client::getType() const STUB_RETVAL(0)
+
index 1e1d2db1142fd63443717107e01f94accff0d676..669d2359daf8bbe438f9062e4cdff4f10c45cde0 100644 (file)
@@ -16,3 +16,4 @@ void storeDigestInit(void) STUB
 void storeDigestNoteStoreReady(void) STUB
 void storeDigestDel(const StoreEntry *) STUB
 void storeDigestReport(StoreEntry *) STUB
+
index 32d27d20eb38deb06a5cc680516eee1038262b42..3efdfc21d2cd3730321d0275796dd56bc99deaf9 100644 (file)
@@ -39,3 +39,4 @@ storeRebuildLoadEntry(int fd, int diskIndex, MemBuf &buf, StoreRebuildData &)
     buf.appended(buf.spaceSize());
     return true;
 }
+
index cc0f0ac872ffa14572c3d2fb409a9b0d5cfafe74..2f38c34f199a7c19761f700ee2242d1e43491434 100644 (file)
@@ -25,3 +25,4 @@ StoreIoStats::StoreIoStats()
     // has a StoreIoStats global
     memset(this, 0, sizeof(*this));
 }
+
index 66487e1ac289e0e95c28ccf28a13b02d8de1e9bb..9a8f8a0103253a8c349adfcf9c9b84289afce11b 100644 (file)
@@ -20,3 +20,4 @@ void storeUnlink(StoreEntry * e) STUB
 char *storeSwapMetaPack(tlv * tlv_list, int *length) STUB_RETVAL(NULL)
 tlv *storeSwapMetaBuild(StoreEntry * e) STUB_RETVAL(NULL)
 void storeSwapTLVFree(tlv * n) STUB
+
index 683ea93ae71e1f44045e5f46725abdfedceb3fd9..a4d9d9cea2e92d4e4b425ef0df995bbfe144a7d5 100644 (file)
@@ -76,3 +76,4 @@ void setUmask(mode_t mask) STUB
 void strwordquote(MemBuf * mb, const char *str) STUB
 void keepCapabilities(void) STUB
 void restoreCapabilities(bool keep) STUB
+
index 07eea896ddef3c95e2c9710ab8cf4aeedf546b50..84121067f8454cb4811e33eef9e04d848aa0e1cc 100644 (file)
@@ -34,3 +34,4 @@ void free_wccp2_amethod(int *) STUB
 void parse_wccp2_method(int *) STUB
 
 #endif /* USE_WCCPv2 */
+
index 9ed979576d49adb287cc8b00c98b557f14aaa729..ed252043d20ecdc6ba74a0366dbeeb5c9b01e4bd 100644 (file)
@@ -17,3 +17,4 @@ void wordlistAddWl(wordlist **, wordlist *) STUB
 void wordlistJoin(wordlist **, wordlist **) STUB
 wordlist *wordlistDup(const wordlist *) STUB_RETVAL(NULL)
 void wordlistDestroy(wordlist **) STUB
+
index 32510878b3b342a8171aa3b5af04283483550ccb..c0df8af94b6d48af5a50fe18fdde27a190134553 100644 (file)
@@ -57,3 +57,4 @@ testACLMaxUserIP::testParseLine()
 }
 
 #endif /* USE_AUTH */
+
index 8f9bd7c2dd39b5e57f51c1feb0f0d58cd57b62d4..6627ebe90a493c94fa1fe3c9ec08dfa476cc98cb 100644 (file)
@@ -35,3 +35,4 @@ protected:
 
 #endif /* USE_AUTH */
 #endif /* SQUID_SRC_TEST_ACLMAXUSERIP_H */
+
index c92e00035634e3281a0fade6f019bc1bd6cbcd02..4c474245357270e4b3d7f40cadcb9f22eb30854e 100644 (file)
@@ -134,7 +134,7 @@ fake_auth_setup()
         unsigned paramlength;
     }
 
-    params[]={ {"digest", digest_parms, 2},
+    params[]= { {"digest", digest_parms, 2},
         {"basic", basic_parms, 2},
         {"ntlm", ntlm_parms, 1},
         {"negotiate", negotiate_parms, 1}
@@ -287,3 +287,4 @@ testAuthNegotiateUserRequest::username()
 
 #endif /* HAVE_AUTH_MODULE_NEGOTIATE */
 #endif /* USE_AUTH */
+
index 545a20d12a198a2fa475f659d2eb39460d31215d..5efd43a2fee96a964c2ce89395b2b4bf32d01858 100644 (file)
@@ -124,3 +124,4 @@ protected:
 
 #endif /* USE_AUTH */
 #endif /* SQUID_SRC_TEST_AUTH_H */
+
index 1d580808a7347406fa1e49bd82f78f67b5e332d6..87d935af2042da010a9e2fdfb9895cfa8eb10e49 100644 (file)
@@ -18,3 +18,4 @@ testBoilerplate::testDemonstration()
 {
     CPPUNIT_ASSERT_EQUAL(0, 0);
 }
+
index 7219a3e635390aecc83fdb6aadafefbc95dbe97a..53fcb8c3431eac22cb7bf925e4fdf2f3eba40cbf 100644 (file)
@@ -64,3 +64,4 @@ testCacheManager::testRegister()
     action->run(sentry, false);
     CPPUNIT_ASSERT_EQUAL(1,(int)sentry->flags);
 }
+
index 9d88f7f8ea4a1f4f5fbdacbf99b4d91dddc4e1cd..3e27b404821b1c872bd308a96cca35c41b267b4b 100644 (file)
@@ -30,3 +30,4 @@ protected:
 };
 
 #endif
+
index a43d939f4b4cd6e49a9a93eaa306dc9ba2fbdb8b..cb48eeea61c06e4d77796ff070526dafd52d3bd2 100644 (file)
@@ -40,3 +40,4 @@ testDiskIO::testFindDefault()
     CPPUNIT_ASSERT(module == NULL);
 #endif
 }
+
index 702e55ba211dab69dee280a776dd543acfa8b585..c3174c8bfbd1f40d435f2a51b01b3e41faabfe42 100644 (file)
@@ -155,3 +155,4 @@ testEvent::testSingleton()
     EventScheduler *scheduler = dynamic_cast<EventScheduler *>(EventScheduler::GetInstance());
     CPPUNIT_ASSERT(NULL != scheduler);
 }
+
index 9d8586de5461a1e27723035a3e988e69b05e4dfd..ed7b37893e6d75cd8f3f61343e38b6ec0e3c8578 100644 (file)
@@ -278,3 +278,4 @@ testEventLoop::testSetPrimaryEngine()
     CPPUNIT_ASSERT_EQUAL(10, first_engine.lasttimeout);
     CPPUNIT_ASSERT_EQUAL(0, second_engine.lasttimeout);
 }
+
index 506d5c29113f7bd54ff9467507b493412d239fa8..70bb087354354b7fd6100789ca90a1e841dbbf9d 100644 (file)
@@ -1449,3 +1449,4 @@ testHttp1Parser::testDripFeed()
     }
 }
 #endif /* __cplusplus >= 201103L */
+
index 02a3174c7f9b1237b50856f9363f67417718cbcd..2d92a798c740ee7399ebfa32751127555750b4b0 100644 (file)
@@ -44,3 +44,4 @@ protected:
 };
 
 #endif
+
index 12a564cea9cf6918358e201e44d7c78ce63ddccc..f9702ece7e53cba17ca74b42b00c9fe434381df9 100644 (file)
@@ -200,3 +200,4 @@ testHttpReply::testSanityCheckFirstLine()
     input.reset();
     error = Http::scNone;
 }
+
index 8120609d0ce2e09e8645a616e70bba789ef7613c..b760d814f7852c613000e3cd9da8888e58b41629 100644 (file)
@@ -207,3 +207,4 @@ testHttpRequest::testSanityCheckStartLine()
     input.reset();
     error = Http::scNone;
 }
+
index 52392f14dc55cb08ae5557c0a710c17694eeb176..216f429c8a2520584b5dda0d3e3847f03e293afd 100644 (file)
@@ -168,3 +168,4 @@ testHttpRequestMethod::testStream()
     buffer2 << HttpRequestMethod(SBuf("get"));
     CPPUNIT_ASSERT_EQUAL(String("get"), String(buffer2.str().c_str()));
 }
+
index 7ad48616fdc5575f429f83de4db1627b678473fa..e156fcc14d900485e901080cbd5702cb1ee3f1ce 100644 (file)
@@ -43,3 +43,4 @@ main( int argc, char* argv[] )
 
     return result.wasSuccessful() ? 0 : 1;
 }
+
index 6be810f6d06d446f5ef894a949e92dd42ec650a7..d1e37808277b1e1a7161ab0ec47288fb645476ac 100644 (file)
@@ -128,3 +128,4 @@ main (int argc, char **argv)
     }
     return _ToRefCount::Instances == 0 ? 0 : 1;
 }
+
index d66ee5520660ef3ec21bb6191e919ce2441abbdf..38b2175cf9424f9ca010dede62f4301e571c0ee2 100644 (file)
@@ -139,9 +139,9 @@ testRock::commonInit()
 
     comm_init();
 
-    httpHeaderInitModule();    /* must go before any header processing (e.g. the one in errorInitialize) */
+    httpHeaderInitModule(); /* must go before any header processing (e.g. the one in errorInitialize) */
 
-    httpReplyInitModule();     /* must go before accepting replies */
+    httpReplyInitModule();  /* must go before accepting replies */
 
     mem_policy = createRemovalPolicy(Config.replPolicy);
 
@@ -322,3 +322,4 @@ testRock::testRockSwapOut()
         CPPUNIT_ASSERT_EQUAL(static_cast<StoreEntry *>(NULL), pe2);
     }
 }
+
index cfbc9dda193adf779061fe34b3d4f83c534836e3..f2df916557887ba8a40a8ed9a694764929c23920 100644 (file)
@@ -44,3 +44,4 @@ private:
 };
 
 #endif /* SQUID_SRC_TEST_TESTROCK_H */
+
index 945f315823096519f36c2f578652bb50a7844037..f1415165cf7155bdbfe607a430df14b7e01cadfe 100644 (file)
@@ -431,49 +431,49 @@ testSBuf::testChop()
     const char *alphabet="abcdefghijklmnopqrstuvwxyz";
     SBuf a(alphabet);
     std::string s(alphabet); // TODO
-    { //regular chopping
+    {   //regular chopping
         SBuf b(a);
         b.chop(3,3);
         SBuf ref("def");
         CPPUNIT_ASSERT_EQUAL(ref,b);
     }
-    { // chop at end
+    {   // chop at end
         SBuf b(a);
         b.chop(b.length()-3);
         SBuf ref("xyz");
         CPPUNIT_ASSERT_EQUAL(ref,b);
     }
-    { // chop at beginning
+    {   // chop at beginning
         SBuf b(a);
         b.chop(0,3);
         SBuf ref("abc");
         CPPUNIT_ASSERT_EQUAL(ref,b);
     }
-    { // chop to zero length
+    {   // chop to zero length
         SBuf b(a);
         b.chop(5,0);
         SBuf ref("");
         CPPUNIT_ASSERT_EQUAL(ref,b);
     }
-    { // chop beyond end (at npos)
+    {   // chop beyond end (at npos)
         SBuf b(a);
         b.chop(SBuf::npos,4);
         SBuf ref("");
         CPPUNIT_ASSERT_EQUAL(ref,b);
     }
-    { // chop beyond end
+    {   // chop beyond end
         SBuf b(a);
         b.chop(b.length()+2,4);
         SBuf ref("");
         CPPUNIT_ASSERT_EQUAL(ref,b);
     }
-    { // null-chop
+    {   // null-chop
         SBuf b(a);
         b.chop(0,b.length());
         SBuf ref(a);
         CPPUNIT_ASSERT_EQUAL(ref,b);
     }
-    { // overflow chopped area
+    {   // overflow chopped area
         SBuf b(a);
         b.chop(b.length()-3,b.length());
         SBuf ref("xyz");
@@ -792,7 +792,7 @@ void
 testSBuf::testStringOps()
 {
     SBuf sng(ToLower(literal)),
-    ref("the quick brown fox jumped over the lazy dog");
+         ref("the quick brown fox jumped over the lazy dog");
     CPPUNIT_ASSERT_EQUAL(ref,sng);
     sng=literal;
     CPPUNIT_ASSERT_EQUAL(0,sng.compare(ref,caseInsensitive));
@@ -913,3 +913,4 @@ testSBuf::testStdStringOps()
     SBuf sb(alphabet);
     CPPUNIT_ASSERT_EQUAL(astr,sb.toStdString());
 }
+
index 6d9dc8954a6809d31f27f972c7d1703bf27ee4cd..2b38993ea1c1a3e8b59e591463177553e33d1446 100644 (file)
@@ -94,3 +94,4 @@ protected:
 };
 
 #endif
+
index e07fd73027697ae373175c6ef676814c61e9d527..e9e85c28d0bd30c6b5046e12a2c07868da830b76 100644 (file)
@@ -15,7 +15,7 @@ CPPUNIT_TEST_SUITE_REGISTRATION( testSBufList );
 
 SBuf literal("The quick brown fox jumped over the lazy dog");
 static int sbuf_tokens_number=9;
-static SBuf tokens[]={
+static SBuf tokens[]= {
     SBuf("The",3), SBuf("quick",5), SBuf("brown",5), SBuf("fox",3),
     SBuf("jumped",6), SBuf("over",4), SBuf("the",3), SBuf("lazy",4),
     SBuf("dog",3)
@@ -43,3 +43,4 @@ testSBufList::testSBufListJoin()
     SBuf joined=SBufContainerJoin(foo,SBuf(" "));
     CPPUNIT_ASSERT_EQUAL(literal,joined);
 }
+
index d8e83ef625bc1b8796b1601c1d9b100efe7dd1f2..dd16cd5e44779ea2e5f3258b2993a1cff7aea5c8 100644 (file)
@@ -25,3 +25,4 @@ protected:
 };
 
 #endif
+
index 5ed94f8c6e5f8762a7fd3eb461761bfa2cd7d042..a81d81b8d220081fe5962de56c6d1620b352604c 100644 (file)
@@ -102,3 +102,4 @@ testStatHist::testStatHistSum()
     CPPUNIT_ASSERT(ts3 == ts1);
 
 }
+
index edfe04ba08a7ece843b2af692eb3b1139c96b8a4..608363df21369804add99acfa0612a61317abd49 100644 (file)
@@ -34,3 +34,4 @@ protected:
 };
 
 #endif /* TESTSTATHIST_H_ */
+
index e5bb819f7a7bb14d017d2169289d735d2eab36ec..3ea9a467de6bc99086daada7ae03fc5394ae9991 100644 (file)
@@ -119,3 +119,4 @@ testStore::testMaxSize()
     CPPUNIT_ASSERT_EQUAL(static_cast<uint64_t>(3), aStore->maxSize());
     Store::Root(NULL);
 }
+
index 5f8b594b7c66fc3f0c568957d709a1a85c41a508..ef24778867701f5e780569179fcc599e7244c56c 100644 (file)
@@ -71,7 +71,7 @@ public:
 
     virtual void stat(StoreEntry &) const; /* output stats to the provided store entry */
 
-    virtual void reference(StoreEntry &) {}    /* Reference this object */
+    virtual void reference(StoreEntry &) {} /* Reference this object */
 
     virtual bool dereference(StoreEntry &, bool) { return true; }
 
index 74a66e633ff1642ea2fb91fb54825e84d1174ba0..3ddfb37602dafc975a15fc89a145548522d00f68 100644 (file)
@@ -118,7 +118,7 @@ addedEntry(StorePointer hashStore,
     EBIT_CLR(e->flags, KEY_PRIVATE);
     e->ping_status = PING_NONE;
     EBIT_CLR(e->flags, ENTRY_VALIDATED);
-    e->hashInsert((const cache_key *)name.termedBuf());        /* do it after we clear KEY_PRIVATE */
+    e->hashInsert((const cache_key *)name.termedBuf()); /* do it after we clear KEY_PRIVATE */
     return e;
 }
 
@@ -192,3 +192,4 @@ testStoreController::testSearch()
 
     Store::Root(NULL);
 }
+
index 2be76f5d1953b4a23c75706c618df9bf09dc5431..0ebd8dcb9fa2be74777109b0ecf4f56b322641e2 100644 (file)
@@ -57,3 +57,4 @@ testStoreEntryStream::testGetStream()
     }
     Store::Root(NULL);
 }
+
index 09c08365eddbeff905ae60c073714050081f3cc1..20a6418c9f7770bcdb637674adf5e9fcf96a261f 100644 (file)
@@ -99,7 +99,7 @@ addedEntry(StorePointer hashStore,
     EBIT_CLR(e->flags, KEY_PRIVATE);
     e->ping_status = PING_NONE;
     EBIT_CLR(e->flags, ENTRY_VALIDATED);
-    e->hashInsert((const cache_key *)name.termedBuf());        /* do it after we clear KEY_PRIVATE */
+    e->hashInsert((const cache_key *)name.termedBuf()); /* do it after we clear KEY_PRIVATE */
     return e;
 }
 
@@ -189,3 +189,4 @@ testStoreHashIndex::testSearch()
 
     Store::Root(NULL);
 }
+
index 78db12ff11a0c9f71539cb6f0497750c469ea85f..0df98b9dbc4e4dcccfaa8cefd20a827ed7f31405 100644 (file)
@@ -20,3 +20,4 @@ StockEventLoop::StockEventLoop() : default_time_engine(TimeEngine())
     registerEngine(EventScheduler::GetInstance());
     setTimeService(&default_time_engine);
 }
+
index b4519e564e0a6501c1517a7850cac643691b267b..f91d542259d3904358d12a2b3e44820fcc56e8bb 100644 (file)
@@ -25,3 +25,4 @@ public:
 };
 
 #endif /* SQUID_TESTSTORESUPPORT_H */
+
index b0c31bca81523eb94d4a2d14bba1560b58129bd2..54599f9a79813f737f9c8d177a8f1907b1eabb03 100644 (file)
@@ -73,3 +73,4 @@ void testString::testSubstr()
     String ref("34");
     CPPUNIT_ASSERT(check == ref);
 }
+
index a82a1ea0554076c7ec84d33999d87cada53dc60b..68709360ca5885cdd02df82eedfae9d118180793 100644 (file)
@@ -57,3 +57,4 @@ testURL::testDefaultConstructor()
     CPPUNIT_ASSERT(urlPointer != NULL);
     delete urlPointer;
 }
+
index 5ca295338c91f87bf651dbded8a13c48ee167458..7edc612efcdd9440fdab9c19adca807b87a4e47f 100644 (file)
@@ -27,7 +27,7 @@
 CPPUNIT_TEST_SUITE_REGISTRATION( testUfs );
 
 typedef RefCount<Fs::Ufs::UFSSwapDir> SwapDirPointer;
-extern REMOVALPOLICYCREATE createRemovalPolicy_lru;    /* XXX fails with --enable-removal-policies=heap */
+extern REMOVALPOLICYCREATE createRemovalPolicy_lru; /* XXX fails with --enable-removal-policies=heap */
 
 static void
 addSwapDir(SwapDirPointer aStore)
@@ -71,9 +71,9 @@ testUfs::commonInit()
 
     comm_init();
 
-    httpHeaderInitModule();    /* must go before any header processing (e.g. the one in errorInitialize) */
+    httpHeaderInitModule(); /* must go before any header processing (e.g. the one in errorInitialize) */
 
-    httpReplyInitModule();     /* must go before accepting replies */
+    httpReplyInitModule();  /* must go before accepting replies */
 
     inited = true;
 }
@@ -145,7 +145,7 @@ testUfs::testUfsSearch()
         RequestFlags flags;
         flags.cachable = true;
         StoreEntry *pe = storeCreateEntry("dummy url", "dummy log url", flags, Http::METHOD_GET);
-        HttpReply *rep = (HttpReply *) pe->getReply(); // bypass const
+        HttpReply *rep = (HttpReply *) pe->getReply();  // bypass const
         rep->setHeaders(Http::scOkay, "dummy test object", "x-squid-internal/test", 0, -1, squid_curtime + 100000);
 
         pe->setPublicKey();
@@ -259,3 +259,4 @@ testUfs::testUfsDefaultEngine()
     if (0 > system ("rm -rf " TESTDIR))
         throw std::runtime_error("Failed to clean test work directory");
 }
+
index 78a254845b8aa3e11da59f66febc29817c81036a..ee1b62cdbf70bae86b6a5ac7d55d540ed6746725 100644 (file)
@@ -155,3 +155,4 @@ testUriScheme::testStream()
     String from_buf(buffer.str().c_str());
     CPPUNIT_ASSERT_EQUAL(http_str, from_buf);
 }
+
index 3dc410576598c41ed67d524a6dca0b34b91594e3..652f58e7e56b5ee080629e4772568947dc6acd73 100644 (file)
@@ -177,3 +177,4 @@ main(int argc, char **argv)
     }
     return 0;
 }
+
index 6b2dc33bcb473151a000011927f63465a6803ea8..545f3da3e023ca6ce54f06d91682c30c99f8084b 100644 (file)
@@ -140,3 +140,4 @@ Time::FormatHttpd(time_t t)
 
     return buf;
 }
+
index f560451ea78d15a41d8c868fd5085c12cc1da0a7..a6d1c5ba5d909e6bac61cf2c98d72f9800e1d608 100644 (file)
@@ -142,7 +142,7 @@ mail_warranty(void)
     fclose(fp);
 
     snprintf(command, 256, "%s %s < %s", Config.EmailProgram, Config.adminEmail, filename);
-    if (system(command)) {}            /* XXX should avoid system(3) */
+    if (system(command)) {}     /* XXX should avoid system(3) */
     unlink(filename);
 #if !HAVE_MKSTEMP
     xfree(filename); // tempnam() requires us to free its allocation
@@ -297,7 +297,7 @@ death(int sig)
 #if PRINT_STACK_TRACE
 #if _SQUID_HPUX_
     {
-        extern void U_STACK_TRACE(void);       /* link with -lcl */
+        extern void U_STACK_TRACE(void);    /* link with -lcl */
         fflush(debug_log);
         dup2(fileno(debug_log), 2);
         U_STACK_TRACE();
@@ -305,8 +305,8 @@ death(int sig)
 
 #endif /* _SQUID_HPUX_ */
 #if _SQUID_SOLARIS_ && HAVE_LIBOPCOM_STACK
-    {                          /* get ftp://opcom.sun.ca/pub/tars/opcom_stack.tar.gz and */
-        extern void opcom_stack_trace(void);   /* link with -lopcom_stack */
+    {   /* get ftp://opcom.sun.ca/pub/tars/opcom_stack.tar.gz and */
+        extern void opcom_stack_trace(void);    /* link with -lopcom_stack */
         fflush(debug_log);
         dup2(fileno(debug_log), fileno(stdout));
         opcom_stack_trace();
@@ -383,7 +383,7 @@ sigusr2_handle(int sig)
     }
 
 #if !HAVE_SIGACTION
-    if (signal(sig, sigusr2_handle) == SIG_ERR)        /* reinstall */
+    if (signal(sig, sigusr2_handle) == SIG_ERR) /* reinstall */
         debugs(50, DBG_CRITICAL, "signal: sig=" << sig << " func=sigusr2_handle: " << xstrerror());
 
 #endif
@@ -900,7 +900,7 @@ setSystemLimits(void)
     if (getrlimit(RLIMIT_DATA, &rl) < 0) {
         debugs(50, DBG_CRITICAL, "getrlimit: RLIMIT_DATA: " << xstrerror());
     } else if (rl.rlim_max > rl.rlim_cur) {
-        rl.rlim_cur = rl.rlim_max;     /* set it to the max */
+        rl.rlim_cur = rl.rlim_max;  /* set it to the max */
 
         if (setrlimit(RLIMIT_DATA, &rl) < 0) {
             snprintf(tmp_error_buf, ERROR_BUF_SZ, "setrlimit: RLIMIT_DATA: %s", xstrerror());
@@ -916,7 +916,7 @@ setSystemLimits(void)
     if (getrlimit(RLIMIT_VMEM, &rl) < 0) {
         debugs(50, DBG_CRITICAL, "getrlimit: RLIMIT_VMEM: " << xstrerror());
     } else if (rl.rlim_max > rl.rlim_cur) {
-        rl.rlim_cur = rl.rlim_max;     /* set it to the max */
+        rl.rlim_cur = rl.rlim_max;  /* set it to the max */
 
         if (setrlimit(RLIMIT_VMEM, &rl) < 0) {
             snprintf(tmp_error_buf, ERROR_BUF_SZ, "setrlimit: RLIMIT_VMEM: %s", xstrerror());
@@ -1038,14 +1038,14 @@ parseEtcHosts(void)
     setmode(fileno(fp), O_TEXT);
 #endif
 
-    while (fgets(buf, 1024, fp)) {     /* for each line */
+    while (fgets(buf, 1024, fp)) {  /* for each line */
         wordlist *hosts = NULL;
         char *addr;
 
-        if (buf[0] == '#')     /* MS-windows likes to add comments */
+        if (buf[0] == '#')  /* MS-windows likes to add comments */
             continue;
 
-        strtok(buf, "#");      /* chop everything following a comment marker */
+        strtok(buf, "#");   /* chop everything following a comment marker */
 
         lt = buf;
 
@@ -1055,10 +1055,10 @@ parseEtcHosts(void)
 
         nt = strpbrk(lt, w_space);
 
-        if (nt == NULL)                /* empty line */
+        if (nt == NULL)     /* empty line */
             continue;
 
-        *nt = '\0';            /* null-terminate the address */
+        *nt = '\0';     /* null-terminate the address */
 
         debugs(1, 5, "etc_hosts: address is '" << addr << "'");
 
@@ -1067,7 +1067,7 @@ parseEtcHosts(void)
         while ((nt = strpbrk(lt, w_space))) {
             char *host = NULL;
 
-            if (nt == lt) {    /* multiple spaces */
+            if (nt == lt) { /* multiple spaces */
                 debugs(1, 5, "etc_hosts: multiple spaces, skipping");
                 lt = nt + 1;
                 continue;
@@ -1245,3 +1245,4 @@ restoreCapabilities(bool keep)
     Ip::Interceptor.StopTransparency("Missing needed capability support.");
 #endif /* HAVE_SYS_CAPABILITY_H */
 }
+
index 69d2cedb73a121e3910c05a608f97e4d22e3a08f..abe516097bc0cd59a42dbf22e318c2c31fb54c5a 100644 (file)
@@ -86,3 +86,4 @@ void PrintRusage(void);
 void dumpMallocStats(void);
 
 #endif /* SQUID_TOOLS_H_ */
+
index 9f282d4bed3ec0a236f8675ef7450144a2b5cc4b..601c945f227223caa5a3c66fdc599a9a1d6ebb69 100644 (file)
@@ -133,7 +133,7 @@ public:
         void dataSent (size_t amount);
         int len;
         char *buf;
-        int64_t *size_ptr;             /* pointer to size in an ConnStateData for logging */
+        int64_t *size_ptr;      /* pointer to size in an ConnStateData for logging */
 
         Comm::ConnectionPointer conn;    ///< The currently connected connection.
 
@@ -165,7 +165,7 @@ private:
         typedef void (TunnelStateData::*Method)(Ssl::PeerConnectorAnswer &);
 
         MyAnswerDialer(Method method, TunnelStateData *tunnel):
-                method_(method), tunnel_(tunnel), answer_() {}
+            method_(method), tunnel_(tunnel), answer_() {}
 
         /* CallDialer API */
         virtual bool canDial(AsyncCall &call) { return tunnel_.valid(); }
@@ -250,13 +250,13 @@ tunnelClientClosed(const CommCloseCbParams &params)
 }
 
 TunnelStateData::TunnelStateData() :
-        url(NULL),
-        http(),
-        request(NULL),
-        status_ptr(NULL),
-        logTag_ptr(NULL),
-        connectRespBuf(NULL),
-        connectReqWriting(false)
+    url(NULL),
+    http(),
+    request(NULL),
+    status_ptr(NULL),
+    logTag_ptr(NULL),
+    connectRespBuf(NULL),
+    connectReqWriting(false)
 {
     debugs(26, 3, "TunnelStateData constructed this=" << this);
 }
@@ -588,7 +588,7 @@ TunnelStateData::writeServerDone(char *buf, size_t len, Comm::Flag flag, int xer
         return;
     }
 
-    const CbcPointer<TunnelStateData> safetyLock(this);        /* ??? should be locked by the caller... */
+    const CbcPointer<TunnelStateData> safetyLock(this); /* ??? should be locked by the caller... */
 
     if (cbdataReferenceValid(this))
         copyRead(client, ReadClient);
@@ -648,7 +648,7 @@ TunnelStateData::writeClientDone(char *buf, size_t len, Comm::Flag flag, int xer
         return;
     }
 
-    CbcPointer<TunnelStateData> safetyLock(this);      /* ??? should be locked by the caller... */
+    CbcPointer<TunnelStateData> safetyLock(this);   /* ??? should be locked by the caller... */
 
     if (cbdataReferenceValid(this))
         copyRead(server, ReadServer);
@@ -1001,10 +1001,10 @@ tunnelRelayConnectRequest(const Comm::ConnectionPointer &srv, void *data)
     mb.init();
     mb.Printf("CONNECT %s HTTP/1.1\r\n", tunnelState->url);
     HttpStateData::httpBuildRequestHeader(tunnelState->request.getRaw(),
-                                          NULL,                        /* StoreEntry */
-                                          tunnelState->al,                     /* AccessLogEntry */
+                                          NULL,         /* StoreEntry */
+                                          tunnelState->al,          /* AccessLogEntry */
                                           &hdr_out,
-                                          flags);                      /* flags */
+                                          flags);           /* flags */
     packerToMemInit(&p, &mb);
     hdr_out.packInto(&p);
     hdr_out.clean();
@@ -1024,7 +1024,7 @@ tunnelRelayConnectRequest(const Comm::ConnectionPointer &srv, void *data)
         // does not see it) and only then start shoveling data to the client
         AsyncCall::Pointer writeCall = commCbCall(5,5, "tunnelConnectReqWriteDone",
                                        CommIoCbPtrFun(tunnelConnectReqWriteDone,
-                                                      tunnelState));
+                                               tunnelState));
         Comm::Write(srv, &mb, writeCall);
         tunnelState->connectReqWriting = true;
 
@@ -1110,7 +1110,7 @@ switchToTunnel(HttpRequest *request, Comm::ConnectionPointer &clientConn, Comm::
     tunnelState->request = request;
     tunnelState->server.size_ptr = NULL; //Set later if ClientSocketContext is available
 
-    // Temporary static variable to store the unneeded for our case status code 
+    // Temporary static variable to store the unneeded for our case status code
     static int status_code = 0;
     tunnelState->status_ptr = &status_code;
     tunnelState->client.conn = clientConn;
@@ -1172,3 +1172,4 @@ switchToTunnel(HttpRequest *request, Comm::ConnectionPointer &clientConn, Comm::
     Comm::Write(tunnelState->client.conn, buf.content(), buf.contentSize(), call, NULL);
 }
 #endif //USE_OPENSSL
+
index 790b34025b837a70c9f5ee8002a8cde4add786b3..29bd8c78bdac61a1b898e4cecb79af4183303919 100644 (file)
@@ -38,11 +38,11 @@ typedef void PF(int, void *);
 /* disk.c / diskd.c callback typedefs */
 typedef void DRCB(int, const char *buf, int size, int errflag, void *data);
 /* Disk read CB */
-typedef void DWCB(int, int, size_t, void *);   /* disk write CB */
-typedef void DOCB(int, int errflag, void *data);       /* disk open CB */
-typedef void DCCB(int, int errflag, void *data);       /* disk close CB */
-typedef void DUCB(int errflag, void *data);    /* disk unlink CB */
-typedef void DTCB(int errflag, void *data);    /* disk trunc CB */
+typedef void DWCB(int, int, size_t, void *);    /* disk write CB */
+typedef void DOCB(int, int errflag, void *data);    /* disk open CB */
+typedef void DCCB(int, int errflag, void *data);    /* disk close CB */
+typedef void DUCB(int errflag, void *data); /* disk unlink CB */
+typedef void DTCB(int errflag, void *data); /* disk trunc CB */
 
 class DnsLookupDetails;
 typedef void FQDNH(const char *, const DnsLookupDetails &details, void *);
@@ -58,7 +58,7 @@ typedef void UH(void *data, wordlist *);
 typedef int READ_HANDLER(int, char *, int);
 typedef int WRITE_HANDLER(int, const char *, int);
 
-typedef int QS(const void *, const void *);    /* qsort */
+typedef int QS(const void *, const void *); /* qsort */
 typedef void STABH(void *);
 typedef void ERCB(int fd, void *, size_t);
 class StoreEntry;
@@ -81,3 +81,4 @@ typedef int STDIRSELECT(const StoreEntry *);
 /*Use uint64_t to store miliseconds*/
 typedef uint64_t time_msec_t;
 #endif /* SQUID_TYPEDEFS_H */
+
index 39da5ec9267d595f058b59cbed34f0e680c3a645..f4d5e1d2d0d57bcc5dad7883c5e3807ce9d8d429 100644 (file)
@@ -174,3 +174,4 @@ main(int argc, char *argv[])
         return 1;
     }
 }
+
index 20d5f992101cb44536f8edc7250cd4b40422603c..e09a8b0e3bec8965cecbcbdb3f32ec50b8461b28 100644 (file)
@@ -251,3 +251,4 @@ unlinkdInit(void)
 
 }
 #endif /* USE_UNLINKD */
+
index d31beca578333dff3fe5fc4527af615bfe31a84b..a630cf017617010f281a0d19927455100fb99aaa 100644 (file)
@@ -28,3 +28,4 @@ inline void unlinkdUnlink(const char * path) { ::unlink(path); }
 #endif /* USE_UNLINKD */
 
 #endif /* SQUID_UNLINKD_H_ */
+
index 4e3874ff73e6eb3665eb229c54cc9876a33a02db..6e662df7e056e478bc65ccb24b8d4b5b38deadea 100644 (file)
@@ -71,3 +71,4 @@ main(int argc, char *argv[])
 
     return 0;
 }
+
index 3f62013b3b273b8ecc1200947763997d09cf636d..04766695ab9f88cc59b2b9a65135838593f3d536 100644 (file)
@@ -956,3 +956,4 @@ URLHostName::extract(char const *aUrl)
 
     return Host;
 }
+
index dc741c82e1a5805e2e1e390ff5f1e8824f5c1705..c15a8e494020ab7c0a52187f2c0754e68c036074 100644 (file)
@@ -26,7 +26,7 @@
 #include "URL.h"
 #include "urn.h"
 
-#define        URN_REQBUF_SZ   4096
+#define URN_REQBUF_SZ   4096
 
 class UrnState : public StoreClient
 {
@@ -353,7 +353,7 @@ urnHandleReply(void *data, StoreIOBuffer result)
 
     debugs(53, 3, "urnFindMinRtt: Counted " << i << " URLs");
 
-    if (urls == NULL) {                /* unkown URN error */
+    if (urls == NULL) {     /* unkown URN error */
         debugs(52, 3, "urnTranslateDone: unknown URN " << e->url());
         err = new ErrorState(ERR_URN_RESOLVE, Http::scNotFound, urnState->request.getRaw());
         err->url = xstrdup(e->url());
@@ -474,3 +474,4 @@ urnParseReply(const char *inbuf, const HttpRequestMethod& m)
     debugs(52, 3, "urnParseReply: Found " << i << " URLs");
     return list;
 }
+
index ee3a7c3bb66e067c8cc060eb892131a9be4edf6f..adeb5b738a7e1d7cd40c2d6d583fa211e802bf38 100644 (file)
--- a/src/urn.h
+++ b/src/urn.h
@@ -17,3 +17,4 @@ class StoreEntry;
 void urnStart(HttpRequest *, StoreEntry *);
 
 #endif /* SQUID_URN_H_ */
+
index 8aefa8a562eb2fcbd0d32f0ab9a591adf5589a12..9feb9f5ccb014a51837d51e5cf8c43345191ae5d 100644 (file)
@@ -361,3 +361,4 @@ wccpAssignBuckets(void)
 }
 
 #endif /* USE_WCCP */
+
index 342350647e115654ca43128ca9479f30895e7203..dbb5915003ad6d8da142ad2bafac1e48bf1d33ab 100644 (file)
@@ -18,3 +18,4 @@ void wccpConnectionClose(void);
 #endif /* USE_WCCP */
 
 #endif /* SQUID_WCCP_H_ */
+
index c20608ea843147ae66f164e576b674cf759af7fa..c82cd9b0404a720e3cc370812143f89095a759fd 100644 (file)
@@ -41,15 +41,15 @@ static EVH wccp2AssignBuckets;
 
 /* KDW WCCP V2 */
 
-#define WCCP2_HASH_ASSIGNMENT          0x00
-#define WCCP2_MASK_ASSIGNMENT          0x01
+#define WCCP2_HASH_ASSIGNMENT       0x00
+#define WCCP2_MASK_ASSIGNMENT       0x01
 
-#define        WCCP2_NONE_SECURITY_LEN 0
-#define        WCCP2_MD5_SECURITY_LEN  SQUID_MD5_DIGEST_LENGTH // 16
+#define WCCP2_NONE_SECURITY_LEN 0
+#define WCCP2_MD5_SECURITY_LEN  SQUID_MD5_DIGEST_LENGTH // 16
 
 /* Useful defines */
-#define        WCCP2_NUMPORTS  8
-#define        WCCP2_PASSWORD_LEN      8
+#define WCCP2_NUMPORTS  8
+#define WCCP2_PASSWORD_LEN  8
 
 /* WCCPv2 Pakcet format structures */
 /* Defined in draft-wilson-wccp-v2-12-oct-2001.txt */
@@ -63,18 +63,18 @@ struct wccp2_item_header_t {
 };
 
 /* item type values */
-#define WCCP2_SECURITY_INFO            0
-#define WCCP2_SERVICE_INFO             1
-#define WCCP2_ROUTER_ID_INFO           2
-#define WCCP2_WC_ID_INFO               3
-#define WCCP2_RTR_VIEW_INFO            4
-#define WCCP2_WC_VIEW_INFO             5
-#define WCCP2_REDIRECT_ASSIGNMENT      6
-#define WCCP2_QUERY_INFO               7
-#define WCCP2_CAPABILITY_INFO          8
-#define WCCP2_ALT_ASSIGNMENT           13
-#define WCCP2_ASSIGN_MAP               14
-#define WCCP2_COMMAND_EXTENSION                15
+#define WCCP2_SECURITY_INFO     0
+#define WCCP2_SERVICE_INFO      1
+#define WCCP2_ROUTER_ID_INFO        2
+#define WCCP2_WC_ID_INFO        3
+#define WCCP2_RTR_VIEW_INFO     4
+#define WCCP2_WC_VIEW_INFO      5
+#define WCCP2_REDIRECT_ASSIGNMENT   6
+#define WCCP2_QUERY_INFO        7
+#define WCCP2_CAPABILITY_INFO       8
+#define WCCP2_ALT_ASSIGNMENT        13
+#define WCCP2_ASSIGN_MAP        14
+#define WCCP2_COMMAND_EXTENSION     15
 
 /** \interface WCCPv2_Protocol
  * Sect 5.5  WCCP Message Header
@@ -106,8 +106,8 @@ struct wccp2_security_none_t {
 };
 
 /* security options */
-#define WCCP2_NO_SECURITY              0
-#define WCCP2_MD5_SECURITY             1
+#define WCCP2_NO_SECURITY       0
+#define WCCP2_MD5_SECURITY      1
 
 /** \interface WCCPv2_Protocol
  * Sect 5.6.1 Security Info Component
@@ -145,23 +145,23 @@ struct wccp2_service_info_t {
     uint16_t port7;
 };
 /* services */
-#define WCCP2_SERVICE_STANDARD         0
-#define WCCP2_SERVICE_DYNAMIC          1
+#define WCCP2_SERVICE_STANDARD      0
+#define WCCP2_SERVICE_DYNAMIC       1
 
 /* service IDs */
-#define WCCP2_SERVICE_ID_HTTP          0x00
+#define WCCP2_SERVICE_ID_HTTP       0x00
 
 /* service flags */
-#define WCCP2_SERVICE_SRC_IP_HASH      0x1
-#define WCCP2_SERVICE_DST_IP_HASH      0x2
-#define WCCP2_SERVICE_SRC_PORT_HASH    0x4
-#define WCCP2_SERVICE_DST_PORT_HASH    0x8
-#define WCCP2_SERVICE_PORTS_DEFINED    0x10
-#define WCCP2_SERVICE_PORTS_SOURCE     0x20
-#define WCCP2_SERVICE_SRC_IP_ALT_HASH  0x100
-#define WCCP2_SERVICE_DST_IP_ALT_HASH  0x200
-#define WCCP2_SERVICE_SRC_PORT_ALT_HASH        0x400
-#define WCCP2_SERVICE_DST_PORT_ALT_HASH        0x800
+#define WCCP2_SERVICE_SRC_IP_HASH   0x1
+#define WCCP2_SERVICE_DST_IP_HASH   0x2
+#define WCCP2_SERVICE_SRC_PORT_HASH 0x4
+#define WCCP2_SERVICE_DST_PORT_HASH 0x8
+#define WCCP2_SERVICE_PORTS_DEFINED 0x10
+#define WCCP2_SERVICE_PORTS_SOURCE  0x20
+#define WCCP2_SERVICE_SRC_IP_ALT_HASH   0x100
+#define WCCP2_SERVICE_DST_IP_ALT_HASH   0x200
+#define WCCP2_SERVICE_SRC_PORT_ALT_HASH 0x400
+#define WCCP2_SERVICE_DST_PORT_ALT_HASH 0x800
 
 /* TODO the following structures need to be re-defined for correct full operation.
  wccp2_cache_identity_element needs to be merged as a sub-struct of
@@ -300,24 +300,24 @@ struct wccp2_capability_element_t {
 static struct wccp2_capability_element_t wccp2_capability_element;
 
 /* capability types */
-#define WCCP2_CAPABILITY_FORWARDING_METHOD     0x01
-#define WCCP2_CAPABILITY_ASSIGNMENT_METHOD     0x02
-#define WCCP2_CAPABILITY_RETURN_METHOD         0x03
+#define WCCP2_CAPABILITY_FORWARDING_METHOD  0x01
+#define WCCP2_CAPABILITY_ASSIGNMENT_METHOD  0x02
+#define WCCP2_CAPABILITY_RETURN_METHOD      0x03
 // 0x04 ?? - advertised by a 4507 (ios v15.1) Cisco switch
 // 0x05 ?? - advertised by a 4507 (ios v15.1) Cisco switch
 
 /* capability values */
-#define WCCP2_METHOD_GRE               0x00000001
-#define WCCP2_METHOD_L2                        0x00000002
+#define WCCP2_METHOD_GRE        0x00000001
+#define WCCP2_METHOD_L2         0x00000002
 /* when type=WCCP2_CAPABILITY_FORWARDING_METHOD */
-#define WCCP2_FORWARDING_METHOD_GRE    WCCP2_METHOD_GRE
-#define WCCP2_FORWARDING_METHOD_L2     WCCP2_METHOD_L2
+#define WCCP2_FORWARDING_METHOD_GRE WCCP2_METHOD_GRE
+#define WCCP2_FORWARDING_METHOD_L2  WCCP2_METHOD_L2
 /* when type=WCCP2_CAPABILITY_ASSIGNMENT_METHOD */
-#define WCCP2_ASSIGNMENT_METHOD_HASH   0x00000001
-#define WCCP2_ASSIGNMENT_METHOD_MASK   0x00000002
+#define WCCP2_ASSIGNMENT_METHOD_HASH    0x00000001
+#define WCCP2_ASSIGNMENT_METHOD_MASK    0x00000002
 /* when type=WCCP2_CAPABILITY_RETURN_METHOD */
-#define WCCP2_PACKET_RETURN_METHOD_GRE WCCP2_METHOD_GRE
-#define WCCP2_PACKET_RETURN_METHOD_L2  WCCP2_METHOD_L2
+#define WCCP2_PACKET_RETURN_METHOD_GRE  WCCP2_METHOD_GRE
+#define WCCP2_PACKET_RETURN_METHOD_L2   WCCP2_METHOD_L2
 
 /** \interface WCCPv2_Protocol
  * 5.7.8 Value Element
@@ -450,7 +450,7 @@ struct wccp2_service_list_t {
     size_t wccp_packet_size;
 
     struct wccp2_service_list_t *next;
-    char wccp_password[WCCP2_PASSWORD_LEN + 1];                /* hold the trailing C-string NUL */
+    char wccp_password[WCCP2_PASSWORD_LEN + 1];     /* hold the trailing C-string NUL */
     uint32_t wccp2_security_type;
 };
 
@@ -1246,7 +1246,7 @@ wccp2HandleUdp(int sock, void *not_used)
             router_capability_header = (struct wccp2_capability_info_header_t *) &wccp2_i_see_you.data[offset];
             break;
 
-            /* Nothing to do for the types below */
+        /* Nothing to do for the types below */
 
         case WCCP2_ASSIGN_MAP:
         case WCCP2_REDIRECT_ASSIGNMENT:
@@ -2264,7 +2264,7 @@ parse_wccp2_service_info(void *v)
     int service_id = 0;
     int flags = 0;
     int portlist[WCCP2_NUMPORTS];
-    int protocol = -1;         /* IPPROTO_TCP | IPPROTO_UDP */
+    int protocol = -1;      /* IPPROTO_TCP | IPPROTO_UDP */
 
     struct wccp2_service_list_t *srv;
     int priority = -1;
@@ -2513,3 +2513,4 @@ free_wccp2_service_info(void *v)
 {}
 
 #endif /* USE_WCCPv2 */
+
index e228aceb9d27cdb5d21492dd9e7953360b95488c..05dcbb74b988d48a33a17d32790bdbaab4dcf463 100644 (file)
@@ -39,3 +39,4 @@ void dump_wccp2_service_info(StoreEntry * e, const char *label, void *v);
 #endif /* USE_WCCPv2 */
 
 #endif /* WCCP2_H_ */
+
index 7cd4802b16d34a32516f36f3e7b5b775238b2c75..bebea5be0b416e77689e6dd749fad740e755fb89 100644 (file)
@@ -35,7 +35,7 @@ public:
     StoreEntry *entry;
     HttpRequest::Pointer request;
     FwdState::Pointer fwd;
-    char buf[BUFSIZ+1];                /* readReply adds terminating NULL */
+    char buf[BUFSIZ+1];     /* readReply adds terminating NULL */
     bool dataWritten;
 };
 
@@ -175,3 +175,4 @@ whoisClose(const CommCloseCbParams &params)
     p->entry->unlock("whoisClose");
     delete p;
 }
+
index 9edbacbc5e01f3886828a43b939607b39961685d..8dcb091026534ec7c4cfcb0e0dd65fd631ff4d16 100644 (file)
@@ -20,3 +20,4 @@
 void whoisStart(FwdState *);
 
 #endif /* SQUID_WHOIS_H_ */
+
index 7d68a2b8ae31725d797f44c4ef983255dbd169a4..d5dccd26431dfe6250f71ca6872ac4d7353cd450 100644 (file)
@@ -80,3 +80,4 @@ void WIN32_ExceptionHandlerCleanup()
 }
 
 #endif /* SQUID_WINDOWS_ */
+
index 01f22d00fd58a3bd53fc8806f4992b81639f68cd..66ed6f578e1efc7d25337da7cbb60a1813838e20 100644 (file)
@@ -21,3 +21,4 @@ DWORD WIN32_IpAddrChangeMonitorInit();
 #endif
 
 #endif /* SQUID_WIN32_H_ */
+
index 85bcab1a5f0a36fca2bddeb8ac68b58804f1e4db..ccd8fbef54d26eb8617c74cc6669fce87fb3ec44 100644 (file)
@@ -97,3 +97,4 @@ ToSBufList(wordlist *wl)
     }
     return rv;
 }
+
index 302d2081c9927fbdbb49a1e819d5e7b54a56596a..730a9799d34977134b19b832b7c3bb338da32c27 100644 (file)
@@ -62,3 +62,4 @@ void wordlistDestroy(wordlist **);
 SBufList ToSBufList(wordlist *);
 
 #endif /* SQUID_WORDLIST_H */
+
index 36979d5ddb25e2361e19b755bf32fc1fd05d1ab2..e8129e504985a5ee321051c09c53e5f69ddd56f9 100644 (file)
@@ -21,7 +21,7 @@ main ()
         "!('a'<='c')",
         "(1==1)|('abc'=='def')",
         "(4!=5)&(4==5)",
-        "(1==1)|(2==3)&(3==4)",        /* should be true because of precedence */
+        "(1==1)|(2==3)&(3==4)", /* should be true because of precedence */
         "(1 & 4)",
         "(\"abc\" | \"edf\")", "1==1==1",
         "!('')",
@@ -55,3 +55,4 @@ main ()
 
     return 0;
 }
+
index ea95a098323d0b860b3ff8b8a0614e64cef26eb4..412ed9ca76303e1f9f11d7a1e99d37b11c7febda 100644 (file)
@@ -115,3 +115,4 @@ main(int argc, char **argv)
     assert (ChildVirtual::Calls.deletes() == 1);
     return 0;
 }
+
index f934de54f892131a61dd265958dc78debc359191..bebc277ecafaafcb51c631c7a32546f43f8855ef 100644 (file)
@@ -63,3 +63,4 @@ main(int argc, char **argv)
     debugs(1, DBG_IMPORTANT,streamPointer->getAnInt() << " " << aStreamObject.getACString());
     return 0;
 }
+
index a9ddfec93934423eb9f22c8c3ef899181673aae1..74cb99afd93429ee184ce95ed26211b727f86501 100644 (file)
@@ -76,8 +76,8 @@ hash_string(const void *data, unsigned int size)
  * This came from ejb's hsearch.
  */
 
-#define PRIME1         37
-#define PRIME2         1048583
+#define PRIME1      37
+#define PRIME2      1048583
 
 /* Hash function from Chris Torek. */
 unsigned int
@@ -99,25 +99,25 @@ hash4(const void *data, unsigned int size)
     case 0:
         do {
             HASH4;
-            /* FALLTHROUGH */
+        /* FALLTHROUGH */
         case 7:
             HASH4;
-            /* FALLTHROUGH */
+        /* FALLTHROUGH */
         case 6:
             HASH4;
-            /* FALLTHROUGH */
+        /* FALLTHROUGH */
         case 5:
             HASH4;
-            /* FALLTHROUGH */
+        /* FALLTHROUGH */
         case 4:
             HASH4;
-            /* FALLTHROUGH */
+        /* FALLTHROUGH */
         case 3:
             HASH4;
-            /* FALLTHROUGH */
+        /* FALLTHROUGH */
         case 2:
             HASH4;
-            /* FALLTHROUGH */
+        /* FALLTHROUGH */
         case 1:
             HASH4;
         } while (--loop);
@@ -240,7 +240,7 @@ hash_next(hash_table * hid)
     if (hid->current_ptr != NULL) {
         hid->current_ptr = hid->current_ptr->next;
         if (hid->current_ptr != NULL)
-            return (hid->current_ptr); /* next item */
+            return (hid->current_ptr);  /* next item */
     }
     /* find next bucket */
     for (i = hid->current_slot + 1; i < hid->size; i++) {
@@ -248,7 +248,7 @@ hash_next(hash_table * hid)
         if (hid->buckets[i] != NULL)
             return (hid->current_ptr = hid->buckets[i]);
     }
-    return NULL;               /* end of list */
+    return NULL;        /* end of list */
 }
 
 int
@@ -275,10 +275,10 @@ hash_unlink(hash_table * hid, hash_link * hl, int FreeLink)
     for (prev = NULL, walker = hid->buckets[i];
             walker != NULL; prev = walker, walker = walker->next) {
         if (walker == hl) {
-            if (prev == NULL) {        /* it's the head */
+            if (prev == NULL) { /* it's the head */
                 hid->buckets[i] = walker->next;
             } else {
-                prev->next = walker->next;     /* skip it */
+                prev->next = walker->next;  /* skip it */
             }
             /* fix walker state if needed */
             if (walker == hid->current_ptr)
@@ -386,3 +386,4 @@ main(void)
     exit(0);
 }
 #endif
+
index 9a957dc19d280094abaf91bccd615da7d6ad3a16..c92aaba8465bc787ad903b22d1ce3b4179da801e 100644 (file)
@@ -31,8 +31,8 @@ extern "C" {
 
     extern int hash_links_allocated;
     /* AYJ: defined by globals.h */
-//extern int store_hash_buckets;       /* 0 */
-//extern hash_table *store_table;      /* NULL */
+//extern int store_hash_buckets;    /* 0 */
+//extern hash_table *store_table;   /* NULL */
     extern hash_table *hash_create(HASHCMP *, int, HASHHASH *);
     extern void hash_insert(hash_table *, const char *, void *);
     extern int hash_delete(hash_table *, const char *);
@@ -50,3 +50,4 @@ extern "C" {
     HASHHASH hash4;
 
 }
+
index 3635fb4cf2731e5a4bf8cba5a98c8de68c9f93c0..4fe2817ede655bf47eaedf358992ab5eec1a454b 100644 (file)
@@ -110,3 +110,4 @@ main(int argc, char **argv)
     assert (mem_node::InUseCount() == 0);
     return 0;
 }
+
index 26cc5c6486c1496e11bdcdf83e67e582e973b436..f5f1d052c1aa807d3169998ef3ad94e38f84459d 100644 (file)
@@ -59,3 +59,4 @@ main(int argc, char **argv)
     assert (mem_node::InUseCount() == 0);
     return 0;
 }
+
index 8335b683acbd43ea7f5bda7f82220ea416460d12..0c29021d8223f661fbf04ec3e138f9c41d87a135 100644 (file)
@@ -134,14 +134,14 @@ main(int argc, char **argv)
 #ifdef WITH_LIB
     sizeToPoolInit();
 #endif
-    mem_table = hash_create(ptrcmp, 229, hash4);       /* small hash table */
+    mem_table = hash_create(ptrcmp, 229, hash4);    /* small hash table */
     init_stats();
     while (fgets(mbuf, 256, fp) != NULL) {
         if (run_stats > 0 && (++a) % run_stats == 0)
             print_stats();
         p = NULL;
         switch (mbuf[0]) {
-        case 'm':              /* malloc */
+        case 'm':       /* malloc */
             p = strtok(&mbuf[2], ":");
             if (!p)
                 badformat();
@@ -153,12 +153,12 @@ main(int argc, char **argv)
             strcpy(mi->orig_ptr, p);
             mi->size = size;
             size2id(size, mi);
-            mi->my_ptr = xmemAlloc(mi);                /* (void *)xmalloc(size); */
+            mi->my_ptr = xmemAlloc(mi);     /* (void *)xmalloc(size); */
             assert(mi->my_ptr);
             my_hash_insert(mem_table, mi->orig_ptr, mi);
             mstat.mallocs++;
             break;
-        case 'c':              /* calloc */
+        case 'c':       /* calloc */
             p = strtok(&mbuf[2], ":");
             if (!p)
                 badformat();
@@ -174,7 +174,7 @@ main(int argc, char **argv)
             strcpy(mi->orig_ptr, p);
             size2id(size, mi);
             mi->size = amt * size;
-            mi->my_ptr = xmemAlloc(mi);                /*(void *)xmalloc(amt*size); */
+            mi->my_ptr = xmemAlloc(mi);     /*(void *)xmalloc(amt*size); */
             assert(mi->my_ptr);
             my_hash_insert(mem_table, mi->orig_ptr, mi);
             mstat.callocs++;
@@ -195,13 +195,13 @@ main(int argc, char **argv)
             mi = (memitem *) (mem_entry->item);
             assert(mi->pool);
             assert(mi->my_ptr);
-            xmemFree(mi);      /* xfree(mi->my_ptr); */
-            size2id(atoi(p), mi);      /* we don't need it here I guess? */
+            xmemFree(mi);   /* xfree(mi->my_ptr); */
+            size2id(atoi(p), mi);   /* we don't need it here I guess? */
             strcpy(mi->orig_ptr, abuf);
             p = strtok(NULL, "\n");
             if (!p)
                 badformat();
-            mi->my_ptr = xmemAlloc(mi);                /* (char *)xmalloc(atoi(p)); */
+            mi->my_ptr = xmemAlloc(mi);     /* (char *)xmalloc(atoi(p)); */
             assert(mi->my_ptr);
             mstat.reallocs++;
             break;
@@ -216,7 +216,7 @@ main(int argc, char **argv)
             mi = (memitem *) (mem_entry->item);
             assert(mi->pool);
             assert(mi->my_ptr);
-            xmemFree(mi);      /* xfree(mi->my_ptr); */
+            xmemFree(mi);   /* xfree(mi->my_ptr); */
             hash_unlink(mem_table, mem_entry, 1);
             free(mi);
             mstat.frees++;
@@ -295,7 +295,7 @@ badformat()
 const char *
 make_nam(int id, int size)
 {
-    const char *buf = malloc(30);      /* argh */
+    const char *buf = malloc(30);   /* argh */
     snprintf((char *)buf, sizeof(buf)-1, "pl:%d/%d", id, size);
     return buf;
 }
@@ -342,3 +342,4 @@ my_free(char *file, int line, void *ptr)
     fprintf(stderr, "}\n");
 #endif
 }
+
index f7d4b82cc543df8daf958f355b2a20ecd5623799..e0e49f1115bd97229181b645e85c030e99911a3e 100644 (file)
@@ -360,7 +360,7 @@ handle_read(char *inbuf, int len)
                 memcpy(buf, r->reply_hdrs + r->hdr_length, blen);
                 len += blen;
             }
-            r->reply_hdrs[r->hdr_length] = '\0';       /* Null terminate headers */
+            r->reply_hdrs[r->hdr_length] = '\0';    /* Null terminate headers */
             /* Parse headers */
             r->content_length = get_header_int_value("content-length:", r->reply_hdrs, end);
             /*          fprintf(stderr, "CONTENT_LENGTH = %d\n", r->content_length); */
@@ -384,7 +384,7 @@ handle_read(char *inbuf, int len)
                 assert(bytes_left >= 0);
                 bytes_used = len < bytes_left ? len : bytes_left;
             } else {
-                bytes_left = len + 1;  /* Unknown end... */
+                bytes_left = len + 1;   /* Unknown end... */
                 bytes_used = len;
             }
             if (opt_checksum) {
@@ -599,3 +599,4 @@ char *argv[];
     main_loop();
     return 0;
 }
+
index 573946347efb28c372e80123c90dd685ebcac4de..e7c9a5051e0f2938a7af7230906f0658181fe735 100644 (file)
@@ -282,3 +282,4 @@ main(int argc, char *argv[])
 
     return 0;
 }
+
index fa1f2f91cad16216d8e98974e3690480ee72b6e6..a68d43f8c713b2707f3eaac5975eea658b15f029 100644 (file)
@@ -157,3 +157,4 @@ main(int argc, char **argv)
     CheckSyntheticWorks();
     return 0;
 }
+
index b0373b9b83026cf7e02bb64cb888d1d6b9509074..0d2853406de75f384d8069cce80f1f7205204926 100644 (file)
@@ -259,7 +259,7 @@ void
 reply_done(int fd, void *data)
 {
     struct _request *r = data;
-    if (opt_range);            /* skip size checks for now */
+    if (opt_range);     /* skip size checks for now */
     else if (strcmp(r->method, "HEAD") == 0);
     else if (r->bodysize != r->content_length && r->content_length >= 0)
         fprintf(stderr, "ERROR: %s got %d of %d bytes\n",
@@ -342,12 +342,12 @@ request(char *urlin) {
     if (size && strcmp(size, "-") != 0)
         r->validsize = atoi(size);
     else
-        r->validsize = -1;     /* Unknown */
+        r->validsize = -1;  /* Unknown */
     if (checksum && strcmp(checksum, "-") != 0)
         r->validsum = strtoul(checksum, NULL, 0);
     if (status)
         r->validstatus = atoi(status);
-    r->content_length = -1;    /* Unknown */
+    r->content_length = -1; /* Unknown */
     if (opt_accel) {
         host = strchr(url, '/') + 2;
         url = strchr(host, '/');
@@ -595,3 +595,4 @@ char *argv[];
     printf("Exiting normally\n");
     return 0;
 }
+
index 60069d59b7dcb51a93102c41bfdddeae5ddb52db..094cbb31c45dc8720936636126562aec85bc823c 100644 (file)
@@ -227,7 +227,7 @@ create_a_thing(char *argv[])
     pwfd = c2p[1];
     if ((pid = fork()) < 0)
         abort();
-    if (pid > 0) {             /* parent */
+    if (pid > 0) {      /* parent */
         /* close shared socket with child */
         close(crfd);
         close(cwfd);
@@ -384,3 +384,4 @@ main(int argc, char *argv[])
         close(i);
     sleep(1);
 }
+
index 648a32fdfd4be2c27fb9354411ae20cc83eb93cf..f1d9940fcc7ce2b00937b1687739272a8b679849 100644 (file)
@@ -102,3 +102,4 @@ dlinkDelete(dlink_node * m, dlink_list * list)
 
     m->next = m->prev = NULL;
 }
+
index fcbe6af8a3966087bb91f5917c094f6bc728236a..564e0ceaef07d79e49931ad8e70a27d120d48828 100644 (file)
@@ -33,3 +33,4 @@ main(int argc, char *argv[])
     select(1, NULL, NULL, NULL, &to);
     return 0;
 }
+
index c77df831efef14f86310045f2ad808383e5c3490..2073d5c0d8b85455657343c46d95e4d97714bc63 100644 (file)
@@ -101,7 +101,7 @@ typedef struct {
 /*
  * Static variables and constants
  */
-static const time_t passwd_ttl = 60 * 60 * 3;  /* in sec */
+static const time_t passwd_ttl = 60 * 60 * 3;   /* in sec */
 static const char *script_name = "/cgi-bin/cachemgr.cgi";
 static const char *progname = NULL;
 static time_t now;
@@ -638,23 +638,23 @@ read_reply(int s, cachemgr_request * req)
 
             if (status == 401 || status == 407) {
                 reset_auth(req);
-                status = 403;  /* Forbiden, see comments in case isForward: */
+                status = 403;   /* Forbiden, see comments in case isForward: */
             }
 
             /* this is a way to pass HTTP status to the Web server */
             if (statusStr)
-                printf("Status: %d %s", status, statusStr);    /* statusStr has '\n' */
+                printf("Status: %d %s", status, statusStr); /* statusStr has '\n' */
 
             break;
 
         case isHeaders:
             /* forward header field */
-            if (!strcmp(buf, "\r\n")) {                /* end of headers */
-                fputs("Content-Type: text/html\r\n", stdout);  /* add our type */
+            if (!strcmp(buf, "\r\n")) {     /* end of headers */
+                fputs("Content-Type: text/html\r\n", stdout);   /* add our type */
                 istate = isBodyStart;
             }
 
-            if (strncasecmp(buf, "Content-Type:", 13)) /* filter out their type */
+            if (strncasecmp(buf, "Content-Type:", 13))  /* filter out their type */
                 fputs(buf, stdout);
 
             break;
@@ -680,7 +680,7 @@ read_reply(int s, cachemgr_request * req)
             }
 
             istate = isActions;
-            /* yes, fall through, we do not want to loose the first line */
+        /* yes, fall through, we do not want to loose the first line */
 
         case isActions:
             if (strncmp(buf, "action:", 7) == 0) {
@@ -696,7 +696,7 @@ read_reply(int s, cachemgr_request * req)
             }
 
             istate = isBody;
-            /* yes, fall through, we do not want to loose the first line */
+        /* yes, fall through, we do not want to loose the first line */
 
         case isBody:
             /* interpret [and reformat] cache response */
@@ -715,7 +715,7 @@ read_reply(int s, cachemgr_request * req)
              * 401 to .cgi because web server filters out all auth info. Thus we
              * disable authentication headers for now.
              */
-            if (!strncasecmp(buf, "WWW-Authenticate:", 17) || !strncasecmp(buf, "Proxy-Authenticate:", 19));   /* skip */
+            if (!strncasecmp(buf, "WWW-Authenticate:", 17) || !strncasecmp(buf, "Proxy-Authenticate:", 19));    /* skip */
             else
                 fputs(buf, stdout);
 
@@ -842,7 +842,7 @@ process_request(cachemgr_request * req)
                  "GET cache_object://%s/%s%s%s HTTP/1.0\r\n"
                  "User-Agent: cachemgr.cgi/%s\r\n"
                  "Accept: */*\r\n"
-                 "%s"                  /* Authentication info or nothing */
+                 "%s"           /* Authentication info or nothing */
                  "\r\n",
                  req->hostname,
                  req->action,
@@ -1271,3 +1271,4 @@ check_target_acl(const char *hostname, int port)
     fclose(fp);
     return ret;
 }
+
index ea6d36c9c0112d1125e99a0c0fd8a1e726ff504a..7cb16c57a6d7831273ef85885bb8b162cb0d451c 100644 (file)
@@ -184,3 +184,4 @@ readConfigFile( CacheDirVector& cachedir, const char* fn, FILE* debug )
     regfree(&rexp);
     return cachedir.size();
 }
+
index d019ae8ccacc3e80ca7125a5c17bb12f9b32457c..70064b648fc042ceabba0090badc5837d55feda2 100644 (file)
@@ -156,3 +156,4 @@ convertPortname( const char* port, unsigned short& dst )
     }
     return 0;
 }
+
index 9902ac2ebdbe8fd7e60210a151f7abe24b1e33b5..7d792c30c6d051837c50118824affd4c72598ec6 100644 (file)
@@ -278,3 +278,4 @@ copy_out( size_t filesize, size_t metasize, unsigned debug,
 
     BAUTZ(true);
 }
+
index ff1c8fb3db889e706c88a895401b5917d934e0e4..e73f9aa10ec902da38dda9c8141914069483af92 100644 (file)
@@ -163,7 +163,7 @@ struct REList {
 };
 
 REList::REList( const char* what, bool doCase )
-        :next(0),data(xstrdup(what))
+    :next(0),data(xstrdup(what))
 {
     int result = regcomp( &rexp, what,
                           REG_EXTENDED | REG_NOSUB | (doCase ? 0 : REG_ICASE) );
@@ -312,10 +312,10 @@ action( int fd, size_t metasize,
         const char* fn, const char* url, const SquidMetaList& meta )
 // purpose: if cmdline-requested, send the purge request to the cache
 // paramtr: fd (IN): open FD for the object file
-//           metasize (IN): offset into data portion of file (meta data size)
+//        metasize (IN): offset into data portion of file (meta data size)
 //          fn (IN): name of the object file
 //          url (IN): URL string stored in the object file
-//           meta (IN): list containing further meta data
+//        meta (IN): list containing further meta data
 // returns: true for a successful action, false otherwise. The action
 //          may just print the file, send the purge request or even
 //          remove unwanted files.
@@ -994,3 +994,4 @@ main( int argc, char* argv[] )
     delete list;
     return 0;
 }
+
index 77038639ae5954748034ec7ecb864ab55e53ccfb..54350f7664515fd804060d57cd0f8039d1433d01 100644 (file)
@@ -133,3 +133,4 @@ sigChild( int signo )
     return 0;
 #endif
 }
+
index 352075a5e8c6aee8149f7d29998f2e304d101d87..1ab37a5835023abffb2fb7d4f01d86f4834718ad 100644 (file)
@@ -255,3 +255,4 @@ serverSocket( struct in_addr host, unsigned short port,
 
     return sockfd;
 }
+
index b1953b4720c95d3748e0817fd510764cd1a996ab..b0c320fed9ff903abfca21b89643d5cf565ac830 100644 (file)
@@ -44,7 +44,7 @@
 #include "squid-tlv.hh"
 
 SquidTLV::SquidTLV( SquidMetaType _type, size_t _size, void* _data )
-        :next(0),size(_size)
+    :next(0),size(_size)
 {
     type = _type;
     data = (char*) _data;
@@ -81,3 +81,4 @@ SquidMetaList::search( SquidMetaType type ) const
     while ( temp && temp->type != type ) temp = temp->next;
     return temp;
 }
+
index e597fb3ae803f206a8a44152f59804d3174f7969..35cd336aa34aeb906ca4a7220098bcf729aa510c 100644 (file)
@@ -35,3 +35,4 @@ public:
 extern Parameters scParams;
 
 #endif /* _SQUID_TOOLS_SQUIDCLIENT_PARAMETERS_H */
+
index 01f235c6f57a2421a38b22a9ea4e117b2ff5ec2b..fb9e3aa95180b5bdcd1a97543f30e5ffa751b096 100644 (file)
@@ -214,3 +214,4 @@ Ping::TheConfig::parseCommandOpts(int argc, char *argv[], int c, int &optIndex)
     opterr = saved_opterr;
     return false;
 }
+
index 7e7ccdf9a3d2c0057bb68ce55ce5c0b11f9fb422..d853ba4e427ba0f8f2a598406c8710bb92208073 100644 (file)
@@ -60,3 +60,4 @@ void DisplayStats();
 } // namespace Ping
 
 #endif /* _SQUID_TOOLS_CLIENT_PING_H */
+
index ac18f8fa6b5d0facbaf6844964a443e6914dd1bb..5b821ac834349c8678bc26e97b985e5d06cf1ce0 100644 (file)
@@ -506,3 +506,4 @@ Transport::ShutdownTls()
     Config.tlsEnabled = false;
 #endif
 }
+
index 7bc08dc8519afa22b00bd9bf7b05fd16441d48ca..33cba7a62b3dfd3d3c707a32185db28014f64d15 100644 (file)
@@ -25,11 +25,11 @@ class TheConfig
 {
 public:
     TheConfig() :
-            ioTimeout(120),
-            localHost(NULL),
-            port(CACHE_HTTP_PORT),
-            tlsEnabled(false),
-            tlsAnonymous(false) {
+        ioTimeout(120),
+        localHost(NULL),
+        port(CACHE_HTTP_PORT),
+        tlsEnabled(false),
+        tlsAnonymous(false) {
         params = "NORMAL";
         hostname = "localhost";
     }
@@ -118,3 +118,4 @@ ssize_t Read(void *buf, size_t len);
 } // namespace Transport
 
 #endif /* SQUID_TOOLS_SQUIDCLIENT_TRANSPORT_H */
+
index 3733f9193e9d46dc3a1e994c813868915a7f049b..5498bb7885d6572374b619fe68dcd35d9a72d746 100644 (file)
@@ -146,3 +146,4 @@ GSSAPI_token(const char *server)
 }
 
 #endif /* HAVE_GSSAPI */
+
index 46d65d97cfdae7d338587c00b3a93c3ca0e5d0c8..2ca803ffbe8b25a15b85cb4f3d306beed1696d52 100644 (file)
@@ -47,3 +47,4 @@ char *GSSAPI_token(const char *server);
 
 #endif /* HAVE_GSSAPI */
 #endif /* _SQUID_TOOLS_SQUIDCLIENT_GSSAPI_H */
+
index db62555cb6302f0963602e6919569c1327e7b17c..0f72bd8604bd2aff94e78f8acecd0283cc2be1c1 100644 (file)
@@ -52,13 +52,13 @@ using namespace Squid;
 #endif
 
 #ifndef BUFSIZ
-#define BUFSIZ         8192
+#define BUFSIZ      8192
 #endif
 #ifndef MESSAGELEN
-#define MESSAGELEN     65536
+#define MESSAGELEN  65536
 #endif
 #ifndef HEADERLEN
-#define HEADERLEN      65536
+#define HEADERLEN   65536
 #endif
 
 /* Local functions */
@@ -98,37 +98,37 @@ usage(const char *progname)
               << "Usage: " << progname << " [Basic Options] [HTTP Options]" << std::endl
               << std::endl;
     std::cerr
-        << "    -s | --quiet    Silent.  Do not print response message to stdout." << std::endl
-        << "    -v | --verbose  Verbose debugging. Repeat (-vv) to increase output level." << std::endl
-        << "                    Levels:" << std::endl
-        << "                      1 - Print outgoing request message to stderr." << std::endl
-        << "                      2 - Print action trace to stderr." << std::endl
-        << "    --help          Display this help text." << std::endl
-        << std::endl;
+            << "    -s | --quiet    Silent.  Do not print response message to stdout." << std::endl
+            << "    -v | --verbose  Verbose debugging. Repeat (-vv) to increase output level." << std::endl
+            << "                    Levels:" << std::endl
+            << "                      1 - Print outgoing request message to stderr." << std::endl
+            << "                      2 - Print action trace to stderr." << std::endl
+            << "    --help          Display this help text." << std::endl
+            << std::endl;
     Transport::Config.usage();
     Ping::Config.usage();
     std::cerr
-        << "HTTP Options:" << std::endl
-        << "    -a           Do NOT include Accept: header." << std::endl
-        << "    -A           User-Agent: header. Use \"\" to omit." << std::endl
-        << "    -H 'string'  Extra headers to send. Use '\\n' for new lines." << std::endl
-        << "    -i IMS       If-Modified-Since time (in Epoch seconds)." << std::endl
-        << "    -j hosthdr   Host header content" << std::endl
-        << "    -k           Keep the connection active. Default is to do only one request then close." << std::endl
-        << "    -m method    Request method, default is GET." << std::endl
+            << "HTTP Options:" << std::endl
+            << "    -a           Do NOT include Accept: header." << std::endl
+            << "    -A           User-Agent: header. Use \"\" to omit." << std::endl
+            << "    -H 'string'  Extra headers to send. Use '\\n' for new lines." << std::endl
+            << "    -i IMS       If-Modified-Since time (in Epoch seconds)." << std::endl
+            << "    -j hosthdr   Host header content" << std::endl
+            << "    -k           Keep the connection active. Default is to do only one request then close." << std::endl
+            << "    -m method    Request method, default is GET." << std::endl
 #if HAVE_GSSAPI
-        << "    -n           Proxy Negotiate(Kerberos) authentication" << std::endl
-        << "    -N           WWW Negotiate(Kerberos) authentication" << std::endl
+            << "    -n           Proxy Negotiate(Kerberos) authentication" << std::endl
+            << "    -N           WWW Negotiate(Kerberos) authentication" << std::endl
 #endif
-        << "    -P file      Send content from the named file as request payload" << std::endl
-        << "    -r           Force cache to reload URL" << std::endl
-        << "    -t count     Trace count cache-hops" << std::endl
-        << "    -u user      Proxy authentication username" << std::endl
-        << "    -U user      WWW authentication username" << std::endl
-        << "    -V version   HTTP Version. Use '-' for HTTP/0.9 omitted case" << std::endl
-        << "    -w password  Proxy authentication password" << std::endl
-        << "    -W password  WWW authentication password" << std::endl
-        ;
+            << "    -P file      Send content from the named file as request payload" << std::endl
+            << "    -r           Force cache to reload URL" << std::endl
+            << "    -t count     Trace count cache-hops" << std::endl
+            << "    -u user      Proxy authentication username" << std::endl
+            << "    -U user      WWW authentication username" << std::endl
+            << "    -V version   HTTP Version. Use '-' for HTTP/0.9 omitted case" << std::endl
+            << "    -w password  Proxy authentication password" << std::endl
+            << "    -W password  WWW authentication password" << std::endl
+            ;
     exit(1);
 }
 
@@ -164,7 +164,7 @@ main(int argc, char *argv[])
 
     Ip::ProbeTransport(); // determine IPv4 or IPv6 capabilities before parsing.
     if (argc < 2 || argv[argc-1][0] == '-') {
-        usage(argv[0]);                /* need URL */
+        usage(argv[0]);     /* need URL */
     } else if (argc >= 2) {
         strncpy(url, argv[argc - 1], BUFSIZ);
         url[BUFSIZ - 1] = '\0';
@@ -196,9 +196,9 @@ main(int argc, char *argv[])
                 Ping::Config.parseCommandOpts(argc, argv, c, optIndex);
                 continue;
 
-            case 'h':          /* remote host */
-            case 'l':          /* local host */
-            case 'p':          /* port number */
+            case 'h':       /* remote host */
+            case 'l':       /* local host */
+            case 'p':       /* port number */
                 // rewind and let the Transport::Config parser handle
                 optind -= 2;
 
@@ -231,15 +231,15 @@ main(int argc, char *argv[])
                 version = optarg;
                 break;
 
-            case 's':          /* silent */
+            case 's':       /* silent */
                 to_stdout = false;
                 break;
 
-            case 'k':          /* backward compat */
+            case 'k':       /* backward compat */
                 keep_alive = 1;
                 break;
 
-            case 'r':          /* reload */
+            case 'r':       /* reload */
                 reload = true;
                 break;
 
@@ -247,7 +247,7 @@ main(int argc, char *argv[])
                 put_file = xstrdup(optarg);
                 break;
 
-            case 'i':          /* IMS */
+            case 'i':       /* IMS */
                 ims = (time_t) atoi(optarg);
                 break;
 
@@ -313,7 +313,7 @@ main(int argc, char *argv[])
                 debugVerbose(2, "verbosity level set to " << scParams.verbosityLevel);
                 break;
 
-            case '?':          /* usage */
+            case '?':       /* usage */
 
             default:
                 usage(argv[0]);
@@ -583,3 +583,4 @@ set_our_signal(void)
     signal(SIGPIPE, pipe_handler);
 #endif
 }
+