Changes in lib/misc.c [d52111a:613cc55]
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
lib/misc.c
rd52111a r613cc55 90 90 struct tm tm; 91 91 92 memset(&tm, 0, sizeof(struct tm)); 92 93 tm.tm_year = year - 1900; 93 94 tm.tm_mon = month - 1; … … 96 97 tm.tm_min = min; 97 98 tm.tm_sec = sec >= 0 ? sec : time(NULL) % 60; 99 98 100 return mktime(&tm); 99 101 } … … 245 247 } 246 248 247 void info_string_append(GString *str, char *newline, char *name, char *value)248 {249 if( value && value[0] )250 g_string_sprintfa( str, "%s%s: %s", newline, name, value );251 }252 253 249 /* Decode%20a%20file%20name */ 254 250 void http_decode( char *s )
Note: See TracChangeset
for help on using the changeset viewer.