Module Name: src Committed By: pooka Date: Mon Mar 22 09:39:03 UTC 2010
Modified Files: src/lib/librumpuser: rumpuser_int.h Log Message: Wrap DOCALL and DOCALL_KLOCK in a new block (for easy adding of debug prints before them. XXX: can't use the standard do-while0 because lint doesn't like it. To generate a diff of this commit: cvs rdiff -u -r1.1 -r1.2 src/lib/librumpuser/rumpuser_int.h Please note that diffs are not public domain; they are subject to the copyright notices on the relevant files.
Modified files: Index: src/lib/librumpuser/rumpuser_int.h diff -u src/lib/librumpuser/rumpuser_int.h:1.1 src/lib/librumpuser/rumpuser_int.h:1.2 --- src/lib/librumpuser/rumpuser_int.h:1.1 Fri Feb 26 18:54:20 2010 +++ src/lib/librumpuser/rumpuser_int.h Mon Mar 22 09:39:02 2010 @@ -1,4 +1,4 @@ -/* $NetBSD: rumpuser_int.h,v 1.1 2010/02/26 18:54:20 pooka Exp $ */ +/* $NetBSD: rumpuser_int.h,v 1.2 2010/03/22 09:39:02 pooka Exp $ */ /* * Copyright (c) 2008 Antti Kantee. All Rights Reserved. @@ -40,15 +40,18 @@ } while (/*CONSTCOND*/0) #define DOCALL(rvtype, call) \ +{ \ rvtype rv; \ rv = call; \ if (rv == -1) \ *error = errno; \ else \ *error = 0; \ - return rv; + return rv; \ +} #define DOCALL_KLOCK(rvtype, call) \ +{ \ rvtype rv; \ int nlocks; \ rumpuser__kunlock(0, &nlocks); \ @@ -58,4 +61,5 @@ *error = errno; \ else \ *error = 0; \ - return rv; + return rv; \ +}