summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJay Sorg <jay.sorg@gmail.com>2014-07-25 21:37:59 -0700
committerJay Sorg <jay.sorg@gmail.com>2014-07-25 21:37:59 -0700
commit9e1e6d3c3eebb5f82fa6fb6207255eb99ab89ecc (patch)
tree02835ae194f4c54d161f64dbdd1782c831390ccf
parentff8275da582a1235d591481e7f10cbcb6115c994 (diff)
downloadxrdp-proprietary-9e1e6d3c3eebb5f82fa6fb6207255eb99ab89ecc.tar.gz
xrdp-proprietary-9e1e6d3c3eebb5f82fa6fb6207255eb99ab89ecc.zip
common: indent, not logic change
-rw-r--r--common/fifo.c15
-rw-r--r--common/fifo.h12
2 files changed, 17 insertions, 10 deletions
diff --git a/common/fifo.c b/common/fifo.c
index 165acf8e..ebd1ef4d 100644
--- a/common/fifo.c
+++ b/common/fifo.c
@@ -27,7 +27,8 @@
* @return pointer to new FIFO or NULL if system out of memory
*****************************************************************************/
-FIFO *fifo_create()
+FIFO * APP_CC
+fifo_create(void)
{
return (FIFO *) g_malloc(sizeof(FIFO), 1);
}
@@ -36,7 +37,8 @@ FIFO *fifo_create()
* Delete specified FIFO
*****************************************************************************/
-void fifo_delete(FIFO *self)
+void APP_CC
+fifo_delete(FIFO *self)
{
USER_DATA *udp;
@@ -85,7 +87,8 @@ void fifo_delete(FIFO *self)
* @return 0 on success, -1 on error
*****************************************************************************/
-int fifo_add_item(FIFO *self, void *item)
+int APP_CC
+fifo_add_item(FIFO *self, void *item)
{
USER_DATA *udp;
@@ -121,7 +124,8 @@ int fifo_add_item(FIFO *self, void *item)
* @return top item from FIFO or NULL if FIFO is empty
*****************************************************************************/
-void *fifo_remove_item(FIFO *self)
+void * APP_CC
+fifo_remove_item(FIFO *self)
{
void *item;
USER_DATA *udp;
@@ -155,7 +159,8 @@ void *fifo_remove_item(FIFO *self)
* @return true if FIFO is empty, false otherwise
*****************************************************************************/
-int fifo_is_empty(FIFO *self)
+int APP_CC
+fifo_is_empty(FIFO *self)
{
if (!self)
return 1;
diff --git a/common/fifo.h b/common/fifo.h
index 134227d8..813154a4 100644
--- a/common/fifo.h
+++ b/common/fifo.h
@@ -21,6 +21,8 @@
#ifndef _FIFO_H
#define _FIFO_H
+#include "arch.h"
+
typedef struct user_data USER_DATA;
struct user_data
@@ -36,10 +38,10 @@ typedef struct fifo
int auto_free;
} FIFO;
-FIFO *fifo_create();
-void fifo_delete(FIFO *self);
-int fifo_add_item(FIFO *self, void *item);
-void *fifo_remove_item(FIFO *self);
-int fifo_is_empty();
+FIFO * APP_CC fifo_create(void);
+void APP_CC fifo_delete(FIFO *self);
+int APP_CC fifo_add_item(FIFO *self, void *item);
+void * APP_CC fifo_remove_item(FIFO *self);
+int APP_CC fifo_is_empty(FIFO *self);
#endif