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:
David Sidrane
2018-12-03 17:54:21 -06:00
committed by Gregory Nutt
parent d0cda60442
commit 5433ec589b
4 changed files with 7 additions and 4 deletions
+1 -1
View File
@@ -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); ret = parent->u.i_bops->geometry(parent, &geo);
if (ret >= 0) if (ret >= 0)
{ {
*base += dev->firstsector * geo.geo_sectorsize; *(FAR uint8_t *)base += dev->firstsector * geo.geo_sectorsize;
} }
} }
else if (cmd == MTDIOC_GEOMETRY) else if (cmd == MTDIOC_GEOMETRY)
+2 -1
View File
@@ -133,12 +133,13 @@ int daemon(int nochdir, int noclose)
return -1; return -1;
} }
#if CONFIG_NFILE_STREAMS > 0
/* Make sure the stdin, stdout, and stderr are closed */ /* Make sure the stdin, stdout, and stderr are closed */
(void)fclose(stdin); (void)fclose(stdin);
(void)fclose(stdout); (void)fclose(stdout);
(void)fclose(stderr); (void)fclose(stderr);
#endif
/* Dup the fd to create standard fd 0-2 */ /* Dup the fd to create standard fd 0-2 */
(void)dup2(fd, 0); (void)dup2(fd, 0);
+2 -1
View File
@@ -252,7 +252,8 @@ static int irq_callback(int irq, FAR struct irq_info_s *info,
(unsigned int)irq, (unsigned int)irq,
(unsigned long)((uintptr_t)copy.handler), (unsigned long)((uintptr_t)copy.handler),
(unsigned long)((uintptr_t)copy.arg), (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, copysize = procfs_memcpy(irqfile->line, linesize, irqfile->buffer,
irqfile->remaining, &irqfile->offset); irqfile->remaining, &irqfile->offset);
+2 -1
View File
@@ -131,7 +131,8 @@ static inline int vfork_stackargsetup(FAR struct tcb_s *parent,
/* Get the address correction */ /* 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 /* Change the child argv[] to point into its stack (instead of its
* parent's stack). * parent's stack).