]> git.saurik.com Git - apple/system_cmds.git/blobdiff - at.tproj/perm.c
system_cmds-790.30.1.tar.gz
[apple/system_cmds.git] / at.tproj / perm.c
index 0dfad7803ca3cb6fa93cd9cef77f7b6e3759fcba..82bab872cb093fa4bf4f7e146cc606022728c44a 100644 (file)
@@ -1,4 +1,4 @@
-/* 
+/*
  *  perm.c - check user permission for at(1)
  *  Copyright (C) 1994  Thomas Koenig
  *
  *  perm.c - check user permission for at(1)
  *  Copyright (C) 1994  Thomas Koenig
  *
@@ -60,10 +60,10 @@ static int check_for_user(FILE *fp,const char *name);
 static int check_for_user(FILE *fp,const char *name)
 {
     char *buffer;
 static int check_for_user(FILE *fp,const char *name)
 {
     char *buffer;
-    size_t len;
+    int len;
     int found = 0;
 
     int found = 0;
 
-    len = strlen(name);
+    len = (int)strlen(name);
     if ((buffer = malloc(len+2)) == NULL)
        errx(EXIT_FAILURE, "virtual memory exhausted");
 
     if ((buffer = malloc(len+2)) == NULL)
        errx(EXIT_FAILURE, "virtual memory exhausted");