From 7e0f021a9aec35fd8e6725e87e3313b101d26f5e Mon Sep 17 00:00:00 2001 From: Tobias Klauser Date: Sun, 27 Jan 2008 11:37:44 +0100 Subject: Initial import (2.0.2-6) --- reference/C/CONTRIB/SNIP/grafline.c | 29 +++++++++++++++++++++++++++++ 1 file changed, 29 insertions(+) create mode 100755 reference/C/CONTRIB/SNIP/grafline.c (limited to 'reference/C/CONTRIB/SNIP/grafline.c') diff --git a/reference/C/CONTRIB/SNIP/grafline.c b/reference/C/CONTRIB/SNIP/grafline.c new file mode 100755 index 0000000..b05c1e5 --- /dev/null +++ b/reference/C/CONTRIB/SNIP/grafline.c @@ -0,0 +1,29 @@ +/* +** Demonstration of PC line drawing characters by David Harmon +*/ + +#include + +void main(void) +{ + /* compile and run this on a PC, and meditate on the results. */ + + puts("ASCII Decimal Hex ASCII Dec Hex\n" + "----- ----------- -------- ----- --- ---\n" + "\332 \302 \277 218 194 191 da c2 bf \304 196 c4\n" + "\303 \305 \264 195 197 180 c3 c5 b4 \263 179 b3\n" + "\300 \301 \331 192 193 217 c0 c1 d9 \315 205 cd\n" + " \272 186 ba\n" + "\311 \313 \273 201 203 187 c9 cb bb\n" + "\314 \316 \271 204 206 185 cc ce b9 \260 176 b0\n" + "\310 \312 \274 200 202 188 c8 ca bc \261 177 b1\n" + " \262 178 b2\n" + "\326 \322 \267 214 210 183 d6 d2 b7 \333 219 db\n" + "\307 \327 \266 199 215 182 c7 d7 b6\n" + "\323 \320 \275 211 208 189 d3 d0 bd \334 220 dc\n" + " \335 221 dd\n" + "\325 \321 \270 213 209 184 d5 d1 b8 \336 222 de\n" + "\306 \330 \265 198 216 181 c6 d8 b5 \337 223 df\n" + "\324 \317 \276 212 207 190 d4 cf be\n" + ); +} -- cgit v1.2.3-54-g00ecf 1f857be62ca0472024da37eab068b3b8ce0a15'>diff
diff options
context:
space:
mode:
authorDan Carpenter <dan.carpenter@oracle.com>2016-05-31 19:05:56 +0300
committerDoug Ledford <dledford@redhat.com>2016-06-06 19:19:07 -0400
commitda1f857be62ca0472024da37eab068b3b8ce0a15 (patch)
treea94ed310233f1fa87a411ab7e6c48657f1c47792
parentf242d93ae92032f78840471e5c2bfc2d04ae324c (diff)
IB/core: fix an error code in ib_core_init()
We should return the error code if ib_add_ibnl_clients() fails. The current code returns success. Fixes: 735c631ae99d ('IB/core: Register SA ibnl client during ib_core initialization') Signed-off-by: Dan Carpenter <dan.carpenter@oracle.com> Reviewed-by: Mark Bloch <markb@mellanox.com> Signed-off-by: Doug Ledford <dledford@redhat.com>