From bae34df843174dd2dfcbb3e584ea8f963f0c1d32 Mon Sep 17 00:00:00 2001 From: David du Colombier <0intro@gmail.com> Date: Thu, 15 May 2014 06:28:54 +0200 Subject: upas: fix warnings MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit smtp.c:232: warning: comparison with string literal results in unspecified behavior smtp.c:244: warning: comparison with string literal results in unspecified behavior marshal.c:1179: warning: variable ‘err’ set but not used LGTM=rsc R=rsc https://codereview.appspot.com/93290043 --- src/cmd/upas/marshal/marshal.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/cmd/upas/marshal') diff --git a/src/cmd/upas/marshal/marshal.c b/src/cmd/upas/marshal/marshal.c index 7cef1828..8ebd3957 100644 --- a/src/cmd/upas/marshal/marshal.c +++ b/src/cmd/upas/marshal/marshal.c @@ -1183,7 +1183,7 @@ waitforsubprocs(void) err = w->msg; if(pid >= 0 && (w=procwait(pid)) && w->msg[0]) err = w->msg; - return nil; + return err; } int -- cgit v1.2.3