themerc.c: consistent indentation

This commit is contained in:
wdlkmpx 2021-01-14 23:31:08 +08:00
parent 373a362b01
commit 8bc640ded8

View File

@ -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;