From: oetiker Date: Sun, 12 Aug 2012 20:49:17 +0000 (+0000) Subject: openbsd does not know EPROTO it seems X-Git-Url: https://git.tokkee.org/?a=commitdiff_plain;h=7b95ac31c1645cba1de7abdf4ad725a1846debea;p=rrdtool-all.git openbsd does not know EPROTO it seems git-svn-id: svn://svn.oetiker.ch/rrdtool/branches/1.4@2298 a5681a0c-68f1-0310-ab6d-d61299d08faa --- diff --git a/program/src/rrd_client.c b/program/src/rrd_client.c index e7c227b8..608eb881 100644 --- a/program/src/rrd_client.c +++ b/program/src/rrd_client.c @@ -831,7 +831,11 @@ int rrdc_stats_get (rrdc_stats_t **ret_stats) /* {{{ */ response_free (res); if (head == NULL) +#ifdef EPROTO return (EPROTO); +#else + return (EINVAL); +#endif *ret_stats = head; return (0);