Mercurial > pidgin
annotate libgaim/protocols/zephyr/ZClosePort.c @ 14458:cdc4ef325a23
[gaim-migrate @ 17172]
SF Patch #1547447 from Anders Kaseorg
Fixes SF Bug #1547383
"This patch fixes bug 1547383 (Zephyr does not correctly
escape @ character), and also makes both zephyr_to_html
and html_to_zephyr much more correct and robust"
For the record, I have no way of testing this, so I'm following the patches-to-Zephyr-that-compile-are-good approach.
committer: Tailor Script <tailor@pidgin.im>
author | Richard Laager <rlaager@wiktel.com> |
---|---|
date | Wed, 06 Sep 2006 00:46:00 +0000 |
parents | 60b1bc8dbf37 |
children |
rev | line source |
---|---|
14192 | 1 /* This file is part of the Project Athena Zephyr Notification System. |
2 * It contains source for the ZClosePort function. | |
3 * | |
4 * Created by: Robert French | |
5 * | |
6 * Copyright (c) 1987 by the Massachusetts Institute of Technology. | |
7 * For copying and distribution information, see the file | |
8 * "mit-copyright.h". | |
9 */ | |
10 | |
11 #include "internal.h" | |
12 | |
13 Code_t ZClosePort() | |
14 { | |
15 if (__Zephyr_fd >= 0 && __Zephyr_open) | |
16 (void) close(__Zephyr_fd); | |
17 | |
18 __Zephyr_fd = -1; | |
19 __Zephyr_open = 0; | |
20 | |
21 return (ZERR_NONE); | |
22 } |