]> git.michaelhowe.org Git - packages/o/openafs.git/commitdiff
STABLE12-libadmin-pts-pointer-fixes-20030701
authorPeter Breitenlohner <peb@mppmu.mpg.de>
Tue, 1 Jul 2003 20:35:08 +0000 (20:35 +0000)
committerDerrick Brashear <shadow@dementia.org>
Tue, 1 Jul 2003 20:35:08 +0000 (20:35 +0000)
FIXES 1647

fix pointers, kill warnings

(cherry picked from commit 9d1570615849e9f83e78d365fb98df743f512550)

src/libadmin/pts/afs_ptsAdmin.c

index 96421bd394b983cb025dcb60f67f468e0cc5acfc..f3e47bbce8328d5babf4d6c59c6088dc5c43ed21 100644 (file)
@@ -2682,7 +2682,7 @@ static int GetOwnedGroupRPC(
      * We can retrieve the next group from data we already received
      */
 
-    strcpy(&list->group[slot], &list->owned_names.namelist_val[list->index]);
+    strcpy(list->group[slot], list->owned_names.namelist_val[list->index]);
     list->index++;
 
     /*
@@ -2725,7 +2725,7 @@ static int GetOwnedGroupFromCache(
     afs_status_t tst = 0;
     owned_group_list_p list = (owned_group_list_p) rpc_specific;
 
-    strcpy((char *) dest, &list->group[slot]);
+    strcpy((char *) dest, list->group[slot]);
     rc = 1;
 
     if (st != NULL) {
@@ -3029,7 +3029,7 @@ static int GetPTSRPC(
      * We can retrieve the next entry from data we already received
      */
 
-    strcpy(&list->entries[slot], list->currName->name);
+    strcpy(list->entries[slot], list->currName->name);
     list->index++;
     list->currName++;
 
@@ -3072,7 +3072,7 @@ static int GetPTSFromCache(
     afs_status_t tst = 0;
     pts_list_p list = (pts_list_p) rpc_specific;
 
-    strcpy((char *) dest, &list->entries[slot]);
+    strcpy((char *) dest, list->entries[slot]);
     rc = 1;
 
     if (st != NULL) {