Welcome to mirror list, hosted at ThFree Co, Russian Federation.

git.blender.org/blender.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorCampbell Barton <ideasman42@gmail.com>2010-03-03 16:59:57 +0300
committerCampbell Barton <ideasman42@gmail.com>2010-03-03 16:59:57 +0300
commitf09efddcda8f83b5cbee31fccb63ac0864bad82a (patch)
treed8916354ed3d68e835910e6bee1446399b0d6b34 /source/blender
parentca7b6e2cd03c51b59b72dccda6fb5acb38bc8e07 (diff)
fix for minor errors/warnings
Diffstat (limited to 'source/blender')
-rw-r--r--source/blender/blenlib/BLI_string.h1
-rw-r--r--source/blender/editors/animation/keyframes_general.c2
-rw-r--r--source/blender/python/intern/bpy.c3
3 files changed, 4 insertions, 2 deletions
diff --git a/source/blender/blenlib/BLI_string.h b/source/blender/blenlib/BLI_string.h
index c722ffb1693..39123a438df 100644
--- a/source/blender/blenlib/BLI_string.h
+++ b/source/blender/blenlib/BLI_string.h
@@ -128,6 +128,7 @@ char *BLI_strcasestr(const char *s, const char *find);
int BLI_strcasecmp(const char *s1, const char *s2);
int BLI_strncasecmp(const char *s1, const char *s2, int n);
int BLI_natstrcmp(const char *s1, const char *s2);
+size_t BLI_strnlen(const char *str, size_t maxlen);
void BLI_timestr(double _time, char *str); /* time var is global */
diff --git a/source/blender/editors/animation/keyframes_general.c b/source/blender/editors/animation/keyframes_general.c
index ae2c617bc80..1784c6ef32c 100644
--- a/source/blender/editors/animation/keyframes_general.c
+++ b/source/blender/editors/animation/keyframes_general.c
@@ -374,7 +374,7 @@ void sample_fcurve (FCurve *fcu)
int i, n, nIndex;
if(fcu->bezt==NULL) /* ignore baked */
- return NULL;
+ return;
/* find selected keyframes... once pair has been found, add keyframes */
for (i=0, bezt=fcu->bezt; i < fcu->totvert; i++, bezt++) {
diff --git a/source/blender/python/intern/bpy.c b/source/blender/python/intern/bpy.c
index 4df14a1f603..222e41c3bb8 100644
--- a/source/blender/python/intern/bpy.c
+++ b/source/blender/python/intern/bpy.c
@@ -26,7 +26,8 @@
* a script writer should never directly access this module */
#include <Python.h>
-
+
+#include "bpy_util.h"
#include "bpy_rna.h"
#include "bpy_app.h"
#include "bpy_props.h"