Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
purr-data
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Container Registry
Model registry
Operate
Environments
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
nerrons
purr-data
Commits
38e2203f
Commit
38e2203f
authored
10 years ago
by
Ivica Bukvic
Browse files
Options
Downloads
Patches
Plain Diff
*fixed compile-time warnings
parent
e6cd92d9
No related branches found
Branches containing commit
No related tags found
Tags containing commit
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
pd/src/s_main.c
+5
-2
5 additions, 2 deletions
pd/src/s_main.c
with
5 additions
and
2 deletions
pd/src/s_main.c
+
5
−
2
View file @
38e2203f
...
@@ -272,7 +272,7 @@ int sys_main(int argc, char **argv)
...
@@ -272,7 +272,7 @@ int sys_main(int argc, char **argv)
int
i
,
noprefs
;
int
i
,
noprefs
;
sys_externalschedlib
=
0
;
sys_externalschedlib
=
0
;
sys_extraflags
=
0
;
sys_extraflags
=
0
;
char
*
filenames
;
char
*
filenames
=
NULL
;
#ifdef PD_DEBUG
#ifdef PD_DEBUG
fprintf
(
stderr
,
"Pd-L2Ork: COMPILED FOR DEBUGGING
\n
"
);
fprintf
(
stderr
,
"Pd-L2Ork: COMPILED FOR DEBUGGING
\n
"
);
#endif
#endif
...
@@ -532,7 +532,10 @@ void sys_findprogdir(char *progname)
...
@@ -532,7 +532,10 @@ void sys_findprogdir(char *progname)
sys_libdir
=
gensym
(
sbuf2
);
sys_libdir
=
gensym
(
sbuf2
);
sys_guidir
=
&
s_
;
/* in MSW the guipath just depends on the libdir */
sys_guidir
=
&
s_
;
/* in MSW the guipath just depends on the libdir */
#else
#else
realpath
(
sbuf2
,
sbuf
);
char
*
res
=
realpath
(
sbuf2
,
sbuf
);
if
(
!
res
)
{
error
(
"%s: Cannot get a real path"
,
sbuf2
);
}
strncpy
(
sbuf2
,
sbuf
,
FILENAME_MAX
-
30
);
strncpy
(
sbuf2
,
sbuf
,
FILENAME_MAX
-
30
);
sbuf
[
FILENAME_MAX
-
30
]
=
0
;
sbuf
[
FILENAME_MAX
-
30
]
=
0
;
strcat
(
sbuf2
,
"/lib/pd-l2ork"
);
strcat
(
sbuf2
,
"/lib/pd-l2ork"
);
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment