[Libvir] Option string in getopt_long wrong?

Daniel Veillard veillard at redhat.com
Fri Jan 26 11:51:15 UTC 2007


On Fri, Jan 26, 2007 at 11:38:58AM +0000, Richard W.M. Jones wrote:
> 
>     while ((arg = getopt_long(end, argv, "d:hqtv", opt, &idx)) != -1) {
>                                           ------
>         switch (arg) {
>             case 'd':
>                 ctl->debug = atoi(optarg);
>                 break;
>             case 'h':
>                 help = 1;
>                 break;
>             case 'q':
>                 ctl->quiet = TRUE;
>                 break;
>             case 't':
>                 ctl->timing = TRUE;
>                 break;
>             case 'c':
>                 ctl->name = vshStrdup(ctl, optarg);
>                 break;
>         // etc
> 
> Shurley shome mishtake?

  Right, thanks, fixed in CVS ;-)
That file need also a reformatting cleanup but I will wait for Dan's patch
for console and vnc to be applied first. I use this for C indentation:

paphio:~ -> cat ~/bin/cb 
#!/bin/sh
indent -bad -bap -bbb -bli4 -br -ce -brs -cs -i4 -l75 -lc75 -nut -sbi4 -psl -saf -sai -saw -sbi4 -ss -sc -cdw -cli4 -npcs -nbc


Daniel

-- 
Red Hat Virtualization group http://redhat.com/virtualization/
Daniel Veillard      | virtualization library  http://libvirt.org/
veillard at redhat.com  | libxml GNOME XML XSLT toolkit  http://xmlsoft.org/
http://veillard.com/ | Rpmfind RPM search engine  http://rpmfind.net/




More information about the libvir-list mailing list