fs/driver/fs_blockpartition.c: Fix void pointer warning.
libs/libc/unistd/lib_daemon.c: Fix compiler error is streams disabled. sched/irq/irq_procfs.c: Fix warning sched/task/task_vfork.c: Fix void * math warning
This commit is contained in:
parent
d0cda60442
commit
5433ec589b
@ -253,7 +253,7 @@ static int part_ioctl(FAR struct inode *inode, int cmd, unsigned long arg)
|
||||
ret = parent->u.i_bops->geometry(parent, &geo);
|
||||
if (ret >= 0)
|
||||
{
|
||||
*base += dev->firstsector * geo.geo_sectorsize;
|
||||
*(FAR uint8_t *)base += dev->firstsector * geo.geo_sectorsize;
|
||||
}
|
||||
}
|
||||
else if (cmd == MTDIOC_GEOMETRY)
|
||||
|
@ -133,12 +133,13 @@ int daemon(int nochdir, int noclose)
|
||||
return -1;
|
||||
}
|
||||
|
||||
#if CONFIG_NFILE_STREAMS > 0
|
||||
/* Make sure the stdin, stdout, and stderr are closed */
|
||||
|
||||
(void)fclose(stdin);
|
||||
(void)fclose(stdout);
|
||||
(void)fclose(stderr);
|
||||
|
||||
#endif
|
||||
/* Dup the fd to create standard fd 0-2 */
|
||||
|
||||
(void)dup2(fd, 0);
|
||||
|
@ -252,7 +252,8 @@ static int irq_callback(int irq, FAR struct irq_info_s *info,
|
||||
(unsigned int)irq,
|
||||
(unsigned long)((uintptr_t)copy.handler),
|
||||
(unsigned long)((uintptr_t)copy.arg),
|
||||
count, intpart, fracpart, copy.time / 1000);
|
||||
count, intpart, fracpart,
|
||||
(unsigned long)copy.time / 1000);
|
||||
|
||||
copysize = procfs_memcpy(irqfile->line, linesize, irqfile->buffer,
|
||||
irqfile->remaining, &irqfile->offset);
|
||||
|
@ -131,7 +131,8 @@ static inline int vfork_stackargsetup(FAR struct tcb_s *parent,
|
||||
|
||||
/* Get the address correction */
|
||||
|
||||
offset = child->cmn.adj_stack_ptr - parent->adj_stack_ptr;
|
||||
offset = (uintptr_t)child->cmn.adj_stack_ptr -
|
||||
(uintptr_t)parent->adj_stack_ptr;
|
||||
|
||||
/* Change the child argv[] to point into its stack (instead of its
|
||||
* parent's stack).
|
||||
|
Loading…
Reference in New Issue
Block a user