[BACK]Return to units.c CVS log [TXT][DIR] Up to [local] / src / usr.bin / units

Diff for /src/usr.bin/units/units.c between version 1.21 and 1.22

version 1.21, 2015/10/06 13:29:56 version 1.22, 2015/10/09 01:37:09
Line 632 
Line 632 
         extern char *optarg;          extern char *optarg;
         extern int optind;          extern int optind;
   
         if (tame("stdio rpath", NULL) == -1)          if (pledge("stdio rpath", NULL) == -1)
                 err(1, "tame");                  err(1, "pledge");
   
         while ((optchar = getopt(argc, argv, "vqf:")) != -1) {          while ((optchar = getopt(argc, argv, "vqf:")) != -1) {
                 switch (optchar) {                  switch (optchar) {
Line 664 
Line 664 
   
         readunits(userfile);          readunits(userfile);
   
         if (tame("stdio", NULL) == -1)          if (pledge("stdio", NULL) == -1)
                 err(1, "tame");                  err(1, "pledge");
   
         if (argc == 3) {          if (argc == 3) {
                 strlcpy(havestr, argv[0], sizeof(havestr));                  strlcpy(havestr, argv[0], sizeof(havestr));

Legend:
Removed from v.1.21  
changed lines
  Added in v.1.22