Skip to content

Commit 83f8380

Browse files
committed
Asterisk fix in pointers decl to match standard
1 parent 757a2ed commit 83f8380

41 files changed

Lines changed: 107 additions & 107 deletions

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

src/kmi/flatfile.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -159,7 +159,7 @@ static int convert_option(const unsigned char * const path, unsigned char **dk_l
159159
*/
160160
void *flatfile_init(struct ltfs_volume *vol)
161161
{
162-
void* km;
162+
void *km;
163163

164164
km = key_format_ltfs_init(vol);
165165
if (km)

src/kmi/simple.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -84,7 +84,7 @@ static struct fuse_opt kmi_simple_options[] = {
8484
*/
8585
void *simple_init(struct ltfs_volume *vol)
8686
{
87-
void* km;
87+
void *km;
8888

8989
km = key_format_ltfs_init(vol);
9090
if (km)

src/libltfs/arch/errormap.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -500,7 +500,7 @@ int errormap_fuse_error(int val)
500500
return -EIO;
501501
}
502502

503-
char* errormap_msg_id(int val)
503+
char *errormap_msg_id(int val)
504504
{
505505
struct error_map *out;
506506

src/libltfs/arch/errormap.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -75,7 +75,7 @@ int errormap_fuse_error(int val);
7575
* @param val Error code to look up in the table. This value must be less than or equal to zero.
7676
* @return pointer of the mapped message. if val is not found in the error table, NULL is returned.
7777
*/
78-
char* errormap_msg_id(int val);
78+
char *errormap_msg_id(int val);
7979

8080
#ifdef __cplusplus
8181
}

src/libltfs/arch/ltfs_arch_ops.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -74,7 +74,7 @@ extern "C" {
7474
} \
7575
}while(0)
7676

77-
inline void arch_strcpy_limited(char* dest, const char* src, int count)
77+
inline void arch_strcpy_limited(char *dest, const char *src, int count)
7878
{
7979
int i;
8080
for (i = 0; i < (count) && (src)[i] != '\0'; i++) {

src/libltfs/arch/time_internal.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -171,7 +171,7 @@ int ltfs_get_days_of_year(int64_t nYear)
171171
return nDays;
172172
}
173173

174-
int ltfs_get_mday_from_yday(int64_t nYear, int nYday, int* pnMonth)
174+
int ltfs_get_mday_from_yday(int64_t nYear, int nYday, int *pnMonth)
175175
{
176176
int i = 0;
177177
int nMday = nYday;

src/libltfs/dcache.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -161,7 +161,7 @@ int dcache_parse_options(const char **options, struct dcache_options **out)
161161
ret = -ENOMEM;
162162
goto out_free;
163163
}
164-
char* contextVal = NULL;
164+
char *contextVal = NULL;
165165
option = arch_strtok(line, " \t", contextVal);
166166
if (! option) {
167167
/* Failed to parse LTFS dcache configuration rules: invalid option '%s' */

src/libltfs/fs.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -74,9 +74,9 @@ int fs_hash_sort_by_uid(struct name_list *a, struct name_list *b)
7474
return (a->uid - b->uid);
7575
}
7676

77-
static char* generate_hash_key_name(const char *src_str, int *rc)
77+
static char *generate_hash_key_name(const char *src_str, int *rc)
7878
{
79-
char* key_name = NULL;
79+
char *key_name = NULL;
8080
key_name = malloc(sizeof(char*));
8181
if (key_name == NULL) return NULL;
8282
#ifdef mingw_PLATFORM

src/libltfs/index_criteria.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -212,7 +212,7 @@ int index_criteria_parse_size(const char *criteria, size_t len, struct index_cri
212212
ltfsmsg(LTFS_ERR, 11143E, len);
213213
return -LTFS_POLICY_INVALID;
214214
}
215-
const char* param = criteria + sizelen;
215+
const char *param = criteria + sizelen;
216216

217217
snprintf(rule, len - sizelen, "%s", param);
218218

src/libltfs/iosched.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -330,7 +330,7 @@ int iosched_update_data_placement(struct dentry *d, struct ltfs_volume *vol)
330330
* @param vol LTFS volume
331331
* @return 0 on succe ss or a negative value on error
332332
*/
333-
int iosched_set_profiler(char* work_dir, bool enable, struct ltfs_volume *vol)
333+
int iosched_set_profiler(char *work_dir, bool enable, struct ltfs_volume *vol)
334334
{
335335
int ret = 0;
336336
struct iosched_priv *priv = (struct iosched_priv *) vol ? vol->iosched_handle : NULL;

0 commit comments

Comments
 (0)