Syntax error in rpc_server/srv_samr.c, Samba 2.2.0
alpha 1
David Collier-Brown
David.Collier-Brown at canada.sun.com
Thu Nov 23 18:52:23 GMT 2000
There is a label immediately preceding a "}" token, which
make the Sun CC5.0 compiler think the author's trying to label
a non-line. This can be corrected by adding a ";", thusly
$ sccs diffs srv_samr.c
------- srv_samr.c -------
805c805
< done:
---
> done: ;
I suspect it might trip other compilers, as it's in the spec as
a prefix on <statement>, which is one of a list of alternatives,
each ending in a ";", or a <null statement> which is just ";".
[The Annotated ANSI C Standard, page 75/76, sections 6.6.1, 6.6.3]
--dave
--
David Collier-Brown, | Always do right. This will gratify some people
185 Ellerslie Ave., | and astonish the rest. -- Mark Twain
Willowdale, Ontario | //www.oreilly.com/catalog/samba/author.html
Work: (905) 415-2849 Home: (416) 223-8968 Email: davecb at canada.sun.com
More information about the samba-technical
mailing list