This should also squelch warnings.
* POSSIBILITY OF SUCH DAMAGE.
*/
* POSSIBILITY OF SUCH DAMAGE.
*/
+/* Type of a qualifier. */
+typedef unsigned char qualval;
+
/* Address qualifiers. */
#define Q_HOST 1
/* Address qualifiers. */
#define Q_HOST 1
- unsigned char addr;
- unsigned char proto;
- unsigned char dir;
+ qualval addr;
+ qualval proto;
+ qualval dir;
#include "os-proto.h"
#endif
#include "os-proto.h"
#endif
-#define QSET(q, p, d, a) (q).proto = (unsigned char)(p),\
- (q).dir = (unsigned char)(d),\
- (q).addr = (unsigned char)(a)
+#define QSET(q, p, d, a) (q).proto = (p),\
+ (q).dir = (d),\
+ (q).addr = (a)
struct tok {
int v; /* value */
struct tok {
int v; /* value */
bpf_u_int32 h;
u_char *e;
char *s;
bpf_u_int32 h;
u_char *e;
char *s;
%type <blk> expr id nid pid term rterm qid
%type <blk> head
%type <blk> expr id nid pid term rterm qid
%type <blk> head
-%type <i> pqual dqual aqual ndaqual
+%type <q> pqual dqual aqual ndaqual
%type <a> arth narth
%type <i> byteop pname pnum relop irelop
%type <blk> and or paren not null prog
%type <a> arth narth
%type <i> byteop pname pnum relop irelop
%type <blk> and or paren not null prog