[BACK]Return to snscore.c CVS log [TXT][DIR] Up to [cvs.NetBSD.org] / src / games / snake / snscore

Please note that diffs are not public domain; they are subject to the copyright notices on the relevant files.

Diff for /src/games/snake/snscore/snscore.c between version 1.10 and 1.11

version 1.10, 1999/09/09 17:28:00 version 1.11, 1999/09/12 09:02:23
Line 53  __RCSID("$NetBSD$");
Line 53  __RCSID("$NetBSD$");
 #include <stdio.h>  #include <stdio.h>
 #include <stdlib.h>  #include <stdlib.h>
 #include <string.h>  #include <string.h>
   #include <unistd.h>
 #include "pathnames.h"  #include "pathnames.h"
   
 const char *recfile = _PATH_RAWSCORES;  const char *recfile = _PATH_RAWSCORES;
Line 77  main()
Line 78  main()
         const   char *q;          const   char *q;
         struct  passwd  *p;          struct  passwd  *p;
   
           /* Revoke setgid privileges */
           setregid(getgid(), getgid());
   
         fd = fopen(recfile, "r");          fd = fopen(recfile, "r");
         if (fd == NULL)          if (fd == NULL)
                 err(1, "opening `%s'", recfile);                  err(1, "opening `%s'", recfile);

Legend:
Removed from v.1.10  
changed lines
  Added in v.1.11

CVSweb <webmaster@jp.NetBSD.org>