1
0
mirror of https://github.com/samba-team/samba.git synced 2024-12-25 23:21:54 +03:00
samba-mirror/source4/lib/replace/inet_aton.c
Michael Adam 58dfb0ff3c libreplace: put inet_aton.c under LGPL instead of GPL.
Michael
(This used to be commit cca5d6626f)
2008-03-18 16:10:47 +01:00

34 lines
1.2 KiB
C

/*
* Unix SMB/CIFS implementation.
* replacement functions
* Copyright (C) Michael Adam <obnox@samba.org> 2008
*
* ** NOTE! The following LGPL license applies to the replace
* ** library. This does NOT imply that all of Samba is released
* ** under the LGPL
*
* This library is free software; you can redistribute it and/or
* modify it under the terms of the GNU Lesser General Public
* License as published by the Free Software Foundation; either
* version 3 of the License, or (at your option) any later version.
*
* This library 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
* Lesser General Public License for more details.
*
* You should have received a copy of the GNU Lesser General Public
* License along with this library; if not, see <http://www.gnu.org/licenses/>.
*/
#include "replace.h"
#include "system/network.h"
/**
* We know that we have inet_pton from earlier libreplace checks.
*/
int rep_inet_aton(const char *src, struct in_addr *dst)
{
return (inet_pton(AF_INET, src, dst) > 0) ? 1 : 0;
}