Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Sign in / Register
Toggle navigation
G
gdut-drcom
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Locked Files
Issues
0
Issues
0
List
Boards
Labels
Service Desk
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Security & Compliance
Security & Compliance
Dependency List
License Compliance
Packages
Packages
List
Container Registry
Analytics
Analytics
CI / CD
Code Review
Insights
Issues
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
nanahira
gdut-drcom
Commits
8e45b106
Commit
8e45b106
authored
Dec 11, 2016
by
chenhaowen
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fix: marco VERSION
parent
f1f9fbbe
Changes
3
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
9 additions
and
5 deletions
+9
-5
src/Makefile
src/Makefile
+1
-1
src/config.c
src/config.c
+5
-1
src/gdut-drcom.c
src/gdut-drcom.c
+3
-3
No files found.
src/Makefile
View file @
8e45b106
#CC:=gcc
VERSION
:=
1.6.7
CFLAGS
+=
-Wall
-fPIC
-DDEBUG
-DVERSION
=
\"
$(VERSION)
\"
CFLAGS
+=
-Wall
-fPIC
-DDEBUG
-DVERSION
=
$(VERSION)
objects
=
config.o auth.o
...
...
src/config.c
View file @
8e45b106
...
...
@@ -5,6 +5,10 @@
#include <unistd.h>
#include <getopt.h>
#ifndef VERSION
#define VERSION 0.0.0
#endif
struct
option_s
{
char
key
[
256
];
char
value
[
256
];
...
...
@@ -42,7 +46,7 @@ void set_enable_crypt(int enable)
void
get_version
(
char
*
version
)
{
strcpy
(
version
,
VERSION
);
strcpy
(
version
,
"VERSION"
);
}
void
set_log_file
(
char
*
log_file
,
int
len
)
...
...
src/gdut-drcom.c
View file @
8e45b106
...
...
@@ -6,7 +6,7 @@
#include "config.h"
#ifndef VERSION
#define VERSION
"unkown"
#define VERSION
0.0.0
#endif
static
void
print_help
(
char
*
name
);
...
...
@@ -67,7 +67,7 @@ int main(int argc, char *argv[])
exit
(
0
);
break
;
case
'v'
:
fprintf
(
stdout
,
"version: %s
\n
"
,
VERSION
);
fprintf
(
stdout
,
"version: %s
\n
"
,
"VERSION"
);
exit
(
0
);
break
;
case
'l'
:
...
...
@@ -107,7 +107,7 @@ static void print_help(char *name)
" /___/ "
);
fprintf
(
stdout
,
"A third-party drcom client for gdut. version %s
\n
"
,
VERSION
);
fprintf
(
stdout
,
"A third-party drcom client for gdut. version %s
\n
"
,
"VERSION"
);
fprintf
(
stdout
,
"usage:
\n
"
);
fprintf
(
stdout
,
" %s
\n
"
,
name
);
fprintf
(
stdout
,
" --remote-ip <ip addr> The server ip.
\n
"
);
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment