X-Git-Url: http://git.meshlink.io/?a=blobdiff_plain;f=src%2Fprotocol_subnet.c;h=c6c018744fb8a2da94af9fd8c5b3bad5bfe5d933;hb=5dde6461a321ee47b06e33f8203f2acf00a31a51;hp=eef7e37430f9d8d5e8f2c8c10f688d19ceedd737;hpb=c23fcf555ee4b69f03b76a0ffb731c3a475a77e7;p=meshlink diff --git a/src/protocol_subnet.c b/src/protocol_subnet.c index eef7e374..c6c01874 100644 --- a/src/protocol_subnet.c +++ b/src/protocol_subnet.c @@ -14,11 +14,9 @@ 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., 675 Mass Ave, Cambridge, MA 02139, USA. - - $Id$ + 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., + 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA. */ #include "system.h" @@ -34,8 +32,7 @@ #include "utils.h" #include "xalloc.h" -bool send_add_subnet(connection_t *c, const subnet_t *subnet) -{ +bool send_add_subnet(connection_t *c, const subnet_t *subnet) { char netstr[MAXNETSTR]; cp(); @@ -46,8 +43,7 @@ bool send_add_subnet(connection_t *c, const subnet_t *subnet) return send_request(c, "%d %x %s %s", ADD_SUBNET, rand(), subnet->owner->name, netstr); } -bool add_subnet_h(connection_t *c) -{ +bool add_subnet_h(connection_t *c) { char subnetstr[MAX_STRING_SIZE]; char name[MAX_STRING_SIZE]; node_t *owner; @@ -153,8 +149,7 @@ bool add_subnet_h(connection_t *c) return true; } -bool send_del_subnet(connection_t *c, const subnet_t *s) -{ +bool send_del_subnet(connection_t *c, const subnet_t *s) { char netstr[MAXNETSTR]; cp(); @@ -165,8 +160,7 @@ bool send_del_subnet(connection_t *c, const subnet_t *s) return send_request(c, "%d %x %s %s", DEL_SUBNET, rand(), s->owner->name, netstr); } -bool del_subnet_h(connection_t *c) -{ +bool del_subnet_h(connection_t *c) { char subnetstr[MAX_STRING_SIZE]; char name[MAX_STRING_SIZE]; node_t *owner;