Ticket #62134: Leopard.patch

File Leopard.patch, 1.2 KB (added by ballapete (Peter "Pete" Dyballa), 4 years ago)

Patch set to make wget @1.21.1 compile with GCC 7 on Leopard

  • lib/tempname.c

    old new  
    237237try_tempname_len (char *tmpl, int suffixlen, void *args,
    238238                  int (*tryfunc) (char *, void *), size_t x_suffix_len)
    239239{
    240   size_t len;
     240  size_t len, i;
    241241  char *XXXXXX;
    242242  unsigned int count;
    243243  int fd = -1;
     
    287287
    288288  for (count = 0; count < attempts; ++count)
    289289    {
    290       for (size_t i = 0; i < x_suffix_len; i++)
     290      for (i = 0; i < x_suffix_len; i++)
    291291        {
    292292          if (vdigits == 0)
    293293            {
  • src/progress.c

    old new  
    13661366static void
    13671367bar_set_params (const char *params)
    13681368{
     1369  char *param;
    13691370/* if run_with_timeout() will be used for read, needs to disable interactive bar,
    13701371   or  on every timeout(1s) we will have 'retry' with error "decryption failed" */
    13711372#if (defined(HAVE_LIBSSL) || defined(HAVE_LIBSSL32)) && defined(OPENSSL_RUN_WITHTIMEOUT)
     
    13751376#endif
    13761377  if (params)
    13771378    {
    1378       for (const char *param = params; *param; )
     1379      for (*param = params; *param; )
    13791380        {
    13801381          if (!strncmp (param, "force", 5))
    13811382            current_impl_locked = 1;