1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
|
$NetBSD: patch-utils-mpo,v 1.1 2012/10/15 22:48:02 drochner Exp $
--- utils.c.orig 2012-10-15 18:20:34.000000000 +0000
+++ utils.c
@@ -19,7 +19,7 @@
#include <ctype.h>
#include <string.h>
#include <stdlib.h>
-#include <linux/limits.h>
+#include <limits.h>
#include <sys/stat.h>
#include <unistd.h>
#include <sys/types.h>
@@ -31,7 +31,7 @@
#include "upnpglobalvars.h"
#include "log.h"
-inline int
+int
strcatf(struct string_s *str, const char *fmt, ...)
{
int ret;
@@ -45,7 +45,7 @@ strcatf(struct string_s *str, const char
return ret;
}
-inline void
+void
strncpyt(char *dst, const char *src, size_t len)
{
strncpy(dst, src, len);
@@ -323,7 +323,8 @@ is_audio(const char * file)
int
is_image(const char * file)
{
- return (ends_with(file, ".jpg") || ends_with(file, ".jpeg"));
+ return (ends_with(file, ".jpg") || ends_with(file, ".jpeg") ||
+ ends_with(file, ".mpo"));
}
int
|