=> Bootstrap dependency digest>=20010302: found digest-20111104
WARNING: [license.mk] Every package should define a LICENSE.
===> Skipping vulnerability checks.
WARNING: No /var/db/pkg/pkg-vulnerabilities file found.
WARNING: To fix run: `/usr/sbin/pkg_admin -K /var/db/pkg fetch-pkg-vulnerabilities'.
===> Building for xipdump-1.5.4nb5
--- mg_alloc.o ---
--- mg_arr.o ---
--- mg_alloc.o ---
gcc -O2 -I/usr/pkg/include -I/usr/pkg/include/libnet10 -I. -c mg_alloc.c
--- mg_arr.o ---
gcc -O2 -I/usr/pkg/include -I/usr/pkg/include/libnet10 -I. -c mg_arr.c
mg_arr.c:163:33: warning: format specifies type 'int' but the argument has type 'size_t' (aka 'unsigned long') [-Wformat]
  fprintf(stderr,"eltsize=%d\n",arr->eltsize);
                          ~~    ^~~~~~~~~~~~
                          %zd
--- mg_arr_char.o ---
gcc -O2 -I/usr/pkg/include -I/usr/pkg/include/libnet10 -I. -c mg_arr_char.c
--- mg_arr.o ---
1 warning generated.
--- mg_assoc.o ---
gcc -O2 -I/usr/pkg/include -I/usr/pkg/include/libnet10 -I. -c mg_assoc.c
mg_assoc.c:54:9: warning: using the result of an assignment as a condition without parentheses [-Wparentheses]
  if (a = assoc_str_ptr_from_left(assoc,left))
      ~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
mg_assoc.c:54:9: note: place parentheses around the assignment to silence this warning
  if (a = assoc_str_ptr_from_left(assoc,left))
        ^
      (                                      )
mg_assoc.c:54:9: note: use '==' to turn this assignment into an equality comparison
  if (a = assoc_str_ptr_from_left(assoc,left))
        ^
        ==
--- mg_bit.o ---
gcc -O2 -I/usr/pkg/include -I/usr/pkg/include/libnet10 -I. -c mg_bit.c
--- mg_assoc.o ---
1 warning generated.
--- mg_buf.o ---
gcc -O2 -I/usr/pkg/include -I/usr/pkg/include/libnet10 -I. -c mg_buf.c
--- mg_dict.o ---
gcc -O2 -I/usr/pkg/include -I/usr/pkg/include/libnet10 -I. -c mg_dict.c
--- mg_dict_int.o ---
gcc -O2 -I/usr/pkg/include -I/usr/pkg/include/libnet10 -I. -c mg_dict_int.c
--- mg_dict.o ---
mg_dict.c:26:17: warning: using the result of an assignment as a condition without parentheses [-Wparentheses]
      if (carry = (hash_code & 0xf0000000)) 
          ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~
mg_dict.c:26:17: note: place parentheses around the assignment to silence this warning
      if (carry = (hash_code & 0xf0000000)) 
                ^
          (                               )
mg_dict.c:26:17: note: use '==' to turn this assignment into an equality comparison
      if (carry = (hash_code & 0xf0000000)) 
                ^
                ==
mg_dict.c:183:10: warning: using the result of an assignment as a condition without parentheses [-Wparentheses]
  if (he = dict_get(dict,key))
      ~~~^~~~~~~~~~~~~~~~~~~~
mg_dict.c:183:10: note: place parentheses around the assignment to silence this warning
  if (he = dict_get(dict,key))
         ^
      (                      )
mg_dict.c:183:10: note: use '==' to turn this assignment into an equality comparison
  if (he = dict_get(dict,key))
         ^
         ==
mg_dict.c:214:10: warning: using the result of an assignment as a condition without parentheses [-Wparentheses]
  if (he = dict_get(dict,key))
      ~~~^~~~~~~~~~~~~~~~~~~~
mg_dict.c:214:10: note: place parentheses around the assignment to silence this warning
  if (he = dict_get(dict,key))
         ^
      (                      )
mg_dict.c:214:10: note: use '==' to turn this assignment into an equality comparison
  if (he = dict_get(dict,key))
         ^
         ==
mg_dict.c:484:50: warning: format specifies type 'unsigned int' but the argument has type 'void *' [-Wformat]
  fprintf(stderr,"key=`%s' value=0x%x\n",he->key,he->value);
                                   ~~            ^~~~~~~~~
--- mg_dict_int.o ---
mg_dict_int.c:74:13: warning: using the result of an assignment as a condition without parentheses [-Wparentheses]
      if (s = index(str,'='))
          ~~^~~~~~~~~~~~~~~~
mg_dict_int.c:74:13: note: place parentheses around the assignment to silence this warning
      if (s = index(str,'='))
            ^
          (                 )
mg_dict_int.c:74:13: note: use '==' to turn this assignment into an equality comparison
      if (s = index(str,'='))
            ^
            ==
1 warning generated.
--- mg_dict_str.o ---
gcc -O2 -I/usr/pkg/include -I/usr/pkg/include/libnet10 -I. -c mg_dict_str.c
--- mg_dict.o ---
4 warnings generated.
--- mg_dm.o ---
gcc -O2 -I/usr/pkg/include -I/usr/pkg/include/libnet10 -I. -c mg_dm.c
--- mg_dict_str.o ---
mg_dict_str.c:31:10: warning: using the result of an assignment as a condition without parentheses [-Wparentheses]
  if (he = dict_get(dict,key))
      ~~~^~~~~~~~~~~~~~~~~~~~
mg_dict_str.c:31:10: note: place parentheses around the assignment to silence this warning
  if (he = dict_get(dict,key))
         ^
      (                      )
mg_dict_str.c:31:10: note: use '==' to turn this assignment into an equality comparison
  if (he = dict_get(dict,key))
         ^
         ==
mg_dict_str.c:71:10: warning: using the result of an assignment as a condition without parentheses [-Wparentheses]
  if (he = dict_get(dict,key))
      ~~~^~~~~~~~~~~~~~~~~~~~
mg_dict_str.c:71:10: note: place parentheses around the assignment to silence this warning
  if (he = dict_get(dict,key))
         ^
      (                      )
mg_dict_str.c:71:10: note: use '==' to turn this assignment into an equality comparison
  if (he = dict_get(dict,key))
         ^
         ==
mg_dict_str.c:102:10: warning: using the result of an assignment as a condition without parentheses [-Wparentheses]
  if (he = dict_get(dict,key))
      ~~~^~~~~~~~~~~~~~~~~~~~
mg_dict_str.c:102:10: note: place parentheses around the assignment to silence this warning
  if (he = dict_get(dict,key))
         ^
      (                      )
mg_dict_str.c:102:10: note: use '==' to turn this assignment into an equality comparison
--- mg_dm.o ---
mg_dm.c:43:10: warning: using the result of an assignment as a condition without parentheses [-Wparentheses]
--- mg_dict_str.o ---
  if (he = dict_get(dict,key))
         ^
         ==
--- mg_dm.o ---
  if (he = id_get(dm->id,ptr))
      ~~~^~~~~~~~~~~~~~~~~~~~
mg_dm.c:43:10: note: place parentheses around the assignment to silence this warning
  if (he = id_get(dm->id,ptr))
         ^
      (                      )
mg_dm.c:43:10: note: use '==' to turn this assignment into an equality comparison
  if (he = id_get(dm->id,ptr))
         ^
         ==
mg_dm.c:118:8: warning: implicit declaration of function 'gmatch' is invalid in C99 [-Wimplicit-function-declaration]
  if (!gmatch(dme->comment2,comment2))
       ^
mg_dm.c:154:51: warning: format specifies type 'int' but the argument has type 'size_t' (aka 'unsigned long') [-Wformat]
      fprintf(stderr,"malloced %p %d %s-%s\n",ptr,size,comment1,comment2);
                                  ~~              ^~~~
                                  %zd
--- mg_dict_str.o ---
mg_dict_str.c:222:1: warning: control may reach end of non-void function [-Wreturn-type]
}
^
--- mg_dm.o ---
mg_dm.c:200:8: warning: format specifies type 'int' but the argument has type 'size_t' (aka 'unsigned long') [-Wformat]
              dme->size,
              ^~~~~~~~~
mg_dm.c:201:8: warning: format specifies type 'int' but the argument has type 'size_t' (aka 'unsigned long') [-Wformat]
              size,
              ^~~~
mg_dm.c:223:11: warning: using the result of an assignment as a condition without parentheses [-Wparentheses]
  if (dme = dm_unregister_ptr(dm,ptr,comment1,comment2))
      ~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
mg_dm.c:223:11: note: place parentheses around the assignment to silence this warning
  if (dme = dm_unregister_ptr(dm,ptr,comment1,comment2))
          ^
      (                                                )
