Changeset 2483
- Timestamp:
- Jun 24, 2008, 3:21:35 PM (14 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
neercs/trunk/src/attach.c
r2482 r2483 104 104 } 105 105 106 /* FIXME Is this really not defined anywhere ? */107 #define MIN(X,Y) ((X) < (Y) ? (X) : (Y))108 109 106 static int handle_command(char * cmd, struct screen_list* screen_list, cucul_canvas_t * cv, caca_display_t ** dp) 110 107 { 111 108 int refresh = 0; 112 109 debug("Received command %s", cmd); 113 if(!strncmp("ENV ", cmd, MIN(4, strlen(cmd))))110 if(!strncmp("ENV ", cmd, 4)) 114 111 { 115 112 putenv(strdup(cmd+4)); 116 113 } 117 else if(!strncmp("ATTACH ", cmd, MIN(7, strlen(cmd))))114 else if(!strncmp("ATTACH ", cmd, 7)) 118 115 { 119 116 int fd;
Note: See TracChangeset
for help on using the changeset viewer.