Re: Option string in getopt_long wrong?

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



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@xxxxxxxxxx  | libxml GNOME XML XSLT toolkit  http://xmlsoft.org/
http://veillard.com/ | Rpmfind RPM search engine  http://rpmfind.net/


[Index of Archives]     [Virt Tools]     [Libvirt Users]     [Lib OS Info]     [Fedora Users]     [Fedora Desktop]     [Fedora SELinux]     [Big List of Linux Books]     [Yosemite News]     [KDE Users]     [Fedora Tools]