Now need stdlib.h, don't need string.h; some misplaced variables.

This commit is contained in:
William McBrine
2006-10-31 15:33:30 +00:00
parent c12a1f9c6e
commit df74835e68

View File

@@ -12,9 +12,9 @@
************************************************************************/
#include <curspriv.h>
#include <string.h>
#include <stdlib.h>
RCSID("$Id: slk.c,v 1.42 2006/10/31 14:59:00 wmcbrine Exp $");
RCSID("$Id: slk.c,v 1.43 2006/10/31 15:33:30 wmcbrine Exp $");
/*man-start**************************************************************
@@ -218,10 +218,10 @@ static void _redraw(void)
int slk_set(int labnum, const char *label, int justify)
{
PDC_LOG(("slk_set() - called\n"));
int i;
PDC_LOG(("slk_set() - called\n"));
if (labnum < 1 || labnum > labels || justify < 0 || justify > 2)
return ERR;
@@ -275,7 +275,7 @@ int slk_noutrefresh(void)
char *slk_label(int labnum)
{
static char temp[64];
static char temp[33];
chtype *p;
int i;
@@ -562,10 +562,10 @@ int PDC_mouse_in_slk(int y, int x)
#ifdef PDC_WIDE
int slk_wset(int labnum, const wchar_t *label, int justify)
{
PDC_LOG(("slk_wset() - called\n"));
int i;
PDC_LOG(("slk_wset() - called\n"));
if (labnum < 1 || labnum > labels || justify < 0 || justify > 2)
return ERR;