1*22028508SToomas SoomeCopyright (c) 2010-2014, Salvatore Sanfilippo <antirez at gmail dot com> 2*22028508SToomas SoomeCopyright (c) 2010-2013, Pieter Noordhuis <pcnoordhuis at gmail dot com> 3*22028508SToomas Soome 4*22028508SToomas SoomeAll rights reserved. 5*22028508SToomas Soome 6*22028508SToomas SoomeRedistribution and use in source and binary forms, with or without 7*22028508SToomas Soomemodification, are permitted provided that the following conditions are met: 8*22028508SToomas Soome 9*22028508SToomas Soome* Redistributions of source code must retain the above copyright notice, 10*22028508SToomas Soome this list of conditions and the following disclaimer. 11*22028508SToomas Soome 12*22028508SToomas Soome* Redistributions in binary form must reproduce the above copyright notice, 13*22028508SToomas Soome this list of conditions and the following disclaimer in the documentation 14*22028508SToomas Soome and/or other materials provided with the distribution. 15*22028508SToomas Soome 16*22028508SToomas SoomeTHIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND 17*22028508SToomas SoomeANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED 18*22028508SToomas SoomeWARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE 19*22028508SToomas SoomeDISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE LIABLE FOR 20*22028508SToomas SoomeANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES 21*22028508SToomas Soome(INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; 22*22028508SToomas SoomeLOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON 23*22028508SToomas SoomeANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT 24*22028508SToomas Soome(INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS 25*22028508SToomas SoomeSOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. 26