@@ -91,27 +91,27 @@ static void usage_set(void)
91
91
}
92
92
93
93
static void change_type (char * path _U_ , afpvol_t * vol _U_ ,
94
- const struct stat * st _U_ , struct adouble * ad , char * new_type )
94
+ const struct stat * st _U_ , struct adouble * ad , char * p_new_type )
95
95
{
96
96
char * FinderInfo ;
97
97
98
98
if ((FinderInfo = ad_entry (ad , ADEID_FINDERI ))) {
99
- memcpy (FinderInfo , new_type , 4 );
99
+ memcpy (FinderInfo , p_new_type , 4 );
100
100
}
101
101
}
102
102
103
103
static void change_creator (char * path _U_ , afpvol_t * vol _U_ ,
104
- const struct stat * st _U_ , struct adouble * ad , char * new_creator )
104
+ const struct stat * st _U_ , struct adouble * ad , char * p_new_creator )
105
105
{
106
106
char * FinderInfo ;
107
107
108
108
if ((FinderInfo = ad_entry (ad , ADEID_FINDERI ))) {
109
- memcpy (FinderInfo + 4 , new_creator , 4 );
109
+ memcpy (FinderInfo + 4 , p_new_creator , 4 );
110
110
}
111
111
}
112
112
113
113
static void change_label (char * path _U_ , afpvol_t * vol _U_ ,
114
- const struct stat * st _U_ , struct adouble * ad , char * new_label )
114
+ const struct stat * st _U_ , struct adouble * ad , char * p_new_label )
115
115
{
116
116
char * FinderInfo ;
117
117
const char * * color = & labels [0 ];
@@ -123,7 +123,7 @@ static void change_label(char *path _U_, afpvol_t *vol _U_,
123
123
}
124
124
125
125
while (* color ) {
126
- if (strcasecmp (* color , new_label ) == 0 ) {
126
+ if (strcasecmp (* color , p_new_label ) == 0 ) {
127
127
/* get flags */
128
128
memcpy (& FinderFlags , FinderInfo + 8 , 2 );
129
129
FinderFlags = ntohs (FinderFlags );
@@ -142,14 +142,14 @@ static void change_label(char *path _U_, afpvol_t *vol _U_,
142
142
}
143
143
144
144
static void change_attributes (char * path _U_ , afpvol_t * vol _U_ ,
145
- const struct stat * st , struct adouble * ad , char * new_attributes )
145
+ const struct stat * st , struct adouble * ad , char * p_new_attributes )
146
146
{
147
147
uint16_t AFPattributes ;
148
148
ad_getattr (ad , & AFPattributes );
149
149
AFPattributes = ntohs (AFPattributes );
150
150
151
151
if (S_ISREG (st -> st_mode )) {
152
- if (strchr (new_attributes , 'W' )) {
152
+ if (strchr (p_new_attributes , 'W' )) {
153
153
AFPattributes |= ATTRBIT_NOWRITE ;
154
154
}
155
155
@@ -203,7 +203,7 @@ static void change_attributes(char *path _U_, afpvol_t *vol _U_,
203
203
}
204
204
205
205
static void change_flags (char * path _U_ , afpvol_t * vol _U_ ,
206
- const struct stat * st , struct adouble * ad , char * new_flags )
206
+ const struct stat * st , struct adouble * ad , char * p_new_flags )
207
207
{
208
208
char * FinderInfo ;
209
209
uint16_t FinderFlags ;
@@ -216,7 +216,7 @@ static void change_flags(char *path _U_, afpvol_t *vol _U_,
216
216
FinderFlags = ntohs (FinderFlags );
217
217
218
218
if (S_ISREG (st -> st_mode )) {
219
- if (strchr (new_flags , 'M' )) {
219
+ if (strchr (p_new_flags , 'M' )) {
220
220
FinderFlags |= FINDERINFO_ISHARED ;
221
221
}
222
222
0 commit comments