themerc.c: consistent indentation
This commit is contained in:
parent
373a362b01
commit
8bc640ded8
@ -18,7 +18,8 @@
|
|||||||
#include <errno.h>
|
#include <errno.h>
|
||||||
|
|
||||||
/* read contents of fname into gchar * */
|
/* read contents of fname into gchar * */
|
||||||
gchar **trc_open(gchar *fname) {
|
gchar **trc_open(gchar *fname)
|
||||||
|
{
|
||||||
gint fd;
|
gint fd;
|
||||||
struct stat fds;
|
struct stat fds;
|
||||||
ssize_t rb;
|
ssize_t rb;
|
||||||
@ -68,7 +69,8 @@ void trc_close(gchar **rcs) {
|
|||||||
}
|
}
|
||||||
|
|
||||||
/* return string value for given parameter. if not found retun NULL */
|
/* return string value for given parameter. if not found retun NULL */
|
||||||
gchar *trc_get_str(gchar **rcs, gchar *param) {
|
gchar *trc_get_str(gchar **rcs, gchar *param)
|
||||||
|
{
|
||||||
gint i;
|
gint i;
|
||||||
gchar **strval,*val;
|
gchar **strval,*val;
|
||||||
|
|
||||||
@ -98,7 +100,9 @@ gint trc_get_uint(gchar **rcs, gchar *param) {
|
|||||||
gchar *val;
|
gchar *val;
|
||||||
gint ret;
|
gint ret;
|
||||||
|
|
||||||
if(!(val=trc_get_str(rcs, param))) return -1;
|
if (!(val=trc_get_str(rcs, param))) {
|
||||||
|
return -1;
|
||||||
|
}
|
||||||
ret = atoi(val);
|
ret = atoi(val);
|
||||||
g_free (val);
|
g_free (val);
|
||||||
return ret;
|
return ret;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user