Print this page
10097 indenting fixes in usr/src/{lib,common}
   1 /*
   2  * Copyright 2009 Sun Microsystems, Inc.  All rights reserved.
   3  * Use is subject to license terms.
   4  */
   5 
   6 /*




   7  * This program is copyright Alec Muffett 1993. The author disclaims all
   8  * responsibility or liability with respect to it's usage or its effect
   9  * upon hardware or computer systems, and maintains copyright as set out
  10  * in the "LICENCE" document which accompanies distributions of Crack v4.0
  11  * and upwards.
  12  */
  13 
  14 #include "packer.h"
  15 
  16 void
  17 PWRemove(char *path)
  18 {
  19         char fname[PATH_MAX];
  20 
  21         (void) snprintf(fname, sizeof (fname), "%s/%s", path,
  22             DICT_DATABASE_PWI);
  23         (void) unlink(fname);
  24         (void) snprintf(fname, sizeof (fname), "%s/%s", path,
  25             DICT_DATABASE_PWD);
  26         (void) unlink(fname);


   1 /*
   2  * Copyright 2009 Sun Microsystems, Inc.  All rights reserved.
   3  * Use is subject to license terms.
   4  */
   5 
   6 /*
   7  * Copyright (c) 2018, Joyent, Inc.
   8  */
   9 
  10 /*
  11  * This program is copyright Alec Muffett 1993. The author disclaims all
  12  * responsibility or liability with respect to it's usage or its effect
  13  * upon hardware or computer systems, and maintains copyright as set out
  14  * in the "LICENCE" document which accompanies distributions of Crack v4.0
  15  * and upwards.
  16  */
  17 
  18 #include "packer.h"
  19 
  20 void
  21 PWRemove(char *path)
  22 {
  23         char fname[PATH_MAX];
  24 
  25         (void) snprintf(fname, sizeof (fname), "%s/%s", path,
  26             DICT_DATABASE_PWI);
  27         (void) unlink(fname);
  28         (void) snprintf(fname, sizeof (fname), "%s/%s", path,
  29             DICT_DATABASE_PWD);
  30         (void) unlink(fname);