]> git.ipfire.org Git - thirdparty/freeswitch.git/commitdiff
seems whitespaces are unpopular on some linux/gcc combinations
authorcypromis <michal.bielicki@seventhsignal.de>
Mon, 7 Feb 2011 14:32:26 +0000 (15:32 +0100)
committercypromis <michal.bielicki@seventhsignal.de>
Mon, 7 Feb 2011 14:32:26 +0000 (15:32 +0100)
src/mod/applications/mod_voicemail/mod_voicemail.c

index f868c3a28483547816cb23af09631dbb42acb664..16841277d69484a2a6d9dfd4c0ffdf96dc40d0fa 100644 (file)
@@ -1277,11 +1277,8 @@ static void message_count(vm_profile_t *profile, const char *id_in, const char *
 
        myid = resolve_id(id_in, domain_name, "message-count");
 
-       switch_snprintf(sql, sizeof(sql),
-                                       "select 1, read_flags, count(read_epoch) from voicemail_msgs where username='%s' and domain='%s' and in_folder='%s' and read_epoch=0 group by read_flags 
-                                       union 
-                                       select 0, read_flags, count(read_epoch) from voicemail_msgs where username='%s' and domain='%s' and in_folder='%s' and read_epoch<>0 group by read_flags;",     
-                                       myid, domain_name, myfolder);
+       switch_snprintf(sql, sizeof(sql), "select 1, read_flags, count(read_epoch) from voicemail_msgs where username='%s' and domain='%s' and in_folder='%s' and read_epoch=0 group by read_flags union 
+       select 0, read_flags, count(read_epoch) from voicemail_msgs where username='%s' and domain='%s' and in_folder='%s' and read_epoch<>0 group by read_flags;",     myid, domain_name, myfolder);
 
        vm_execute_sql_callback(profile, profile->mutex, sql, message_count_callback, &cbt);