Delete trailing whitespace at end of lines.
[pspp-builds.git] / src / language / utilities / permissions.c
index bce2194a83dcd603ffc12ccc7ec5064579ea24b1..895d2e379eaea0ff95d91da3004d3e75345ca31f 100644 (file)
@@ -1,6 +1,5 @@
 /* PSPP - computes sample statistics.
    Copyright (C) 2004 Free Software Foundation, Inc.
-   Author: John Darrington
 
    This program is free software; you can redistribute it and/or
    modify it under the terms of the GNU General Public License as
@@ -29,7 +28,6 @@
 #include <libpspp/message.h>
 #include <language/lexer/lexer.h>
 #include <libpspp/misc.h>
-#include "stat-macros.h"
 #include <libpspp/str.h>
 
 #include "gettext.h"
@@ -56,7 +54,7 @@ cmd_permissions (struct lexer *lexer, struct dataset *ds UNUSED)
 
 
   lex_match (lexer, '/');
-  
+
   if ( ! lex_match_id (lexer, "PERMISSIONS"))
     goto error;
 
@@ -64,12 +62,12 @@ cmd_permissions (struct lexer *lexer, struct dataset *ds UNUSED)
 
   if ( lex_match_id (lexer, "READONLY"))
     {
-      if ( ! change_permissions(fn, PER_RO ) ) 
+      if ( ! change_permissions(fn, PER_RO ) )
        goto error;
     }
   else if ( lex_match_id (lexer, "WRITEABLE"))
     {
-      if ( ! change_permissions(fn, PER_RW ) ) 
+      if ( ! change_permissions(fn, PER_RW ) )
        goto error;
     }
   else
@@ -104,7 +102,7 @@ change_permissions(const char *file_name, enum PER per)
     }
 
 
-  if ( -1 == stat(file_name, &buf) ) 
+  if ( -1 == stat(file_name, &buf) )
     {
       const int errnum = errno;
       msg (SE, _("Cannot stat %s: %s"), file_name, strerror(errnum));