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

  Server: rpm5.org                         Name:   Jeff Johnson
  Root:   /v/rpm/cvs                       Email:  j...@rpm5.org
  Module: lua                              Date:   29-Jun-2013 23:58:11
  Branch: rpm-5_4                          Handle: 2013062921581100

  Modified files:           (Branch: rpm-5_4)
    lua/local               lposix.c

  Log:
    - remove gcc warnings on Mac OS X.

  Summary:
    Revision    Changes     Path
    1.14.4.6    +8  -3      lua/local/lposix.c
  ____________________________________________________________________________

  patch -p0 <<'@@ .'
  Index: lua/local/lposix.c
  ============================================================================
  $ cvs diff -u -r1.14.4.5 -r1.14.4.6 lposix.c
  --- lua/local/lposix.c        29 Jun 2013 21:17:41 -0000      1.14.4.5
  +++ lua/local/lposix.c        29 Jun 2013 21:58:11 -0000      1.14.4.6
  @@ -3438,12 +3438,14 @@
   
   static int Paccept(lua_State *L)
   {
  -     int r;
        int fd_client;
        struct sockaddr_storage sa;
        unsigned int salen;
  +#ifdef       UNUSED
        char host[NI_MAXHOST];
        char serv[NI_MAXSERV];
  +     int r;
  +#endif
   
        int fd = luaL_checknumber(L, 1);
   
  @@ -3487,8 +3489,10 @@
        void *ud, *buf;
        socklen_t salen;
        struct sockaddr_storage sa;
  +#ifdef       UNUSED
        char host[NI_MAXHOST];
        char serv[NI_MAXSERV];
  +#endif
        int r;
        int fd = luaL_checkint(L, 1);
        int count = luaL_checkint(L, 2);
  @@ -3647,10 +3651,10 @@
   */
   static int Pfdatasync(lua_State *L)
   {
  -  int fd = luaL_checkint(L, 1);
  -#if defined(__APPLE__)
  +#if defined(__APPLE__)       /* XXX no prototype on Mac OS X Mountain Lion */
     return pushresult(L, 0, NULL);
   #else
  +  int fd = luaL_checkint(L, 1);
     return pushresult(L, fdatasync(fd), NULL);
   #endif
   }
  @@ -3809,6 +3813,7 @@
        MENTRY( Precvfrom       ),
        MENTRY( Psend           ),
        MENTRY( Psendto         ),
  +     MENTRY( Pshutdown       ),
        MENTRY( Psetsockopt     ),
   #endif
   
  @@ .
______________________________________________________________________
RPM Package Manager                                    http://rpm5.org
CVS Sources Repository                                rpm-cvs@rpm5.org

Reply via email to