[Olsr-cvs] olsrd-current/lib/httpinfo/src admin_interface.c, 1.16, 1.17

Bernd Petrovitsch (spam-protected)
Wed Dec 12 23:49:06 CET 2007


Update of /cvsroot/olsrd/olsrd-current/lib/httpinfo/src
In directory sc8-pr-cvs3.sourceforge.net:/tmp/cvs-serv4346/lib/httpinfo/src

Modified Files:
	admin_interface.c 
Log Message:
* avoid the "%1$" in format strigns: CygWin (IIRC) doesn't support this.


Index: admin_interface.c
===================================================================
RCS file: /cvsroot/olsrd/olsrd-current/lib/httpinfo/src/admin_interface.c,v
retrieving revision 1.16
retrieving revision 1.17
diff -C2 -d -r1.16 -r1.17
*** admin_interface.c	12 Dec 2007 22:06:24 -0000	1.16
--- admin_interface.c	12 Dec 2007 22:49:04 -0000	1.17
***************
*** 156,162 ****
      for(hna = olsr_cnf->hna_entries; hna; hna = hna->next) {
        struct ipaddr_str netbuf;
        size += snprintf(&buf[size], bufsize-size,
!                        "<tr><td halign=\"middle\"><input type=\"checkbox\" name=\"del_hna%1$s*%2$d\" class=\"input_checkbox\"></td><td>%1$s</td><td>%2$d</td></tr>\n",
!                        olsr_ip_to_string(&netbuf, &hna->net.prefix),
                         hna->net.prefix_len);
      }
--- 156,165 ----
      for(hna = olsr_cnf->hna_entries; hna; hna = hna->next) {
        struct ipaddr_str netbuf;
+       olsr_ip_to_string(&netbuf, &hna->net.prefix);
        size += snprintf(&buf[size], bufsize-size,
!                        "<tr><td halign=\"middle\"><input type=\"checkbox\" name=\"del_hna%s*%d\" class=\"input_checkbox\"></td><td>%s</td><td>%d</td></tr>\n",
!                        netbuf.buf,
!                        hna->net.prefix_len,
!                        netbuf.buf,
                         hna->net.prefix_len);
      }





More information about the Olsr-cvs mailing list