@@ -61,9 +61,9 @@ void notification_print(const struct notification *n)
61
61
printf ("\ticon_id: '%s'\n" , STR_NN (n -> icon_id ));
62
62
printf ("\tdesktop_entry: '%s'\n" , n -> desktop_entry ? n -> desktop_entry : "" );
63
63
printf ("\tcategory: %s\n" , STR_NN (n -> category ));
64
- printf ("\ttimeout: %ld \n" , n -> timeout /1000 );
65
- printf ("\tstart: %ld \n" , n -> start );
66
- printf ("\ttimestamp: %ld \n" , n -> timestamp );
64
+ printf ("\ttimeout: %lld \n" , n -> timeout /1000 );
65
+ printf ("\tstart: %lld \n" , n -> start );
66
+ printf ("\ttimestamp: %lld \n" , n -> timestamp );
67
67
printf ("\turgency: %s\n" , notification_urgency_to_string (n -> urgency ));
68
68
printf ("\ttransient: %d\n" , n -> transient );
69
69
printf ("\tformatted: '%s'\n" , STR_NN (n -> msg ));
@@ -144,8 +144,8 @@ void notification_run_script(struct notification *n)
144
144
// Set environment variables
145
145
gchar * n_id_str = g_strdup_printf ("%i" , n -> id );
146
146
gchar * n_progress_str = g_strdup_printf ("%i" , n -> progress );
147
- gchar * n_timeout_str = g_strdup_printf ("%li " , n -> timeout /1000 );
148
- gchar * n_timestamp_str = g_strdup_printf ("%li " , n -> timestamp / 1000 );
147
+ gchar * n_timeout_str = g_strdup_printf ("%lli " , n -> timeout /1000 );
148
+ gchar * n_timestamp_str = g_strdup_printf ("%lli " , n -> timestamp / 1000 );
149
149
safe_setenv ("DUNST_APP_NAME" , appname );
150
150
safe_setenv ("DUNST_SUMMARY" , summary );
151
151
safe_setenv ("DUNST_BODY" , body );
@@ -713,14 +713,14 @@ void notification_update_text_to_render(struct notification *n)
713
713
char * new_buf ;
714
714
if (hours > 0 ) {
715
715
new_buf =
716
- g_strdup_printf ("%s (%ldh %ldm %lds old)" , buf , hours ,
716
+ g_strdup_printf ("%s (%lldh %lldm %llds old)" , buf , hours ,
717
717
minutes , seconds );
718
718
} else if (minutes > 0 ) {
719
719
new_buf =
720
- g_strdup_printf ("%s (%ldm %lds old)" , buf , minutes ,
720
+ g_strdup_printf ("%s (%lldm %llds old)" , buf , minutes ,
721
721
seconds );
722
722
} else {
723
- new_buf = g_strdup_printf ("%s (%lds old)" , buf , seconds );
723
+ new_buf = g_strdup_printf ("%s (%llds old)" , buf , seconds );
724
724
}
725
725
726
726
g_free (buf );
0 commit comments