mirror of
				https://github.com/onyx-and-iris/vmrcli.git
				synced 2025-11-04 07:01:47 +00:00 
			
		
		
		
	use ++i
This commit is contained in:
		
							parent
							
								
									7c46f30e62
								
							
						
					
					
						commit
						a719af8265
					
				@ -118,7 +118,7 @@ void log_set_quiet(bool enable)
 | 
			
		||||
 | 
			
		||||
int log_add_callback(log_LogFn fn, void *udata, int level)
 | 
			
		||||
{
 | 
			
		||||
    for (int i = 0; i < MAX_CALLBACKS; i++)
 | 
			
		||||
    for (int i = 0; i < MAX_CALLBACKS; ++i)
 | 
			
		||||
    {
 | 
			
		||||
        if (!L.callbacks[i].fn)
 | 
			
		||||
        {
 | 
			
		||||
@ -163,7 +163,7 @@ void log_log(int level, const char *file, int line, const char *fmt, ...)
 | 
			
		||||
        va_end(ev.ap);
 | 
			
		||||
    }
 | 
			
		||||
 | 
			
		||||
    for (int i = 0; i < MAX_CALLBACKS && L.callbacks[i].fn; i++)
 | 
			
		||||
    for (int i = 0; i < MAX_CALLBACKS && L.callbacks[i].fn; ++i)
 | 
			
		||||
    {
 | 
			
		||||
        Callback *cb = &L.callbacks[i];
 | 
			
		||||
        if (level >= cb->level)
 | 
			
		||||
 | 
			
		||||
@ -92,7 +92,7 @@ bool is_comment(char *s)
 | 
			
		||||
 */
 | 
			
		||||
struct quickcommand *command_in_quickcommands(const char *command_key, const struct quickcommand *quickcommands, int n)
 | 
			
		||||
{
 | 
			
		||||
    for (int i = 0; i < n; i++)
 | 
			
		||||
    for (int i = 0; i < n; ++i)
 | 
			
		||||
    {
 | 
			
		||||
        if (strcmp(command_key, quickcommands[i].name) == 0)
 | 
			
		||||
        {
 | 
			
		||||
 | 
			
		||||
@ -191,7 +191,7 @@ int main(int argc, char *argv[])
 | 
			
		||||
    }
 | 
			
		||||
    else
 | 
			
		||||
    {
 | 
			
		||||
        for (int i = optind; i < argc; i++)
 | 
			
		||||
        for (int i = optind; i < argc; ++i)
 | 
			
		||||
        {
 | 
			
		||||
            parse_input(vmr, argv[i]);
 | 
			
		||||
        }
 | 
			
		||||
 | 
			
		||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user