libpurple/protocols/zephyr/ZPending.c

Mon, 16 Sep 2019 20:27:43 -0400

author
Elliott Sales de Andrade <qulogic@pidgin.im>
date
Mon, 16 Sep 2019 20:27:43 -0400
changeset 39830
c6fc1928c22c
parent 31294
73607ab89c6f
child 40166
811f82db29dd
permissions
-rw-r--r--

zephyr: Remove unused defines and headers.

Probably more headers can be removed, but they contain many more symbols
to check.

/* This file is part of the Project Athena Zephyr Notification System.
 * It contains source for the ZPending 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"

int ZPending()
{
	int retval;

	if (ZGetFD() < 0) {
		errno = ZERR_NOPORT;
		return (-1);
	}

	if ((retval = Z_ReadEnqueue()) != ZERR_NONE) {
		errno = retval;
		return (-1);
	}

	return(ZQLength());
}

mercurial