diff options
author | Christopher Faylor <me@cgf.cx> | 2004-10-25 15:49:36 +0000 |
---|---|---|
committer | Christopher Faylor <me@cgf.cx> | 2004-10-25 15:49:36 +0000 |
commit | 4bfc614b42c52ed78f66abff92e9103a9ce549e1 (patch) | |
tree | f698a4d89c2508cb1763156b804ae5bf0c832602 /winsup/utils/regtool.cc | |
parent | bc4ab9927687b3b2c67cce6e88ce6b5c15bd81c5 (diff) | |
download | cygnal-4bfc614b42c52ed78f66abff92e9103a9ce549e1.tar.gz cygnal-4bfc614b42c52ed78f66abff92e9103a9ce549e1.tar.bz2 cygnal-4bfc614b42c52ed78f66abff92e9103a9ce549e1.zip |
fix whitespace, update some copyrights
Diffstat (limited to 'winsup/utils/regtool.cc')
-rw-r--r-- | winsup/utils/regtool.cc | 14 |
1 files changed, 7 insertions, 7 deletions
diff --git a/winsup/utils/regtool.cc b/winsup/utils/regtool.cc index 5f2396cd9..403923b2d 100644 --- a/winsup/utils/regtool.cc +++ b/winsup/utils/regtool.cc @@ -1,6 +1,6 @@ /* regtool.cc - Copyright 2000, 2001, 2002 Red Hat Inc. + Copyright 2000, 2001, 2002, 2003, 2004 Red Hat Inc. This file is part of Cygwin. @@ -278,21 +278,21 @@ find_key (int howmanyparts, REGSAM access) { /* expect host:/key/value format */ host = (char*) malloc (strlen (n) + 1); - host[0] = host [1] = '\\'; + host[0] = host [1] = '\\'; for (e = n, h = host + 2; *e && *e != ':'; e++, h++) - *h = *e; + *h = *e; *h = 0; n = e + 1; if (*n == '/') - translate (n); + translate (n); } else if (n[0] == '\\' && n[1] == '\\') { /* expect //host/key/value format */ host = (char*) malloc (strlen (n) + 1); - host[0] = host[1] = '\\'; + host[0] = host[1] = '\\'; for (e = n + 2, h = host + 2; *e && *e != '\\'; e++, h++) - *h = *e; + *h = *e; *h = 0; n = e; } @@ -329,7 +329,7 @@ find_key (int howmanyparts, REGSAM access) return; } else - { + { *e = 0; value = e + 1; } |