RPM Package Manager, CVS Repository
  http://rpm5.org/cvs/
  ____________________________________________________________________________

  Server: rpm5.org                         Name:   Pinto Elia
  Root:   /v/rpm/cvs                       Email:  [email protected]
  Module: popt                             Date:   08-Jan-2014 10:33:42
  Branch: HEAD                             Handle: 2014010809334200

  Modified files:
    popt                    CHANGES poptconfig.c

  Log:
    poptconfig.c reduce variables scope (cppcheck warning)

  Summary:
    Revision    Changes     Path
    1.191       +1  -0      popt/CHANGES
    1.65        +1  -1      popt/poptconfig.c
  ____________________________________________________________________________

  patch -p0 <<'@@ .'
  Index: popt/CHANGES
  ============================================================================
  $ cvs diff -u -r1.190 -r1.191 CHANGES
  --- popt/CHANGES      19 Dec 2013 18:01:07 -0000      1.190
  +++ popt/CHANGES      8 Jan 2014 09:33:42 -0000       1.191
  @@ -1,4 +1,5 @@
   1.17 -> 2.0:
  +    - devzero2000: poptconfig.c reduce variables scope (cppcheck warning)
       - devzero2000: add cppcheck conditional makefile target
       - devzero2000: drop expr syntax error in make check under dash
       - devzero2000: Print to the end of the configure phase the options we 
have
  @@ .
  patch -p0 <<'@@ .'
  Index: popt/poptconfig.c
  ============================================================================
  $ cvs diff -u -r1.64 -r1.65 poptconfig.c
  --- popt/poptconfig.c 19 Dec 2013 21:30:18 -0000      1.64
  +++ popt/poptconfig.c 8 Jan 2014 09:33:42 -0000       1.65
  @@ -167,7 +167,6 @@
       int fdno;
       char * b = NULL;
       off_t nb = 0;
  -    char * s, * t, * se;
       int rc = POPT_ERROR_ERRNO;       /* assume failure */
   
       fdno = open(fn, O_RDONLY);
  @@ -197,6 +196,7 @@
       if (flags & POPT_READFILE_TRIMNEWLINES)
   /*@=bitwisesigned@*/
       {
  +     char * s, * t, * se;
        for (t = b, s = b, se = b + nb; *s && s < se; s++) {
            switch (*s) {
            case '\\':
  @@ .
______________________________________________________________________
RPM Package Manager                                    http://rpm5.org
CVS Sources Repository                                [email protected]

Reply via email to