mirror of
				https://gitlab.freedesktop.org/wlroots/wlroots.git
				synced 2025-11-03 09:01:40 -05:00 
			
		
		
		
	Fix style and string comparison
This commit is contained in:
		
							parent
							
								
									a8d8a63fe0
								
							
						
					
					
						commit
						8a2d54c24a
					
				
					 1 changed files with 2 additions and 3 deletions
				
			
		| 
						 | 
					@ -353,10 +353,9 @@ static struct wlr_session *logind_session_create(struct wl_display *disp) {
 | 
				
			||||||
		wlr_log(L_ERROR, "Failed to get seat id: %s", strerror(-ret));
 | 
							wlr_log(L_ERROR, "Failed to get seat id: %s", strerror(-ret));
 | 
				
			||||||
		goto error;
 | 
							goto error;
 | 
				
			||||||
	}
 | 
						}
 | 
				
			||||||
 | 
					 | 
				
			||||||
	snprintf(session->base.seat, sizeof(session->base.seat), "%s", seat);
 | 
						snprintf(session->base.seat, sizeof(session->base.seat), "%s", seat);
 | 
				
			||||||
	if (seat == "seat0")
 | 
					
 | 
				
			||||||
	{
 | 
						if (strcmp(seat, "seat0") == 0) {
 | 
				
			||||||
		ret = sd_session_get_vt(session->id, &session->base.vtnr);
 | 
							ret = sd_session_get_vt(session->id, &session->base.vtnr);
 | 
				
			||||||
		if (ret < 0) {
 | 
							if (ret < 0) {
 | 
				
			||||||
			wlr_log(L_ERROR, "Session not running in virtual terminal");
 | 
								wlr_log(L_ERROR, "Session not running in virtual terminal");
 | 
				
			||||||
| 
						 | 
					
 | 
				
			||||||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue