[hackers] [libixp] Make srv->wstat optional. || Kris Maglione

From: <hg_AT_suckless.org>
Date: Thu, 29 Oct 2009 23:59:31 +0000 (UTC)

changeset: 114:8dde838d46d3
tag: tip
user: Kris Maglione <kris_AT_suckless.org>
date: Thu Oct 29 19:57:09 2009 -0400
files: libixp/request.c
description:
Make srv->wstat optional.

Update issue #150
Status: Started
The second part of this issue shoule be resolved.

diff -r b2db246ea620 -r 8dde838d46d3 libixp/request.c
--- a/libixp/request.c Sun Oct 11 20:14:21 2009 -0400
+++ b/libixp/request.c Thu Oct 29 19:57:09 2009 -0400
@@ -337,6 +337,10 @@
                         respond(r, "wstat on DMDIR bit");
                         return;
                 }
+ if(!p9conn->srv->wstat) {
+ respond(r, Enofunc);
+ return;
+ }
                 p9conn->srv->wstat(r);
                 break;
         /* Still to be implemented: auth */
Received on Thu Oct 29 2009 - 23:59:31 UTC

This archive was generated by hypermail 2.2.0 : Fri Oct 30 2009 - 00:00:07 UTC