Ignore:
Timestamp:
Jan 29, 2009, 7:54:16 PM (16 years ago)
Author:
katerina
Message:

Fix for ticket #136 (compile error); also enhance testsuite to catch compiler warnings.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/sh_portcheck.c

    r206 r210  
    129129#include "sh_utils.h"
    130130#include "sh_modules.h"
     131#define SH_NEED_GETHOSTBYXXX
    131132#include "sh_static.h"
    132133#include "sh_pthread.h"
     
    655656  else
    656657    {
    657       snprintf (buf, sizeof(buf), _("unknown"));
     658      snprintf (buf, sizeof(buf), "%s",_("unknown"));
    658659    }
    659660  return buf;
     
    975976int sh_portchk_init (struct mod_type * arg)
    976977{
     978#ifndef HAVE_PTHREAD
     979  (void) arg;
     980#endif
     981
    977982  if (sh_portchk_active == S_FALSE)
    978983    return SH_MOD_FAILED;
Note: See TracChangeset for help on using the changeset viewer.