• 0
Sign in to follow this  
zecabaleiro

Gepard 3.0

Question

9 answers to this question

Recommended Posts

  • 0

Greetings,

Try changing the lines 1772, 1916, 1269 that call login_log() to call login_gepard_log() instead.

If this doesn't work, then undo these modifications and duplicate each of these lines. After that, update the second line of each so that they call login_gepard_log() instead of login_log(). Then, remove the first argument of the calls to login_log() on the line above.

Tyrfing

Share this post


Link to post
Share on other sites
  • 0
36 minutes ago, Tyrfing said:

Greetings,

Try changing the lines 1772, 1916, 1269 that call login_log() to call login_gepard_log() instead.

If this doesn't work, then undo these modifications and duplicate each of these lines. After that, update the second line of each so that they call login_gepard_log() instead of login_log(). Then, remove the first argument of the calls to login_log() on the line above.

Tyrfing

Many thanks in reply!

On all lines it worked out login_gepard_log. With the exception of line 1916

Here is the error: login.c: In function 'do_init':
login.c: 1916: warning: passing argument 3 of 'login_log' makes integer from pointer without a cast
loginlog.h: 12: note: expected 'int' but argument is of type 'char *'
login.c: 1916: warning: passing argument 4 of 'login_log' makes pointer from integer without a cast
loginlog.h: 12: note: expected 'const char *' but argument is of type 'int'
login.c: 1916: error: too many arguments to function 'login_log'
make [1]: *** [obj_sql / login.o] Error 1
make [1]: Leaving directory `/ home / emulator / src / login '
make: *** [login_sql] Error 2
make: *** No rule to make target `server '. Stop.

When I switch to login_gepard_log it gives this error:

account.h: 162: warning: 'struct socket_data' declared inside parameter list
account.h: 162: warning: its scope is only this definition or declaration, which is probably not what you want
account.h: 163: warning: 'struct socket_data' declared inside parameter list
account_sql.c: 147: warning: 'struct socket_data' declared inside parameter list
account_sql.c: 147: error: conflicting types for 'account_gepard_check_license_version'
account.h: 163: note: previous declaration of 'account_gepard_check_license_version' was here
account_sql.c: In function 'account_gepard_check_license_version':
account_sql.c: 151: error: 'is_gepard_active' undeclared (first use in this function)
account_sql.c: 151: error: (Each undeclared identifier is reported only once
account_sql.c: 151: error: for each function it appears in.)
account_sql.c: 165: warning: implicit declaration of function 'gepard_send_info'
account_sql.c: 165: error: 'GEPARD_INFO_MESSAGE' undeclared (first use in this function)
account_sql.c: 183: error: 'min_allowed_license_version' undeclared (first use in this function)
account_sql.c: 187: error: dereferencing pointer to incomplete type
account_sql.c: 192: error: 'GEPARD_INFO_OLD_LICENSE_VERSION' undeclared (first use in this function)
account_sql.c: In function 'account_gepard_update_last_unique_id':
account_sql.c: 200: error: 'is_gepard_active' undeclared (first use in this function)
account_sql.c: 202: warning: 'return' with a value, in return
account_sql.c: At top level:
account_sql.c: 217: warning: 'struct socket_data' declared inside parameter list
account_sql.c: 217: error: conflicting types for 'account_gepard_check_unique_id'
account.h: 162: note: previous declaration of 'account_gepard_check_unique_id' was here
account_sql.c: In function 'account_gepard_check_unique_id':
account_sql.c: 219: error: dereferencing pointer to incomplete type
account_sql.c: 224: error: 'GEPARD_INFO_MESSAGE' undeclared (first use in this function)
account_sql.c: 232: error: 'GEPARD_REASON_LENGTH' undeclared (first use in this function)
account_sql.c: 233: error: 'GEPARD_TIME_STR_LENGTH' undeclared (first use in this function)
account_sql.c: 240: warning: implicit declaration of function 'sscanf'
account_sql.c: 240: warning: incompatible implicit declaration of built-in function 'sscanf'
account_sql.c: 261: error: dereferencing pointer to incomplete type
account_sql.c: 263: error: 'GEPARD_INFO_BANNED' undeclared (first use in this function)
account_sql.c: In function 'account_db_sql_init':
account_sql.c: 386: error: 'is_gepard_active' undeclared (first use in this function)
make [1]: *** [obj_sql / account_sql.o] Error 1
make [1]: Leaving directory `/ home / emulator / src / login '
make: *** [login_sql] Error 2
make: *** No rule to make target `server '. Stop.


Account.h:
https://pastebin.com/NWewzKqi

Account_sql.c:
https://pastebin.com/5vSzMZRE

Line 1916:
login_gepard_log(0, 0, "login server", 100, "login server started");

Edited by zecabaleiro

Share this post


Link to post
Share on other sites
  • 0
1 minute ago, maken06 said:

You must wait for Functor, only he can solve it

vocation.. =/
but thank you ❤️

Edited by zecabaleiro

Share this post


Link to post
Share on other sites
  • 0

Greetings,

Sorry for the late reply.

I saw you updated your answer. Unfortunately, I tried suggesting what I thought could fix it, based on my knowledge of C and on my intuition. I'm not an expert on Gepard Shield, so you'll have to wait for Functor.

Tyrfing

Share this post


Link to post
Share on other sites
  • 0

functor will be back on june 23. just wait for him

Edited by Vy Low

Share this post


Link to post
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Answer this question...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Loading...
Sign in to follow this