mg_dm.c:223:11: note: use '==' to turn this assignment into an equality comparison
  if (dme = dm_unregister_ptr(dm,ptr,comment1,comment2))
          ^
          ==
mg_dm.c:268:4: warning: format specifies type 'int' but the argument has type 'size_t' (aka 'unsigned long') [-Wformat]
          dme->size,
          ^~~~~~~~~
mg_dm.c:281:35: warning: format specifies type 'int' but the argument has type 'size_t' (aka 'unsigned long') [-Wformat]
  fprintf(stderr,"cumulated=%d\n",dm->cumulated);
                            ~~    ^~~~~~~~~~~~~
                            %zd
mg_dm.c:282:32: warning: format specifies type 'int' but the argument has type 'size_t' (aka 'unsigned long') [-Wformat]
  fprintf(stderr,"in_use=%d\n",dm->in_use);
                         ~~    ^~~~~~~~~~
                         %zd
9 warnings generated.
--- mg_dyn_str.o ---
gcc -O2 -I/usr/pkg/include -I/usr/pkg/include/libnet10 -I. -c mg_dyn_str.c
--- mg_dict_str.o ---
4 warnings generated.
--- mg_err.o ---
gcc -O2 -I/usr/pkg/include -I/usr/pkg/include/libnet10 -I. -c mg_err.c
mg_err.c:63:7: warning: cast to 'void *' from smaller integer type 'int' [-Wint-to-pointer-cast]
                           (VOID_PTR)(ERR_MG_START + i),
                           ^
mg_err.c:88:6: warning: cast to 'void *' from smaller integer type 't_status' (aka 'int') [-Wint-to-pointer-cast]
                   (VOID_PTR)errcode)) == NULL)
                   ^
mg_err.c:120:11: warning: using the result of an assignment as a condition without parentheses [-Wparentheses]
  if (err = err_msg(errcode))
      ~~~~^~~~~~~~~~~~~~~~~~
mg_err.c:120:11: note: place parentheses around the assignment to silence this warning
  if (err = err_msg(errcode))
          ^
      (                     )
mg_err.c:120:11: note: use '==' to turn this assignment into an equality comparison
  if (err = err_msg(errcode))
          ^
          ==
3 warnings generated.
--- mg_hash.o ---
gcc -O2 -I/usr/pkg/include -I/usr/pkg/include/libnet10 -I. -c mg_hash.c
--- mg_id.o ---
gcc -O2 -I/usr/pkg/include -I/usr/pkg/include/libnet10 -I. -c mg_id.c
mg_id.c:176:10: warning: using the result of an assignment as a condition without parentheses [-Wparentheses]
  if (he = id_get(id,key))
      ~~~^~~~~~~~~~~~~~~~
mg_id.c:176:10: note: place parentheses around the assignment to silence this warning
  if (he = id_get(id,key))
         ^
      (                  )
mg_id.c:176:10: note: use '==' to turn this assignment into an equality comparison
  if (he = id_get(id,key))
         ^
         ==
mg_id.c:356:30: warning: format specifies type 'unsigned int' but the argument has type 'void *' [-Wformat]
  fprintf(stderr,"0x%x=0x%x",he->key,he->value);
                    ~~       ^~~~~~~
mg_id.c:356:38: warning: format specifies type 'unsigned int' but the argument has type 'void *' [-Wformat]
  fprintf(stderr,"0x%x=0x%x",he->key,he->value);
                         ~~          ^~~~~~~~~
mg_id.c:393:20: warning: cast to 'void *' from smaller integer type 'int' [-Wint-to-pointer-cast]
  while (id_get(id,(VOID_PTR)base_key))
                   ^
mg_id.c:401:5: warning: cast to 'void *' from smaller integer type 'int' [-Wint-to-pointer-cast]
                         (VOID_PTR)base_key,
                         ^
mg_id.c:414:28: warning: format specifies type 'int' but the argument has type 'void *' [-Wformat]
  fprintf(stderr,"%d=%x\n",he->key,he->value);
                  ~~       ^~~~~~~
mg_id.c:414:36: warning: format specifies type 'unsigned int' but the argument has type 'void *' [-Wformat]
  fprintf(stderr,"%d=%x\n",he->key,he->value);
                     ~~            ^~~~~~~~~
--- mg_id_ptr.o ---
gcc -O2 -I/usr/pkg/include -I/usr/pkg/include/libnet10 -I. -c mg_id_ptr.c
--- mg_id.o ---
WARNING: While resolving call to function 'id_show_walk' arguments were dropped!
--- mg_id_str.o ---
gcc -O2 -I/usr/pkg/include -I/usr/pkg/include/libnet10 -I. -c mg_id_str.c
--- mg_id.o ---
WARNING: While resolving call to function 'id_show_keys_as_ints_walk' arguments were dropped!
7 warnings generated.
--- mg_int.o ---
gcc -O2 -I/usr/pkg/include -I/usr/pkg/include/libnet10 -I. -c mg_int.c
--- mg_id_str.o ---
mg_id_str.c:18:28: warning: format specifies type 'int' but the argument has type 'void *' [-Wformat]
  fprintf(stderr,"%d=%s\n",he->key,he->value);
                  ~~       ^~~~~~~
1 warning generated.
--- mg_mask.o ---
gcc -O2 -I/usr/pkg/include -I/usr/pkg/include/libnet10 -I. -c mg_mask.c
mg_mask.c:63:17: warning: using the result of an assignment as a condition without parentheses [-Wparentheses]
          if (mask_def = mask_get_def_from_str(defs,str))
              ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
mg_mask.c:63:17: note: place parentheses around the assignment to silence this warning
          if (mask_def = mask_get_def_from_str(defs,str))
                       ^
              (                                         )
mg_mask.c:63:17: note: use '==' to turn this assignment into an equality comparison
          if (mask_def = mask_get_def_from_str(defs,str))
                       ^
                       ==
--- mg_misc.o ---
gcc -O2 -I/usr/pkg/include -I/usr/pkg/include/libnet10 -I. -c mg_misc.c
--- mg_mask.o ---
1 warning generated.
--- mg_parse.o ---
gcc -O2 -I/usr/pkg/include -I/usr/pkg/include/libnet10 -I. -c mg_parse.c
--- mg_misc.o ---
mg_misc.c:80:1: warning: control may reach end of non-void function [-Wreturn-type]
}
^
1 warning generated.
--- mg_printf.o ---
gcc -O2 -I/usr/pkg/include -I/usr/pkg/include/libnet10 -I. -c mg_printf.c
--- mg_parse.o ---
mg_parse.c:329:15: warning: using the result of an assignment as a condition without parentheses [-Wparentheses]
      if (ptr = bindex(bc->buf,bc->len,'\n'))
          ~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
mg_parse.c:329:15: note: place parentheses around the assignment to silence this warning
      if (ptr = bindex(bc->buf,bc->len,'\n'))
              ^
          (                                 )
mg_parse.c:329:15: note: use '==' to turn this assignment into an equality comparison
      if (ptr = bindex(bc->buf,bc->len,'\n'))
              ^
              ==
--- mg_printf.o ---
mg_printf.c:21:7: warning: implicit declaration of function 'iscntrl' is invalid in C99 [-Wimplicit-function-declaration]
  if (iscntrl(ch) && ch != '\n' && ch != '\t')
      ^
--- mg_parse.o ---
1 warning generated.
--- mg_stack.o ---
gcc -O2 -I/usr/pkg/include -I/usr/pkg/include/libnet10 -I. -c mg_stack.c
--- mg_printf.o ---
1 warning generated.
--- mg_str.o ---
gcc -O2 -I/usr/pkg/include -I/usr/pkg/include/libnet10 -I. -c mg_str.c
--- mg_sysdep.o ---
gcc -O2 -I/usr/pkg/include -I/usr/pkg/include/libnet10 -I. -c mg_sysdep.c
--- mg_vec.o ---
gcc -O2 -I/usr/pkg/include -I/usr/pkg/include/libnet10 -I. -c mg_vec.c
--- mg_vec_buf.o ---
gcc -O2 -I/usr/pkg/include -I/usr/pkg/include/libnet10 -I. -c mg_vec_buf.c
--- mg_vec_int.o ---
gcc -O2 -I/usr/pkg/include -I/usr/pkg/include/libnet10 -I. -c mg_vec_int.c
mg_vec_int.c:37:28: warning: format specifies type 'int' but the argument has type 'void *' [-Wformat]
      fprintf(stderr,"%d ",p);      
                      ~~   ^
