fprintftime: wrap macro code argument in "do {...} while(0)"
authorJim Meyering <meyering@redhat.com>
Wed, 28 Oct 2009 10:25:29 +0000 (11:25 +0100)
committerJim Meyering <meyering@redhat.com>
Wed, 28 Oct 2009 10:25:29 +0000 (11:25 +0100)
commit739294f4aaa7734eb73bed785302dc64626c4ff1
tree4ab1d275386bccc359f31d32e7b837d522b638bb
parent8348e9cb93a2bc8d7ab41022ee4bff19c49069e8
fprintftime: wrap macro code argument in "do {...} while(0)"

* lib/strftime.c (cpy) [FPRINTFTIME]: The second argument to the
cpy macro must be a statement that can be followed by a semicolon.
Now that the else clause contains a comment and is hence longer
than one line, I require curly braces.  That in turn requires
that we wrap this code block in the standard do...while(0).
ChangeLog
lib/strftime.c