-/*
+/*
* perm.c - check user permission for at(1)
* Copyright (C) 1994 Thomas Koenig
*
/* Local headers */
#include "at.h"
+#include "panic.h"
#include "perm.h"
#include "privs.h"
static int check_for_user(FILE *fp,const char *name)
{
char *buffer;
- size_t len;
+ int len;
int found = 0;
- len = strlen(name);
+ len = (int)strlen(name);
if ((buffer = malloc(len+2)) == NULL)
errx(EXIT_FAILURE, "virtual memory exhausted");