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