1 warning generated.
--- mg_vec_ptr.o ---
gcc -O2 -I/usr/pkg/include -I/usr/pkg/include/libnet10 -I. -c mg_vec_ptr.c
--- mg_vec_str.o ---
gcc -O2 -I/usr/pkg/include -I/usr/pkg/include/libnet10 -I. -c mg_vec_str.c
--- mg_opt.o ---
gcc -O2 -I/usr/pkg/include -I/usr/pkg/include/libnet10 -I. -c mg_opt.c
--- mg_vec_str.o ---
mg_vec_str.c:37:12: warning: using the result of an assignment as a condition without parentheses [-Wparentheses]
          if (tmp = strdup_alloc(s3,
              ~~~~^~~~~~~~~~~~~~~~~~
mg_vec_str.c:37:12: note: place parentheses around the assignment to silence this warning
          if (tmp = strdup_alloc(s3,
                  ^
mg_vec_str.c:37:12: note: use '==' to turn this assignment into an equality comparison
          if (tmp = strdup_alloc(s3,
                  ^
                  ==
mg_vec_str.c:51:15: warning: using the result of an assignment as a condition without parentheses [-Wparentheses]
      if (tmp = strdup_alloc(s3,
          ~~~~^~~~~~~~~~~~~~~~~~
mg_vec_str.c:51:15: note: place parentheses around the assignment to silence this warning
      if (tmp = strdup_alloc(s3,
              ^
mg_vec_str.c:51:15: note: use '==' to turn this assignment into an equality comparison
      if (tmp = strdup_alloc(s3,
              ^
              ==
--- mg_opt.o ---
mg_opt.c:254:2: warning: add explicit braces to avoid dangling else [-Wdangling-else]
        else
        ^
--- mg_vec_str.o ---
2 warnings generated.
--- gdm.o ---
gcc -O2 -I/usr/pkg/include -I/usr/pkg/include/libnet10 -I. -c gdm.c
--- mg_opt.o ---
1 warning generated.
--- gmatch.o ---
gcc -O2 -I/usr/pkg/include -I/usr/pkg/include/libnet10 -I. -c gmatch.c
--- snprintf.o ---
gcc -O2 -I/usr/pkg/include -I/usr/pkg/include/libnet10 -I. -c snprintf.c
--- gmatch.o ---
gmatch.c:42:12: warning: implicit declaration of function 'glob_match' is invalid in C99 [-Wimplicit-function-declaration]
   return (glob_match(pattern,text,0,GMATCH_SENSITIVE));
           ^
--- pat_16.o ---
gcc -O2 -I/usr/pkg/include -I/usr/pkg/include/libnet10 -I. -c pat_16.c
--- gmatch.o ---
1 warning generated.
--- pat_32.o ---
gcc -O2 -I/usr/pkg/include -I/usr/pkg/include/libnet10 -I. -c pat_32.c
--- pat_16.o ---
pat_16.c:368:13: warning: using the result of an assignment as a condition without parentheses [-Wparentheses]
  if (assoc = assoc_str_int_from_right(assocs,(int)u16))
      ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
pat_16.c:368:13: note: place parentheses around the assignment to silence this warning
  if (assoc = assoc_str_int_from_right(assocs,(int)u16))
            ^
      (                                                )
pat_16.c:368:13: note: use '==' to turn this assignment into an equality comparison
  if (assoc = assoc_str_int_from_right(assocs,(int)u16))
            ^
            ==
pat_16.c:390:13: warning: using the result of an assignment as a condition without parentheses [-Wparentheses]
  if (assoc = assoc_str_ptr_from_left(assocs,value))
      ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
pat_16.c:390:13: note: place parentheses around the assignment to silence this warning
  if (assoc = assoc_str_ptr_from_left(assocs,value))
            ^
      (                                            )
pat_16.c:390:13: note: use '==' to turn this assignment into an equality comparison
  if (assoc = assoc_str_ptr_from_left(assocs,value))
            ^
            ==
pat_16.c:709:13: warning: using the result of an assignment as a condition without parentheses [-Wparentheses]
  if (assoc = assoc_str_int_from_right(bfad->assocs,(int)u16ret))
      ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
pat_16.c:709:13: note: place parentheses around the assignment to silence this warning
  if (assoc = assoc_str_int_from_right(bfad->assocs,(int)u16ret))
            ^
      (                                                         )
pat_16.c:709:13: note: use '==' to turn this assignment into an equality comparison
  if (assoc = assoc_str_int_from_right(bfad->assocs,(int)u16ret))
            ^
            ==
pat_16.c:734:13: warning: using the result of an assignment as a condition without parentheses [-Wparentheses]
  if (assoc = assoc_str_ptr_from_left(bfad->assocs,value))
      ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
pat_16.c:734:13: note: place parentheses around the assignment to silence this warning
  if (assoc = assoc_str_ptr_from_left(bfad->assocs,value))
            ^
      (                                                  )
pat_16.c:734:13: note: use '==' to turn this assignment into an equality comparison
  if (assoc = assoc_str_ptr_from_left(bfad->assocs,value))
            ^
            ==
--- pat_32.o ---
pat_32.c:292:13: warning: using the result of an assignment as a condition without parentheses [-Wparentheses]
  if (assoc = assoc_str_int_from_right(assocs,(int)u32))
      ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
pat_32.c:292:13: note: place parentheses around the assignment to silence this warning
  if (assoc = assoc_str_int_from_right(assocs,(int)u32))
            ^
      (                                                )
pat_32.c:292:13: note: use '==' to turn this assignment into an equality comparison
  if (assoc = assoc_str_int_from_right(assocs,(int)u32))
            ^
            ==
pat_32.c:313:13: warning: using the result of an assignment as a condition without parentheses [-Wparentheses]
  if (assoc = assoc_str_ptr_from_left(assocs,value))
      ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
pat_32.c:313:13: note: place parentheses around the assignment to silence this warning
  if (assoc = assoc_str_ptr_from_left(assocs,value))
            ^
      (                                            )
pat_32.c:313:13: note: use '==' to turn this assignment into an equality comparison
  if (assoc = assoc_str_ptr_from_left(assocs,value))
            ^
            ==
pat_32.c:382:13: warning: using the result of an assignment as a condition without parentheses [-Wparentheses]
  if (assoc = assoc_str_int_from_right(assocs,(int)u32))
      ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
pat_32.c:382:13: note: place parentheses around the assignment to silence this warning
  if (assoc = assoc_str_int_from_right(assocs,(int)u32))
            ^
      (                                                )
pat_32.c:382:13: note: use '==' to turn this assignment into an equality comparison
  if (assoc = assoc_str_int_from_right(assocs,(int)u32))
            ^
            ==
pat_32.c:403:13: warning: using the result of an assignment as a condition without parentheses [-Wparentheses]
  if (assoc = assoc_str_ptr_from_left(assocs,value))
      ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
pat_32.c:403:13: note: place parentheses around the assignment to silence this warning
  if (assoc = assoc_str_ptr_from_left(assocs,value))
            ^
      (                                            )
pat_32.c:403:13: note: use '==' to turn this assignment into an equality comparison
  if (assoc = assoc_str_ptr_from_left(assocs,value))
            ^
            ==
4 warnings generated.
--- pat_8.o ---
gcc -O2 -I/usr/pkg/include -I/usr/pkg/include/libnet10 -I. -c pat_8.c
--- pat_16.o ---
4 warnings generated.
--- pat_arp.o ---
gcc -O2 -I/usr/pkg/include -I/usr/pkg/include/libnet10 -I. -c pat_arp.c
--- pat_8.o ---
pat_8.c:158:13: warning: using the result of an assignment as a condition without parentheses [-Wparentheses]
  if (assoc = assoc_str_int_from_right(ascii_assocs,
      ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
pat_8.c:158:13: note: place parentheses around the assignment to silence this warning
  if (assoc = assoc_str_int_from_right(ascii_assocs,
            ^
pat_8.c:158:13: note: use '==' to turn this assignment into an equality comparison
  if (assoc = assoc_str_int_from_right(ascii_assocs,
            ^
            ==
pat_8.c:179:13: warning: using the result of an assignment as a condition without parentheses [-Wparentheses]
  if (assoc = assoc_str_ptr_from_left(ascii_assocs,
      ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
pat_8.c:179:13: note: place parentheses around the assignment to silence this warning
  if (assoc = assoc_str_ptr_from_left(ascii_assocs,
            ^
pat_8.c:179:13: note: use '==' to turn this assignment into an equality comparison
  if (assoc = assoc_str_ptr_from_left(ascii_assocs,
            ^
            ==
pat_8.c:403:13: warning: using the result of an assignment as a condition without parentheses [-Wparentheses]
  if (assoc = assoc_str_int_from_right(assocs,(int)c))
      ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
pat_8.c:403:13: note: place parentheses around the assignment to silence this warning
  if (assoc = assoc_str_int_from_right(assocs,(int)c))
            ^
      (                                              )
pat_8.c:403:13: note: use '==' to turn this assignment into an equality comparison
  if (assoc = assoc_str_int_from_right(assocs,(int)c))
            ^
            ==
pat_8.c:424:13: warning: using the result of an assignment as a condition without parentheses [-Wparentheses]
  if (assoc = assoc_str_ptr_from_left(assocs,value))
      ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
pat_8.c:424:13: note: place parentheses around the assignment to silence this warning
  if (assoc = assoc_str_ptr_from_left(assocs,value))
            ^
      (                                            )
pat_8.c:424:13: note: use '==' to turn this assignment into an equality comparison
  if (assoc = assoc_str_ptr_from_left(assocs,value))
            ^
            ==
pat_8.c:595:13: warning: using the result of an assignment as a condition without parentheses [-Wparentheses]
  if (assoc = assoc_str_int_from_right(bfad->assocs,(int)u8ret))
      ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
pat_8.c:595:13: note: place parentheses around the assignment to silence this warning
  if (assoc = assoc_str_int_from_right(bfad->assocs,(int)u8ret))
            ^
      (                                                        )
pat_8.c:595:13: note: use '==' to turn this assignment into an equality comparison
  if (assoc = assoc_str_int_from_right(bfad->assocs,(int)u8ret))
            ^
            ==
pat_8.c:618:13: warning: using the result of an assignment as a condition without parentheses [-Wparentheses]
  if (assoc = assoc_str_ptr_from_left(bfad->assocs,value))
      ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
pat_8.c:618:13: note: place parentheses around the assignment to silence this warning
  if (assoc = assoc_str_ptr_from_left(bfad->assocs,value))
            ^
      (                                                  )
pat_8.c:618:13: note: use '==' to turn this assignment into an equality comparison
  if (assoc = assoc_str_ptr_from_left(bfad->assocs,value))
            ^
            ==
--- pat_boolean.o ---
gcc -O2 -I/usr/pkg/include -I/usr/pkg/include/libnet10 -I. -c pat_boolean.c
--- pat_8.o ---
6 warnings generated.
--- pat_bootp.o ---
gcc -O2 -I/usr/pkg/include -I/usr/pkg/include/libnet10 -I. -c pat_bootp.c
--- pat_buf.o ---
gcc -O2 -I/usr/pkg/include -I/usr/pkg/include/libnet10 -I. -c pat_buf.c
--- pat_bootp.o ---
pat_bootp.c:741:10: warning: using the result of an assignment as a condition without parentheses [-Wparentheses]
  if (he = id_get(id,
      ~~~^~~~~~~~~~~~
pat_bootp.c:741:10: note: place parentheses around the assignment to silence this warning
  if (he = id_get(id,
         ^
pat_bootp.c:741:10: note: use '==' to turn this assignment into an equality comparison
  if (he = id_get(id,
         ^
         ==
pat_bootp.c:753:8: warning: cast to 'void *' from smaller integer type 'int' [-Wint-to-pointer-cast]
                            (VOID_PTR)(++i))) != 0)
                            ^
--- pat_bytebuf.o ---
gcc -O2 -I/usr/pkg/include -I/usr/pkg/include/libnet10 -I. -c pat_bytebuf.c
--- pat_bootp.o ---
2 warnings generated.
--- pat_data.o ---
gcc -O2 -I/usr/pkg/include -I/usr/pkg/include/libnet10 -I. -c pat_data.c
--- pat_dns.o ---
gcc -O2 -I/usr/pkg/include -I/usr/pkg/include/libnet10 -I. -c pat_dns.c
pat_dns.c:249:14: warning: using the result of an assignment as a condition without parentheses [-Wparentheses]
      if (he = id_get(optional_id,
          ~~~^~~~~~~~~~~~~~~~~~~~~
pat_dns.c:249:14: note: place parentheses around the assignment to silence this warning
      if (he = id_get(optional_id,
             ^
pat_dns.c:249:14: note: use '==' to turn this assignment into an equality comparison
      if (he = id_get(optional_id,
             ^
             ==
pat_dns.c:264:6: warning: cast to 'void *' from smaller integer type 'int' [-Wint-to-pointer-cast]
                                        (VOID_PTR)nquestions)) != 0)
                                        ^
--- pat_ethaddr.o ---
gcc -O2 -I/usr/pkg/include -I/usr/pkg/include/libnet10 -I. -c pat_ethaddr.c
--- pat_dns.o ---
pat_dns.c:717:14: warning: using the result of an assignment as a condition without parentheses [-Wparentheses]
      if (he = id_get(optional_id,
          ~~~^~~~~~~~~~~~~~~~~~~~~
pat_dns.c:717:14: note: place parentheses around the assignment to silence this warning
      if (he = id_get(optional_id,
             ^
pat_dns.c:717:14: note: use '==' to turn this assignment into an equality comparison
      if (he = id_get(optional_id,
             ^
             ==
pat_dns.c:725:6: warning: cast to 'void *' from smaller integer type 't_u32' (aka 'unsigned int') [-Wint-to-pointer-cast]
                   (VOID_PTR)((t_u32)(safe_ntohs(&dns->nquestions))))) != 0)
                   ^
4 warnings generated.
--- pat_ether.o ---
gcc -O2 -I/usr/pkg/include -I/usr/pkg/include/libnet10 -I. -c pat_ether.c
--- pat_icmp.o ---
gcc -O2 -I/usr/pkg/include -I/usr/pkg/include/libnet10 -I. -c pat_icmp.c
--- pat_icmpcode.o ---
gcc -O2 -I/usr/pkg/include -I/usr/pkg/include/libnet10 -I. -c pat_icmpcode.c
--- pat_ieee802.o ---
gcc -O2 -I/usr/pkg/include -I/usr/pkg/include/libnet10 -I. -c pat_ieee802.c
--- pat_igmp.o ---
gcc -O2 -I/usr/pkg/include -I/usr/pkg/include/libnet10 -I. -c pat_igmp.c
--- pat_inaddr.o ---
gcc -O2 -I/usr/pkg/include -I/usr/pkg/include/libnet10 -I. -c pat_inaddr.c
--- pat_ip.o ---
gcc -O2 -I/usr/pkg/include -I/usr/pkg/include/libnet10 -I. -c pat_ip.c
--- pat_ipproto.o ---
gcc -O2 -I/usr/pkg/include -I/usr/pkg/include/libnet10 -I. -c pat_ipproto.c
--- pat_ip.o ---
pat_ip.c:594:10: warning: using the result of an assignment as a condition without parentheses [-Wparentheses]
  if (he = id_get(id,
      ~~~^~~~~~~~~~~~
pat_ip.c:594:10: note: place parentheses around the assignment to silence this warning
  if (he = id_get(id,
         ^
pat_ip.c:594:10: note: use '==' to turn this assignment into an equality comparison
  if (he = id_get(id,
         ^
         ==
pat_ip.c:606:8: warning: cast to 'void *' from smaller integer type 'int' [-Wint-to-pointer-cast]
                            (VOID_PTR)(++i))) != 0)
                            ^
pat_ip.c:1113:5: warning: cast to 'void *' from smaller integer type 't_u32' (aka 'unsigned int') [-Wint-to-pointer-cast]
                                (VOID_PTR)inaddr)) != 0)
                                ^
pat_ip.c:1118:5: warning: cast to 'void *' from smaller integer type 't_u32' (aka 'unsigned int') [-Wint-to-pointer-cast]
                                (VOID_PTR)inaddr)) != 0)
                                ^
pat_ip.c:1144:9: warning: cast to 'void *' from smaller integer type 't_u32' (aka 'unsigned int') [-Wint-to-pointer-cast]
                      (VOID_PTR)(t_u32)p))
                      ^
pat_ip.c:1143:14: warning: using the result of an assignment as a condition without parentheses [-Wparentheses]
      if (he = id_get(pat_ip_sub_id,
          ~~~^~~~~~~~~~~~~~~~~~~~~~~
pat_ip.c:1143:14: note: place parentheses around the assignment to silence this warning
      if (he = id_get(pat_ip_sub_id,
             ^
pat_ip.c:1143:14: note: use '==' to turn this assignment into an equality comparison
      if (he = id_get(pat_ip_sub_id,
             ^
             ==
--- pat_ipproto.o ---
pat_ipproto.c:53:22: warning: using the result of an assignment as a condition without parentheses [-Wparentheses]
      if (protoentry = getprotobyname(str))
          ~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~
pat_ipproto.c:53:22: note: place parentheses around the assignment to silence this warning
      if (protoentry = getprotobyname(str))
                     ^
          (                               )
pat_ipproto.c:53:22: note: use '==' to turn this assignment into an equality comparison
      if (protoentry = getprotobyname(str))
                     ^
                     ==
pat_ipproto.c:62:17: warning: using the result of an assignment as a condition without parentheses [-Wparentheses]
      if (assoc = assoc_str_ptr_from_left(ipproto_assocs,str))
          ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
pat_ipproto.c:62:17: note: place parentheses around the assignment to silence this warning
      if (assoc = assoc_str_ptr_from_left(ipproto_assocs,str))
                ^
          (                                                  )
pat_ipproto.c:62:17: note: use '==' to turn this assignment into an equality comparison
      if (assoc = assoc_str_ptr_from_left(ipproto_assocs,str))
                ^
                ==
pat_ipproto.c:84:22: warning: using the result of an assignment as a condition without parentheses [-Wparentheses]
      if (protoentry = getprotobynumber(proto))
          ~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~
pat_ipproto.c:84:22: note: place parentheses around the assignment to silence this warning
      if (protoentry = getprotobynumber(proto))
                     ^
          (                                   )
pat_ipproto.c:84:22: note: use '==' to turn this assignment into an equality comparison
      if (protoentry = getprotobynumber(proto))
                     ^
                     ==
pat_ipproto.c:95:17: warning: using the result of an assignment as a condition without parentheses [-Wparentheses]
      if (assoc = assoc_str_int_from_right(ipproto_assocs,proto))
          ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
pat_ipproto.c:95:17: note: place parentheses around the assignment to silence this warning
      if (assoc = assoc_str_int_from_right(ipproto_assocs,proto))
                ^
          (                                                     )
pat_ipproto.c:95:17: note: use '==' to turn this assignment into an equality comparison
      if (assoc = assoc_str_int_from_right(ipproto_assocs,proto))
                ^
                ==
pat_ipproto.c:144:21: warning: using the result of an assignment as a condition without parentheses [-Wparentheses]
  while (protoentry = getprotoent())
         ~~~~~~~~~~~^~~~~~~~~~~~~~~
pat_ipproto.c:144:21: note: place parentheses around the assignment to silence this warning
  while (protoentry = getprotoent())
                    ^
         (                         )
pat_ipproto.c:144:21: note: use '==' to turn this assignment into an equality comparison
  while (protoentry = getprotoent())
                    ^
                    ==
5 warnings generated.
--- pat_mac.o ---
gcc -O2 -I/usr/pkg/include -I/usr/pkg/include/libnet10 -I. -c pat_mac.c
--- pat_ip.o ---
6 warnings generated.
--- pat_null.o ---
--- pat_pad.o ---
--- pat_null.o ---
gcc -O2 -I/usr/pkg/include -I/usr/pkg/include/libnet10 -I. -c pat_null.c
--- pat_pad.o ---
gcc -O2 -I/usr/pkg/include -I/usr/pkg/include/libnet10 -I. -c pat_pad.c
pat_pad.c:76:6: warning: cast to 'void *' from smaller integer type 'int' [-Wint-to-pointer-cast]
                          (VOID_PTR)i,
                          ^
pat_pad.c:93:10: warning: using the result of an assignment as a condition without parentheses [-Wparentheses]
  if (he = id_get(id,
      ~~~^~~~~~~~~~~~
pat_pad.c:93:10: note: place parentheses around the assignment to silence this warning
  if (he = id_get(id,
         ^
pat_pad.c:93:10: note: use '==' to turn this assignment into an equality comparison
  if (he = id_get(id,
         ^
         ==
pat_pad.c:105:8: warning: cast to 'void *' from smaller integer type 'int' [-Wint-to-pointer-cast]
                            (VOID_PTR)(++i))) != 0)
                            ^
3 warnings generated.
--- pat_pat.o ---
gcc -O2 -I/usr/pkg/include -I/usr/pkg/include/libnet10 -I. -c pat_pat.c
--- pat_port.o ---
gcc -O2 -I/usr/pkg/include -I/usr/pkg/include/libnet10 -I. -c pat_port.c
--- pat_pat.o ---
pat_pat.c:217:10: warning: using the result of an assignment as a condition without parentheses [-Wparentheses]
  if (he = dict_get(pat_dict,str))
      ~~~^~~~~~~~~~~~~~~~~~~~~~~~
pat_pat.c:217:10: note: place parentheses around the assignment to silence this warning
  if (he = dict_get(pat_dict,str))
         ^
      (                          )
pat_pat.c:217:10: note: use '==' to turn this assignment into an equality comparison
  if (he = dict_get(pat_dict,str))
         ^
         ==
--- pat_port.o ---
pat_port.c:31:21: warning: using the result of an assignment as a condition without parentheses [-Wparentheses]
      if (serventry = getservbyname(str,proto))
          ~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~
pat_port.c:31:21: note: place parentheses around the assignment to silence this warning
      if (serventry = getservbyname(str,proto))
                    ^
          (                                   )
pat_port.c:31:21: note: use '==' to turn this assignment into an equality comparison
      if (serventry = getservbyname(str,proto))
                    ^
                    ==
pat_port.c:60:21: warning: using the result of an assignment as a condition without parentheses [-Wparentheses]
      if (serventry = getservbyport(UNSAFE_HTONS(port),proto))
          ~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
pat_port.c:60:21: note: place parentheses around the assignment to silence this warning
      if (serventry = getservbyport(UNSAFE_HTONS(port),proto))
                    ^
          (                                                  )
pat_port.c:60:21: note: use '==' to turn this assignment into an equality comparison
      if (serventry = getservbyport(UNSAFE_HTONS(port),proto))
                    ^
                    ==
pat_port.c:132:20: warning: using the result of an assignment as a condition without parentheses [-Wparentheses]
  while (serventry = getservent())
         ~~~~~~~~~~^~~~~~~~~~~~~~
pat_port.c:132:20: note: place parentheses around the assignment to silence this warning
  while (serventry = getservent())
                   ^
         (                       )
pat_port.c:132:20: note: use '==' to turn this assignment into an equality comparison
  while (serventry = getservent())
                   ^
                   ==
3 warnings generated.
--- pat_rip.o ---
gcc -O2 -I/usr/pkg/include -I/usr/pkg/include/libnet10 -I. -c pat_rip.c
--- pat_rpc.o ---
gcc -O2 -I/usr/pkg/include -I/usr/pkg/include/libnet10 -I. -c pat_rpc.c
--- pat_pat.o ---
1 warning generated.
--- pat_rpcnum.o ---
gcc -O2 -I/usr/pkg/include -I/usr/pkg/include/libnet10 -I. -c pat_rpcnum.c
--- pat_seqack.o ---
gcc -O2 -I/usr/pkg/include -I/usr/pkg/include/libnet10 -I. -c pat_seqack.c
--- pat_rpcnum.o ---
pat_rpcnum.c:36:20: warning: using the result of an assignment as a condition without parentheses [-Wparentheses]
      if (rpcentry = getrpcbyname(str))
          ~~~~~~~~~^~~~~~~~~~~~~~~~~~~
pat_rpcnum.c:36:20: note: place parentheses around the assignment to silence this warning
      if (rpcentry = getrpcbyname(str))
                   ^
          (                           )
pat_rpcnum.c:36:20: note: use '==' to turn this assignment into an equality comparison
      if (rpcentry = getrpcbyname(str))
                   ^
                   ==
pat_rpcnum.c:64:20: warning: using the result of an assignment as a condition without parentheses [-Wparentheses]
      if (rpcentry = getrpcbynumber(rpc))
          ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~
pat_rpcnum.c:64:20: note: place parentheses around the assignment to silence this warning
      if (rpcentry = getrpcbynumber(rpc))
                   ^
          (                             )
pat_rpcnum.c:64:20: note: use '==' to turn this assignment into an equality comparison
      if (rpcentry = getrpcbynumber(rpc))
                   ^
                   ==
pat_rpcnum.c:124:19: warning: using the result of an assignment as a condition without parentheses [-Wparentheses]
  while (rpcentry = getrpcent())
         ~~~~~~~~~^~~~~~~~~~~~~
pat_rpcnum.c:124:19: note: place parentheses around the assignment to silence this warning
  while (rpcentry = getrpcent())
                  ^
         (                     )
pat_rpcnum.c:124:19: note: use '==' to turn this assignment into an equality comparison
  while (rpcentry = getrpcent())
                  ^
                  ==
--- pat_seqack.o ---
pat_seqack.c:36:9: warning: implicit declaration of function 'safe_ntohl' is invalid in C99 [-Wimplicit-function-declaration]
  seq = safe_ntohl(&sa->seq); /* alignment */
        ^
--- pat_rpcnum.o ---
3 warnings generated.
--- pat_seqack.o ---
1 warning generated.
--- pat_shortbuf.o ---
--- pat_subnet.o ---
--- pat_shortbuf.o ---
gcc -O2 -I/usr/pkg/include -I/usr/pkg/include/libnet10 -I. -c pat_shortbuf.c
--- pat_subnet.o ---
gcc -O2 -I/usr/pkg/include -I/usr/pkg/include/libnet10 -I. -c pat_subnet.c
pat_subnet.c:58:16: warning: using the result of an assignment as a condition without parentheses [-Wparentheses]
  if (bits_str = index(safe_str,'/'))
      ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~
pat_subnet.c:58:16: note: place parentheses around the assignment to silence this warning
  if (bits_str = index(safe_str,'/'))
               ^
      (                             )
pat_subnet.c:58:16: note: use '==' to turn this assignment into an equality comparison
  if (bits_str = index(safe_str,'/'))
               ^
               ==
pat_subnet.c:63:18: warning: using the result of an assignment as a condition without parentheses [-Wparentheses]
    if (mask_str = index(safe_str,':'))
        ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~
pat_subnet.c:63:18: note: place parentheses around the assignment to silence this warning
    if (mask_str = index(safe_str,':'))
                 ^
        (                             )
pat_subnet.c:63:18: note: use '==' to turn this assignment into an equality comparison
    if (mask_str = index(safe_str,':'))
                 ^
                 ==
pat_subnet.c:67:25: warning: implicit declaration of function 'inet_addr' is invalid in C99 [-Wimplicit-function-declaration]
  subnet->addr.s_addr = inet_addr(safe_str);
                        ^
pat_subnet.c:150:17: warning: implicit declaration of function 'inaddr_to_str' is invalid in C99 [-Wimplicit-function-declaration]
  if ((status = inaddr_to_str(&(subnet->addr),
                ^
pat_subnet.c:290:30: warning: implicit declaration of function 'inet_ntoa' is invalid in C99 [-Wimplicit-function-declaration]
  fprintf(stderr,"addr=%s\n",inet_ntoa(subnet->addr));
                             ^
pat_subnet.c:290:30: warning: format specifies type 'char *' but the argument has type 'int' [-Wformat]
  fprintf(stderr,"addr=%s\n",inet_ntoa(subnet->addr));
                       ~~    ^~~~~~~~~~~~~~~~~~~~~~~
                       %d
pat_subnet.c:291:30: warning: format specifies type 'char *' but the argument has type 'int' [-Wformat]
  fprintf(stderr,"mask=%s\n",inet_ntoa(subnet->mask));
                       ~~    ^~~~~~~~~~~~~~~~~~~~~~~
                       %d
pat_subnet.c:292:31: warning: format specifies type 'char *' but the argument has type 'int' [-Wformat]
  fprintf(stderr,"cable=%s\n",inet_ntoa(subnet->cable));
                        ~~    ^~~~~~~~~~~~~~~~~~~~~~~~
                        %d
pat_subnet.c:293:35: warning: format specifies type 'char *' but the argument has type 'int' [-Wformat]
  fprintf(stderr,"broadcast=%s\n",inet_ntoa(subnet->broadcast));
                            ~~    ^~~~~~~~~~~~~~~~~~~~~~~~~~~~
                            %d
--- pat_sz.o ---
gcc -O2 -I/usr/pkg/include -I/usr/pkg/include/libnet10 -I. -c pat_sz.c
--- pat_subnet.o ---
9 warnings generated.
--- pat_tcp.o ---
gcc -O2 -I/usr/pkg/include -I/usr/pkg/include/libnet10 -I. -c pat_tcp.c
--- pat_tftp.o ---
gcc -O2 -I/usr/pkg/include -I/usr/pkg/include/libnet10 -I. -c pat_tftp.c
--- pat_tcp.o ---
pat_tcp.c:442:10: warning: using the result of an assignment as a condition without parentheses [-Wparentheses]
  if (he = id_get(id,
      ~~~^~~~~~~~~~~~
pat_tcp.c:442:10: note: place parentheses around the assignment to silence this warning
  if (he = id_get(id,
         ^
pat_tcp.c:442:10: note: use '==' to turn this assignment into an equality comparison
  if (he = id_get(id,
         ^
         ==
pat_tcp.c:454:8: warning: cast to 'void *' from smaller integer type 'int' [-Wint-to-pointer-cast]
                            (VOID_PTR)(++i))) != 0)
                            ^
pat_tcp.c:842:11: warning: using the result of an assignment as a condition without parentheses [-Wparentheses]
          if (he = id_get(optional_id,
              ~~~^~~~~~~~~~~~~~~~~~~~~
pat_tcp.c:842:11: note: place parentheses around the assignment to silence this warning
          if (he = id_get(optional_id,
                 ^
pat_tcp.c:842:11: note: use '==' to turn this assignment into an equality comparison
          if (he = id_get(optional_id,
                 ^
                 ==
pat_tcp.c:847:11: warning: using the result of an assignment as a condition without parentheses [-Wparentheses]
          if (he = id_get(optional_id,
              ~~~^~~~~~~~~~~~~~~~~~~~~
pat_tcp.c:847:11: note: place parentheses around the assignment to silence this warning
          if (he = id_get(optional_id,
                 ^
pat_tcp.c:847:11: note: use '==' to turn this assignment into an equality comparison
          if (he = id_get(optional_id,
                 ^
                 ==
--- pat_time.o ---
gcc -O2 -I/usr/pkg/include -I/usr/pkg/include/libnet10 -I. -c pat_time.c
--- pat_tcp.o ---
4 warnings generated.
--- pat_tr.o ---
gcc -O2 -I/usr/pkg/include -I/usr/pkg/include/libnet10 -I. -c pat_tr.c
--- pat_udp.o ---
gcc -O2 -I/usr/pkg/include -I/usr/pkg/include/libnet10 -I. -c pat_udp.c
--- pat.o ---
gcc -O2 -I/usr/pkg/include -I/usr/pkg/include/libnet10 -I. -c pat.c
--- pat_udp.o ---
pat_udp.c:360:6: warning: cast to 'void *' from smaller integer type 't_u32' (aka 'unsigned int') [-Wint-to-pointer-cast]
                          (VOID_PTR)(t_u32)dport))
                          ^
pat_udp.c:359:11: warning: using the result of an assignment as a condition without parentheses [-Wparentheses]
          if (he = id_get(pat_udp_sub_id,
              ~~~^~~~~~~~~~~~~~~~~~~~~~~~
pat_udp.c:359:11: note: place parentheses around the assignment to silence this warning
          if (he = id_get(pat_udp_sub_id,
                 ^
pat_udp.c:359:11: note: use '==' to turn this assignment into an equality comparison
          if (he = id_get(pat_udp_sub_id,
                 ^
                 ==
pat_udp.c:367:8: warning: cast to 'void *' from smaller integer type 't_u32' (aka 'unsigned int') [-Wint-to-pointer-cast]
                            (VOID_PTR)(t_u32)sport))
                            ^
pat_udp.c:366:13: warning: using the result of an assignment as a condition without parentheses [-Wparentheses]
            if (he = id_get(pat_udp_sub_id,
                ~~~^~~~~~~~~~~~~~~~~~~~~~~~
pat_udp.c:366:13: note: place parentheses around the assignment to silence this warning
            if (he = id_get(pat_udp_sub_id,
                   ^
pat_udp.c:366:13: note: use '==' to turn this assignment into an equality comparison
            if (he = id_get(pat_udp_sub_id,
                   ^
                   ==
4 warnings generated.
--- patdef.o ---
gcc -O2 -I/usr/pkg/include -I/usr/pkg/include/libnet10 -I. -c patdef.c
--- pat.o ---
pat.c:29:14: warning: implicit declaration of function 'gmt2local' is invalid in C99 [-Wimplicit-function-declaration]
  pat_zone = gmt2local(0);
             ^
pat.c:87:11: warning: using the result of an assignment as a condition without parentheses [-Wparentheses]
  if (str = getenv("PAT_VERB_LEVEL"))
      ~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~
pat.c:87:11: note: place parentheses around the assignment to silence this warning
  if (str = getenv("PAT_VERB_LEVEL"))
          ^
      (                             )
pat.c:87:11: note: use '==' to turn this assignment into an equality comparison
  if (str = getenv("PAT_VERB_LEVEL"))
          ^
          ==
2 warnings generated.
--- nbgethost.o ---
gcc -O2 -I/usr/pkg/include -I/usr/pkg/include/libnet10 -I. -c nbgethost.c
--- patdef.o ---
patdef.c:52:6: warning: cast to 'void *' from smaller integer type 'int' [-Wint-to-pointer-cast]
                          (VOID_PTR)i,
                          ^
patdef.c:130:14: warning: using the result of an assignment as a condition without parentheses [-Wparentheses]
      if (he = id_get(optional_id,
          ~~~^~~~~~~~~~~~~~~~~~~~~
patdef.c:130:14: note: place parentheses around the assignment to silence this warning
      if (he = id_get(optional_id,
             ^
patdef.c:130:14: note: use '==' to turn this assignment into an equality comparison
      if (he = id_get(optional_id,
             ^
             ==
patdef.c:143:5: warning: cast to 'void *' from smaller integer type 'int' [-Wint-to-pointer-cast]
                                (VOID_PTR)(++i))) != 0)
                                ^
patdef.c:251:10: warning: using the result of an assignment as a condition without parentheses [-Wparentheses]
  if (he = id_get(id,
      ~~~^~~~~~~~~~~~
patdef.c:251:10: note: place parentheses around the assignment to silence this warning
  if (he = id_get(id,
         ^
patdef.c:251:10: note: use '==' to turn this assignment into an equality comparison
  if (he = id_get(id,
         ^
         ==
patdef.c:263:8: warning: cast to 'void *' from smaller integer type 'int' [-Wint-to-pointer-cast]
                            (VOID_PTR)(++i))) != 0)
                            ^
patdef.c:287:10: warning: using the result of an assignment as a condition without parentheses [-Wparentheses]
  if (he = id_get(id,
      ~~~^~~~~~~~~~~~
patdef.c:287:10: note: place parentheses around the assignment to silence this warning
  if (he = id_get(id,
         ^
patdef.c:287:10: note: use '==' to turn this assignment into an equality comparison
  if (he = id_get(id,
         ^
         ==
6 warnings generated.
--- nbgethost.o ---
nbgethost.c:185:11: warning: using the result of an assignment as a condition without parentheses [-Wparentheses]
          if (he = dict_get(inaddr_dict,str))
              ~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~
nbgethost.c:185:11: note: place parentheses around the assignment to silence this warning
          if (he = dict_get(inaddr_dict,str))
                 ^
              (                             )
nbgethost.c:185:11: note: use '==' to turn this assignment into an equality comparison
          if (he = dict_get(inaddr_dict,str))
                 ^
                 ==
nbgethost.c:243:14: warning: using the result of an assignment as a condition without parentheses [-Wparentheses]
      if (he = dict_get(hostname_dict,inet_ntoa(*mba_inaddr)))
          ~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
nbgethost.c:243:14: note: place parentheses around the assignment to silence this warning
      if (he = dict_get(hostname_dict,inet_ntoa(*mba_inaddr)))
             ^
          (                                                  )
nbgethost.c:243:14: note: use '==' to turn this assignment into an equality comparison
      if (he = dict_get(hostname_dict,inet_ntoa(*mba_inaddr)))
             ^
             ==
nbgethost.c:249:18: warning: using the result of an assignment as a condition without parentheses [-Wparentheses]
          if (hostentry = nbgethostbyaddr((char *)mba_inaddr,
              ~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
nbgethost.c:249:18: note: place parentheses around the assignment to silence this warning
          if (hostentry = nbgethostbyaddr((char *)mba_inaddr,
--- pkt.o ---
gcc -O2 -I/usr/pkg/include -I/usr/pkg/include/libnet10 -I. -c pkt.c
--- nbgethost.o ---
                        ^
nbgethost.c:249:18: note: use '==' to turn this assignment into an equality comparison
          if (hostentry = nbgethostbyaddr((char *)mba_inaddr,
                        ^
                        ==
3 warnings generated.
--- pktio.o ---
gcc -O2 -I/usr/pkg/include -I/usr/pkg/include/libnet10 -I. -c pktio.c
--- pkt.o ---
pkt.c:882:11: warning: using the result of an assignment as a condition without parentheses [-Wparentheses]
  if (ptr = index(str,'.'))
      ~~~~^~~~~~~~~~~~~~~~
pkt.c:882:11: note: place parentheses around the assignment to silence this warning
  if (ptr = index(str,'.'))
          ^
      (                   )
pkt.c:882:11: note: use '==' to turn this assignment into an equality comparison
  if (ptr = index(str,'.'))
          ^
          ==
pkt.c:1073:13: warning: using the result of an assignment as a condition without parentheses [-Wparentheses]
            if (he = dict_get(pfdd->extra_vars,var))
                ~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
pkt.c:1073:13: note: place parentheses around the assignment to silence this warning
            if (he = dict_get(pfdd->extra_vars,var))
                   ^
                (                                  )
pkt.c:1073:13: note: use '==' to turn this assignment into an equality comparison
            if (he = dict_get(pfdd->extra_vars,var))
                   ^
                   ==
--- pktio.o ---
pktio.c:103:3: warning: format specifies type 'int' but the argument has type 'unsigned long' [-Wformat]
                sizeof (t_pkt_io));
                ^~~~~~~~~~~~~~~~~
pktio.c:138:17: warning: format specifies type 'int' but the argument has type 'size_t' (aka 'unsigned long') [-Wformat]
            patnamebuf,strlen(patnamebuf),patnamelen);
                       ^~~~~~~~~~~~~~~~~~
2 warnings generated.
--- pktsav.o ---
gcc -O2 -I/usr/pkg/include -I/usr/pkg/include/libnet10 -I. -c pktsav.c
--- paterr.o ---
gcc -O2 -I/usr/pkg/include -I/usr/pkg/include/libnet10 -I. -c paterr.c
--- pkt.o ---
2 warnings generated.
--- gmt2local.o ---
gcc -O2 -I/usr/pkg/include -I/usr/pkg/include/libnet10 -I. -c gmt2local.c
--- paterr.o ---
paterr.c:76:7: warning: cast to 'void *' from smaller integer type 'int' [-Wint-to-pointer-cast]
                           (VOID_PTR)(ERR_PAT_START + i),
                           ^
1 warning generated.
--- Xmg.o ---
gcc -O2 -I/usr/pkg/include -I/usr/pkg/include/libnet10 -I. -c Xmg.c
--- XmgAction.o ---
gcc -O2 -I/usr/pkg/include -I/usr/pkg/include/libnet10 -I. -c XmgAction.c
--- Xmg.o ---
Xmg.c:113:3: warning: implicit declaration of function 'XmgRegisterConverters' is invalid in C99 [-Wimplicit-function-declaration]
  XmgRegisterConverters();
  ^
Xmg.c:121:1: warning: control may reach end of non-void function [-Wreturn-type]
}
^
2 warnings generated.
--- XmgCvt.o ---
gcc -O2 -I/usr/pkg/include -I/usr/pkg/include/libnet10 -I. -c XmgCvt.c
--- XmgDict.o ---
gcc -O2 -I/usr/pkg/include -I/usr/pkg/include/libnet10 -I. -c XmgDict.c
--- XmgCvt.o ---
XmgCvt.c:200:17: warning: using the result of an assignment as a condition without parentheses [-Wparentheses]
      if (assoc = assoc_str_ptr_from_nleft(XmgGCMembersAssoc,member))
          ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
XmgCvt.c:200:17: note: place parentheses around the assignment to silence this warning
      if (assoc = assoc_str_ptr_from_nleft(XmgGCMembersAssoc,member))
                ^
          (                                                         )
XmgCvt.c:200:17: note: use '==' to turn this assignment into an equality comparison
      if (assoc = assoc_str_ptr_from_nleft(XmgGCMembersAssoc,member))
                ^
                ==
XmgCvt.c:226:16: warning: using the result of an assignment as a condition without parentheses [-Wparentheses]
            if (assoc = assoc_str_ptr_from_left(XmgGCFunctionAssoc,value))
                ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
XmgCvt.c:226:16: note: place parentheses around the assignment to silence this warning
            if (assoc = assoc_str_ptr_from_left(XmgGCFunctionAssoc,value))
                      ^
                (                                                        )
XmgCvt.c:226:16: note: use '==' to turn this assignment into an equality comparison
            if (assoc = assoc_str_ptr_from_left(XmgGCFunctionAssoc,value))
                      ^
                      ==
XmgCvt.c:297:16: warning: using the result of an assignment as a condition without parentheses [-Wparentheses]
            if (assoc = assoc_str_ptr_from_left(XmgGCLineStyleAssoc,value))
                ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
XmgCvt.c:297:16: note: place parentheses around the assignment to silence this warning
            if (assoc = assoc_str_ptr_from_left(XmgGCLineStyleAssoc,value))
                      ^
                (                                                         )
XmgCvt.c:297:16: note: use '==' to turn this assignment into an equality comparison
            if (assoc = assoc_str_ptr_from_left(XmgGCLineStyleAssoc,value))
                      ^
                      ==
XmgCvt.c:311:16: warning: using the result of an assignment as a condition without parentheses [-Wparentheses]
            if (assoc = assoc_str_ptr_from_left(XmgGCCapStyleAssoc,value))
                ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
XmgCvt.c:311:16: note: place parentheses around the assignment to silence this warning
            if (assoc = assoc_str_ptr_from_left(XmgGCCapStyleAssoc,value))
                      ^
                (                                                        )
XmgCvt.c:311:16: note: use '==' to turn this assignment into an equality comparison
            if (assoc = assoc_str_ptr_from_left(XmgGCCapStyleAssoc,value))
                      ^
                      ==
XmgCvt.c:325:16: warning: using the result of an assignment as a condition without parentheses [-Wparentheses]
            if (assoc = assoc_str_ptr_from_left(XmgGCJoinStyleAssoc,value))
                ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
XmgCvt.c:325:16: note: place parentheses around the assignment to silence this warning
            if (assoc = assoc_str_ptr_from_left(XmgGCJoinStyleAssoc,value))
                      ^
                (                                                         )
XmgCvt.c:325:16: note: use '==' to turn this assignment into an equality comparison
            if (assoc = assoc_str_ptr_from_left(XmgGCJoinStyleAssoc,value))
                      ^
                      ==
XmgCvt.c:339:16: warning: using the result of an assignment as a condition without parentheses [-Wparentheses]
            if (assoc = assoc_str_ptr_from_left(XmgGCFillStyleAssoc,value))
                ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
XmgCvt.c:339:16: note: place parentheses around the assignment to silence this warning
            if (assoc = assoc_str_ptr_from_left(XmgGCFillStyleAssoc,value))
                      ^
                (                                                         )
XmgCvt.c:339:16: note: use '==' to turn this assignment into an equality comparison
            if (assoc = assoc_str_ptr_from_left(XmgGCFillStyleAssoc,value))
                      ^
                      ==
XmgCvt.c:353:16: warning: using the result of an assignment as a condition without parentheses [-Wparentheses]
            if (assoc = assoc_str_ptr_from_left(XmgGCFillRuleAssoc,value))
                ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
XmgCvt.c:353:16: note: place parentheses around the assignment to silence this warning
            if (assoc = assoc_str_ptr_from_left(XmgGCFillRuleAssoc,value))
                      ^
                (                                                        )
XmgCvt.c:353:16: note: use '==' to turn this assignment into an equality comparison
            if (assoc = assoc_str_ptr_from_left(XmgGCFillRuleAssoc,value))
                      ^
                      ==
XmgCvt.c:367:16: warning: using the result of an assignment as a condition without parentheses [-Wparentheses]
            if (assoc = assoc_str_ptr_from_left(XmgGCArcModeAssoc,value))
                ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
XmgCvt.c:367:16: note: place parentheses around the assignment to silence this warning
            if (assoc = assoc_str_ptr_from_left(XmgGCArcModeAssoc,value))
                      ^
                (                                                       )
XmgCvt.c:367:16: note: use '==' to turn this assignment into an equality comparison
            if (assoc = assoc_str_ptr_from_left(XmgGCArcModeAssoc,value))
                      ^
                      ==
XmgCvt.c:513:16: warning: using the result of an assignment as a condition without parentheses [-Wparentheses]
            if (assoc = assoc_str_ptr_from_left(XmgGCSubwindowModeAssoc,value))
                ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
XmgCvt.c:513:16: note: place parentheses around the assignment to silence this warning
            if (assoc = assoc_str_ptr_from_left(XmgGCSubwindowModeAssoc,value))
                      ^
                (                                                             )
XmgCvt.c:513:16: note: use '==' to turn this assignment into an equality comparison
            if (assoc = assoc_str_ptr_from_left(XmgGCSubwindowModeAssoc,value))
                      ^
                      ==
9 warnings generated.
--- XmgErr.o ---
gcc -O2 -I/usr/pkg/include -I/usr/pkg/include/libnet10 -I. -c XmgErr.c
--- XmgDict.o ---
XmgDict.c:28:10: warning: using the result of an assignment as a condition without parentheses [-Wparentheses]
  if (he = dict_get(XmgXFSDict,name))
      ~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~
XmgDict.c:28:10: note: place parentheses around the assignment to silence this warning
  if (he = dict_get(XmgXFSDict,name))
         ^
      (                             )
XmgDict.c:28:10: note: use '==' to turn this assignment into an equality comparison
  if (he = dict_get(XmgXFSDict,name))
         ^
         ==
XmgDict.c:30:7: error: non-void function 'XmgXFSDictAdd' should return a value [-Wreturn-type]
      return ;
      ^
XmgDict.c:46:10: warning: using the result of an assignment as a condition without parentheses [-Wparentheses]
  if (he = dict_get(XmgXFSDict,name))
      ~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~
XmgDict.c:46:10: note: place parentheses around the assignment to silence this warning
  if (he = dict_get(XmgXFSDict,name))
         ^
      (                             )
XmgDict.c:46:10: note: use '==' to turn this assignment into an equality comparison
  if (he = dict_get(XmgXFSDict,name))
         ^
         ==
XmgDict.c:67:10: warning: using the result of an assignment as a condition without parentheses [-Wparentheses]
  if (he = dict_get(XmgPixelDict,name))
      ~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~
XmgDict.c:67:10: note: place parentheses around the assignment to silence this warning
  if (he = dict_get(XmgPixelDict,name))
         ^
      (                               )
XmgDict.c:67:10: note: use '==' to turn this assignment into an equality comparison
  if (he = dict_get(XmgPixelDict,name))
         ^
         ==
XmgDict.c:74:8: error: non-void function 'XmgPixelDictAdd' should return a value [-Wreturn-type]
              return ;
              ^
XmgDict.c:118:10: warning: using the result of an assignment as a condition without parentheses [-Wparentheses]
  if (he = dict_get(XmgPixelDict,name))
      ~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~
XmgDict.c:118:10: note: place parentheses around the assignment to silence this warning
  if (he = dict_get(XmgPixelDict,name))
         ^
      (                               )
XmgDict.c:118:10: note: use '==' to turn this assignment into an equality comparison
  if (he = dict_get(XmgPixelDict,name))
         ^
         ==
XmgDict.c:154:10: warning: using the result of an assignment as a condition without parentheses [-Wparentheses]
  if (he = dict_get(XmgPixmapDict,name))
      ~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
XmgDict.c:154:10: note: place parentheses around the assignment to silence this warning
  if (he = dict_get(XmgPixmapDict,name))
         ^
      (                                )
XmgDict.c:154:10: note: use '==' to turn this assignment into an equality comparison
  if (he = dict_get(XmgPixmapDict,name))
         ^
         ==
XmgDict.c:161:8: error: non-void function 'XmgPixmapDictAdd' should return a value [-Wreturn-type]
              return ;
              ^
XmgDict.c:212:10: warning: using the result of an assignment as a condition without parentheses [-Wparentheses]
  if (he = dict_get(XmgPixmapDict,name))
      ~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
XmgDict.c:212:10: note: place parentheses around the assignment to silence this warning
  if (he = dict_get(XmgPixmapDict,name))
         ^
      (                                )
XmgDict.c:212:10: note: use '==' to turn this assignment into an equality comparison
  if (he = dict_get(XmgPixmapDict,name))
         ^
         ==
XmgDict.c:409:45: warning: format specifies type 'unsigned int' but the argument has type 'Pixmap' (aka 'unsigned long') [-Wformat]
      fprintf(stderr,"\t%d %x\n",xpr->depth,xpr->pixmap);
                           ~~               ^~~~~~~~~~~
                           %lx
7 warnings and 3 errors generated.
*** [XmgDict.o] Error code 1

make: stopped in /scratch/net/xipdump/work/xipdump-1.5.4
--- XmgErr.o ---
XmgErr.c:40:7: warning: cast to 'void *' from smaller integer type 'int' [-Wint-to-pointer-cast]
                           (VOID_PTR)(ERR_XMG_START + i),
                           ^
XmgErr.c:75:11: warning: using the result of an assignment as a condition without parentheses [-Wparentheses]
  if (err = err_msg(errcode))
      ~~~~^~~~~~~~~~~~~~~~~~
XmgErr.c:75:11: note: place parentheses around the assignment to silence this warning
  if (err = err_msg(errcode))
          ^
      (                     )
XmgErr.c:75:11: note: use '==' to turn this assignment into an equality comparison
  if (err = err_msg(errcode))
          ^
          ==
2 warnings generated.
1 error

make: stopped in /scratch/net/xipdump/work/xipdump-1.5.4
*** Error code 2

Stop.
make: stopped in /bulk-data/pkgsrc/net/xipdump
*** Error code 1

Stop.
make: stopped in /bulk-data/pkgsrc/net/xipdump
