Avoid compiler warning about ignore return from write.
This commit is contained in:
		
							
								
								
									
										5
									
								
								bar.c
									
									
									
									
									
								
							
							
						
						
									
										5
									
								
								bar.c
									
									
									
									
									
								
							@@ -1141,8 +1141,9 @@ main (int argc, char **argv)
 | 
				
			|||||||
                                area_t *area = area_get(press_ev->event, press_ev->event_x);
 | 
					                                area_t *area = area_get(press_ev->event, press_ev->event_x);
 | 
				
			||||||
                                /* Respond to the click */
 | 
					                                /* Respond to the click */
 | 
				
			||||||
                                if (area && area->button == press_ev->detail) {
 | 
					                                if (area && area->button == press_ev->detail) {
 | 
				
			||||||
                                    write(STDOUT_FILENO, area->cmd, strlen(area->cmd)); 
 | 
					                                    ssize_t n;
 | 
				
			||||||
                                    write(STDOUT_FILENO, "\n", 1); 
 | 
					                                    n = write(STDOUT_FILENO, area->cmd, strlen(area->cmd)); 
 | 
				
			||||||
 | 
					                                    n = write(STDOUT_FILENO, "\n", 1); 
 | 
				
			||||||
                                }
 | 
					                                }
 | 
				
			||||||
                            }
 | 
					                            }
 | 
				
			||||||
                            break;
 | 
					                            break;
 | 
				
			||||||
 
 | 
				
			|||||||
		Reference in New Issue
	
	Block a user