shmpipe: Update code standard

This commit is contained in:
Olivier Crête 2010-04-07 19:05:15 -04:00
parent c60ef5e81f
commit e8b4310aa6

View file

@ -474,7 +474,7 @@ sp_writer_free_block (ShmBlock * block)
/* Returns the number of client this has successfully been sent to */ /* Returns the number of client this has successfully been sent to */
int int
sp_writer_send_buf (ShmPipe * self, char * buf, size_t size) sp_writer_send_buf (ShmPipe * self, char *buf, size_t size)
{ {
ShmArea *area = NULL; ShmArea *area = NULL;
unsigned long offset = 0; unsigned long offset = 0;
@ -583,9 +583,9 @@ sp_client_recv (ShmPipe * self, char **buf)
newarea->next = self->shm_area; newarea->next = self->shm_area;
self->shm_area = newarea; self->shm_area = newarea;
/* /*
if (oldarea) if (oldarea)
sp_shm_area_dec (self, oldarea); sp_shm_area_dec (self, oldarea);
*/ */
break; break;
case COMMAND_CLOSE_SHM_AREA: case COMMAND_CLOSE_SHM_AREA:
@ -824,7 +824,7 @@ sp_writer_pending_writes (ShmPipe * self)
} }
const char * const char *
sp_writer_get_path (ShmPipe *pipe) sp_writer_get_path (ShmPipe * pipe)
{ {
return pipe->socket_path; return pipe->socket_path;
} }