summaryrefslogtreecommitdiff
path: root/src/index.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/index.c')
-rw-r--r--src/index.c16
1 files changed, 5 insertions, 11 deletions
diff --git a/src/index.c b/src/index.c
index 80f420c..8321185 100644
--- a/src/index.c
+++ b/src/index.c
@@ -62,8 +62,6 @@ void init_index_mode(void)
int x_offset_name = 0, x_offset_dim = 0, x_offset_size = 0;
char *s;
- D_ENTER(3);
-
if (opt.montage) {
mode = "montage";
} else {
@@ -492,13 +490,12 @@ void init_index_mode(void)
gib_imlib_free_image_and_decache(im_main);
free(s);
- D_RETURN_(3);
+ return;
}
char *chop_file_from_full_path(char *str)
{
- D_ENTER(4);
- D_RETURN(4, strrchr(str, '/') + 1);
+ return(strrchr(str, '/') + 1);
}
static char *create_index_size_string(char *file)
@@ -508,7 +505,6 @@ static char *create_index_size_string(char *file)
double kbs = 0.0;
struct stat st;
- D_ENTER(4);
if (stat(file, &st))
kbs = 0.0;
else {
@@ -517,23 +513,21 @@ static char *create_index_size_string(char *file)
}
snprintf(str, sizeof(str), "%.2fKb", kbs);
- D_RETURN(4, str);
+ return(str);
}
static char *create_index_dimension_string(int w, int h)
{
static char str[50];
- D_ENTER(4);
snprintf(str, sizeof(str), "%dx%d", w, h);
- D_RETURN(4, str);
+ return(str);
}
static char *create_index_title_string(int num, int w, int h)
{
static char str[50];
- D_ENTER(4);
snprintf(str, sizeof(str), PACKAGE " index - %d thumbnails, %d by %d pixels", num, w, h);
- D_RETURN(4, str);
+ return(str);
}