libpurple/protocols/zephyr/ZSetDest.c

Fri, 11 Dec 2020 04:12:45 -0600

author
Elliott Sales de Andrade <quantum.analyst@gmail.com>
date
Fri, 11 Dec 2020 04:12:45 -0600
changeset 40643
1c9bdf8d3e85
parent 40624
6f7bbd42d36c
permissions
-rw-r--r--

Convert zephyr to gio

Remove `SO_BSDCOMPAT` which has been obsolete for 15+ years.
Remove unused `from` parameter in ZCheckAuthorization.
Make `zuid_addr` into its plain integral type, not `struct in_addr`.
Make `__HM_addr` into a `GSocketAddress`.
Use `GSocketAddress` for `Z_InputQ->from`.
Make `__My_addr` a `guint32` instead of `struct in_addr`.
Change `__Zephyr_port` into a `gint`.
Convert zephyr to `GSocket`.
Remove `hostaddr` argument to `ZhmStat`, as it's always `NULL`.
Use gio to determine self-address.
Use gio to print out bad packet information.
Cleanup remaining indents.

Testing Done:
compile only

Reviewed at https://reviews.imfreedom.org/r/261/

/* This file is part of the Project Athena Zephyr Notification System.
 * It contains source for the ZSetDestAddr function.
 *
 *	Created by:	Robert French
 *
 *	Copyright (c) 1987 by the Massachusetts Institute of Technology.
 *	For copying and distribution information, see the file
 *	"mit-copyright.h".
 */

#include "internal.h"

Code_t
ZSetDestAddr(GSocketAddress *addr)
{
	g_set_object(&__HM_addr, addr);

	return ZERR_NONE;
}

mercurial