fwcontrol patch

From: KIYOHARA Takashi (kiyohara_at_kk.iij4u.or.jp)
Date: 05/30/05

  • Next message: FreeBSD Tinderbox: "[current tinderbox] failure on alpha/alpha"
    Date: Mon, 30 May 2005 12:10:56 +0900 (JST)
    To: freebsd-current@freebsd.org
    
    
    

    Hi! all.

    I request to change for usr.sbin/fwcontrol/fwcontrol.c.

      1. Return value of sysctl_set_int() is int. But no return.
      2. indent miss in main().

    Thanks

    --
    kiyohara
    
    

    --- fwcontrol.c.orig 2005-05-30 11:56:26.000000000 +0900
    +++ fwcontrol.c 2005-05-30 11:56:38.000000000 +0900
    @@ -608,6 +608,7 @@
     {
             if (sysctlbyname(name, NULL, NULL, &val, sizeof(int)) < 0)
                     err(1, "sysctl %s failed.", name);
    + return (0);
     }
     
     int
    @@ -655,8 +656,8 @@
                             show_crom(crom_buf);
                             break;
                     case 'm':
    - if (eui64_hostton(optarg, &target) != 0 &&
    - eui64_aton(optarg, &target) != 0)
    + if (eui64_hostton(optarg, &target) != 0 &&
    + eui64_aton(optarg, &target) != 0)
                                     errx(1, "invalid target: %s", optarg);
                             eui.hi = ntohl(*(u_int32_t*)&(target.octet[0]));
                             eui.lo = ntohl(*(u_int32_t*)&(target.octet[4]));

    
    

    _______________________________________________
    freebsd-current@freebsd.org mailing list
    http://lists.freebsd.org/mailman/listinfo/freebsd-current
    To unsubscribe, send any mail to "freebsd-current-unsubscribe@freebsd.org"


  • Next message: FreeBSD Tinderbox: "[current tinderbox] failure on alpha/alpha"

    Relevant Pages

    • Re: Hierarchical data again and part I
      ... Also, one more thing, sorry, need to pass your @indent back and forth so ... CREATE Procedure mySPLoop(@Indent INT OUTPUT,@parentID INT) AS ... That cursor will need to pull items with it's ... >> DECLARE myCur CURSOR FOR ...
      (microsoft.public.sqlserver.programming)
    • Re: starting into H&S
      ... indent: give me a natural number less than 1000 ... int main(int argc, char *argv) ... printf(" argv2 is %s\n", path); ...
      (comp.lang.c)
    • Re: spurious C warnings..
      ... 6809 home system - so I still tend to avoid making assumptions ... Anyway, your explanation makes sense. ... It first tries for int, ... To UNSUBSCRIBE, email to debian-user-REQUEST@xxxxxxxxxxxxxxxx ...
      (Debian-User)
    • Re: any good
      ... >write a program to read 2 inetegers with the following signficance the ... > int time24,mins,hour24,hourout; ... statements into hourout = time24/MAX. ... don't indent the if itself. ...
      (comp.lang.c)
    • Re: [BC] C tutorial q4
      ... Whatever options you used to run indent, ... A C program consists of a sequence of statements which are executed ... printf(" "); ...
      (comp.lang.c)